diff options
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 5539fe17a..d4d19d3a1 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: ssh-keygen.c,v 1.115 2004/05/09 00:06:47 djm Exp $"); | 15 | RCSID("$OpenBSD: ssh-keygen.c,v 1.116 2004/06/21 17:36:31 avsm Exp $"); |
16 | 16 | ||
17 | #include <openssl/evp.h> | 17 | #include <openssl/evp.h> |
18 | #include <openssl/pem.h> | 18 | #include <openssl/pem.h> |
@@ -192,8 +192,8 @@ do_convert_to_ssh2(struct passwd *pw) | |||
192 | static void | 192 | static void |
193 | buffer_get_bignum_bits(Buffer *b, BIGNUM *value) | 193 | buffer_get_bignum_bits(Buffer *b, BIGNUM *value) |
194 | { | 194 | { |
195 | u_int bits = buffer_get_int(b); | 195 | u_int bignum_bits = buffer_get_int(b); |
196 | u_int bytes = (bits + 7) / 8; | 196 | u_int bytes = (bignum_bits + 7) / 8; |
197 | 197 | ||
198 | if (buffer_len(b) < bytes) | 198 | if (buffer_len(b) < bytes) |
199 | fatal("buffer_get_bignum_bits: input buffer too small: " | 199 | fatal("buffer_get_bignum_bits: input buffer too small: " |
@@ -630,7 +630,7 @@ do_change_passphrase(struct passwd *pw) | |||
630 | * Print the SSHFP RR. | 630 | * Print the SSHFP RR. |
631 | */ | 631 | */ |
632 | static void | 632 | static void |
633 | do_print_resource_record(struct passwd *pw, char *hostname) | 633 | do_print_resource_record(struct passwd *pw, char *hname) |
634 | { | 634 | { |
635 | Key *public; | 635 | Key *public; |
636 | char *comment = NULL; | 636 | char *comment = NULL; |
@@ -644,7 +644,7 @@ do_print_resource_record(struct passwd *pw, char *hostname) | |||
644 | } | 644 | } |
645 | public = key_load_public(identity_file, &comment); | 645 | public = key_load_public(identity_file, &comment); |
646 | if (public != NULL) { | 646 | if (public != NULL) { |
647 | export_dns_rr(hostname, public, stdout, print_generic); | 647 | export_dns_rr(hname, public, stdout, print_generic); |
648 | key_free(public); | 648 | key_free(public); |
649 | xfree(comment); | 649 | xfree(comment); |
650 | exit(0); | 650 | exit(0); |