[BACK]Return to dns.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/dns.c between version 1.15 and 1.16

version 1.15, 2005/10/17 14:01:28 version 1.16, 2005/10/17 14:13:35
Line 25 
Line 25 
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */   */
   
   
 #include "includes.h"  #include "includes.h"
   RCSID("$OpenBSD$");
   
 #include <openssl/bn.h>  
 #include <netdb.h>  #include <netdb.h>
   
 #include "xmalloc.h"  #include "xmalloc.h"
Line 36 
Line 35 
 #include "dns.h"  #include "dns.h"
 #include "log.h"  #include "log.h"
   
 RCSID("$OpenBSD$");  
   
 static const char *errset_text[] = {  static const char *errset_text[] = {
         "success",              /* 0 ERRSET_SUCCESS */          "success",              /* 0 ERRSET_SUCCESS */
         "out of memory",        /* 1 ERRSET_NOMEMORY */          "out of memory",        /* 1 ERRSET_NOMEMORY */
Line 179 
Line 176 
   
         *flags = 0;          *flags = 0;
   
         debug3("verify_hostkey_dns");          debug3("verify_host_key_dns");
         if (hostkey == NULL)          if (hostkey == NULL)
                 fatal("No key to look up!");                  fatal("No key to look up!");
   
Line 256 
Line 253 
         return 0;          return 0;
 }  }
   
   
 /*  /*
  * Export the fingerprint of a key as a DNS resource record   * Export the fingerprint of a key as a DNS resource record
  */   */
Line 272 
Line 268 
         int success = 0;          int success = 0;
   
         if (dns_read_key(&rdata_pubkey_algorithm, &rdata_digest_type,          if (dns_read_key(&rdata_pubkey_algorithm, &rdata_digest_type,
                          &rdata_digest, &rdata_digest_len, key)) {              &rdata_digest, &rdata_digest_len, key)) {
   
                 if (generic)                  if (generic)
                         fprintf(f, "%s IN TYPE%d \\# %d %02x %02x ", hostname,                          fprintf(f, "%s IN TYPE%d \\# %d %02x %02x ", hostname,
Line 288 
Line 284 
                 xfree(rdata_digest); /* from key_fingerprint_raw() */                  xfree(rdata_digest); /* from key_fingerprint_raw() */
                 success = 1;                  success = 1;
         } else {          } else {
                 error("dns_export_rr: unsupported algorithm");                  error("export_dns_rr: unsupported algorithm");
         }          }
   
         return success;          return success;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16