version 1.108.2.2, 2004/08/19 22:37:32 |
version 1.115, 2004/05/09 00:06:47 |
|
|
static void |
static void |
buffer_get_bignum_bits(Buffer *b, BIGNUM *value) |
buffer_get_bignum_bits(Buffer *b, BIGNUM *value) |
{ |
{ |
u_int bignum_bits = buffer_get_int(b); |
u_int bits = buffer_get_int(b); |
u_int bytes = (bignum_bits + 7) / 8; |
u_int bytes = (bits + 7) / 8; |
|
|
if (buffer_len(b) < bytes) |
if (buffer_len(b) < bytes) |
fatal("buffer_get_bignum_bits: input buffer too small: " |
fatal("buffer_get_bignum_bits: input buffer too small: " |
|
|
* Print the SSHFP RR. |
* Print the SSHFP RR. |
*/ |
*/ |
static void |
static void |
do_print_resource_record(struct passwd *pw, char *hname) |
do_print_resource_record(struct passwd *pw, char *hostname) |
{ |
{ |
Key *public; |
Key *public; |
char *comment = NULL; |
char *comment = NULL; |
|
|
} |
} |
public = key_load_public(identity_file, &comment); |
public = key_load_public(identity_file, &comment); |
if (public != NULL) { |
if (public != NULL) { |
export_dns_rr(hname, public, stdout, print_generic); |
export_dns_rr(hostname, public, stdout, print_generic); |
key_free(public); |
key_free(public); |
xfree(comment); |
xfree(comment); |
exit(0); |
exit(0); |
|
|
if (log_level == SYSLOG_LEVEL_INFO) |
if (log_level == SYSLOG_LEVEL_INFO) |
log_level = SYSLOG_LEVEL_DEBUG1; |
log_level = SYSLOG_LEVEL_DEBUG1; |
else { |
else { |
if (log_level >= SYSLOG_LEVEL_DEBUG1 && |
if (log_level >= SYSLOG_LEVEL_DEBUG1 && |
log_level < SYSLOG_LEVEL_DEBUG3) |
log_level < SYSLOG_LEVEL_DEBUG3) |
log_level++; |
log_level++; |
} |
} |