diff options
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index bd7eea9af..22946587f 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.62 2001/06/23 06:41:10 markus Exp $"); | 15 | RCSID("$OpenBSD: ssh-keygen.c,v 1.63 2001/06/23 15:12:20 itojun Exp $"); |
16 | 16 | ||
17 | #include <openssl/evp.h> | 17 | #include <openssl/evp.h> |
18 | #include <openssl/pem.h> | 18 | #include <openssl/pem.h> |
@@ -79,7 +79,7 @@ char *__progname; | |||
79 | 79 | ||
80 | char hostname[MAXHOSTNAMELEN]; | 80 | char hostname[MAXHOSTNAMELEN]; |
81 | 81 | ||
82 | void | 82 | static void |
83 | ask_filename(struct passwd *pw, const char *prompt) | 83 | ask_filename(struct passwd *pw, const char *prompt) |
84 | { | 84 | { |
85 | char buf[1024]; | 85 | char buf[1024]; |
@@ -112,7 +112,7 @@ ask_filename(struct passwd *pw, const char *prompt) | |||
112 | have_identity = 1; | 112 | have_identity = 1; |
113 | } | 113 | } |
114 | 114 | ||
115 | Key * | 115 | static Key * |
116 | load_identity(char *filename) | 116 | load_identity(char *filename) |
117 | { | 117 | { |
118 | char *pass; | 118 | char *pass; |
@@ -136,7 +136,7 @@ load_identity(char *filename) | |||
136 | #define SSH_COM_PRIVATE_BEGIN "---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----" | 136 | #define SSH_COM_PRIVATE_BEGIN "---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----" |
137 | #define SSH_COM_PRIVATE_KEY_MAGIC 0x3f6ff9eb | 137 | #define SSH_COM_PRIVATE_KEY_MAGIC 0x3f6ff9eb |
138 | 138 | ||
139 | void | 139 | static void |
140 | do_convert_to_ssh2(struct passwd *pw) | 140 | do_convert_to_ssh2(struct passwd *pw) |
141 | { | 141 | { |
142 | Key *k; | 142 | Key *k; |
@@ -169,7 +169,7 @@ do_convert_to_ssh2(struct passwd *pw) | |||
169 | exit(0); | 169 | exit(0); |
170 | } | 170 | } |
171 | 171 | ||
172 | void | 172 | static void |
173 | buffer_get_bignum_bits(Buffer *b, BIGNUM *value) | 173 | buffer_get_bignum_bits(Buffer *b, BIGNUM *value) |
174 | { | 174 | { |
175 | int bits = buffer_get_int(b); | 175 | int bits = buffer_get_int(b); |
@@ -182,7 +182,7 @@ buffer_get_bignum_bits(Buffer *b, BIGNUM *value) | |||
182 | buffer_consume(b, bytes); | 182 | buffer_consume(b, bytes); |
183 | } | 183 | } |
184 | 184 | ||
185 | Key * | 185 | static Key * |
186 | do_convert_private_ssh2_from_blob(char *blob, int blen) | 186 | do_convert_private_ssh2_from_blob(char *blob, int blen) |
187 | { | 187 | { |
188 | Buffer b; | 188 | Buffer b; |
@@ -277,7 +277,7 @@ do_convert_private_ssh2_from_blob(char *blob, int blen) | |||
277 | return key; | 277 | return key; |
278 | } | 278 | } |
279 | 279 | ||
280 | void | 280 | static void |
281 | do_convert_from_ssh2(struct passwd *pw) | 281 | do_convert_from_ssh2(struct passwd *pw) |
282 | { | 282 | { |
283 | Key *k; | 283 | Key *k; |
@@ -350,7 +350,7 @@ do_convert_from_ssh2(struct passwd *pw) | |||
350 | exit(0); | 350 | exit(0); |
351 | } | 351 | } |
352 | 352 | ||
353 | void | 353 | static void |
354 | do_print_public(struct passwd *pw) | 354 | do_print_public(struct passwd *pw) |
355 | { | 355 | { |
356 | Key *prv; | 356 | Key *prv; |
@@ -374,7 +374,7 @@ do_print_public(struct passwd *pw) | |||
374 | exit(0); | 374 | exit(0); |
375 | } | 375 | } |
376 | 376 | ||
377 | void | 377 | static void |
378 | do_fingerprint(struct passwd *pw) | 378 | do_fingerprint(struct passwd *pw) |
379 | { | 379 | { |
380 | FILE *f; | 380 | FILE *f; |
@@ -471,7 +471,7 @@ do_fingerprint(struct passwd *pw) | |||
471 | * Perform changing a passphrase. The argument is the passwd structure | 471 | * Perform changing a passphrase. The argument is the passwd structure |
472 | * for the current user. | 472 | * for the current user. |
473 | */ | 473 | */ |
474 | void | 474 | static void |
475 | do_change_passphrase(struct passwd *pw) | 475 | do_change_passphrase(struct passwd *pw) |
476 | { | 476 | { |
477 | char *comment; | 477 | char *comment; |
@@ -547,7 +547,7 @@ do_change_passphrase(struct passwd *pw) | |||
547 | /* | 547 | /* |
548 | * Change the comment of a private key file. | 548 | * Change the comment of a private key file. |
549 | */ | 549 | */ |
550 | void | 550 | static void |
551 | do_change_comment(struct passwd *pw) | 551 | do_change_comment(struct passwd *pw) |
552 | { | 552 | { |
553 | char new_comment[1024], *comment, *passphrase; | 553 | char new_comment[1024], *comment, *passphrase; |
@@ -640,7 +640,7 @@ do_change_comment(struct passwd *pw) | |||
640 | exit(0); | 640 | exit(0); |
641 | } | 641 | } |
642 | 642 | ||
643 | void | 643 | static void |
644 | usage(void) | 644 | usage(void) |
645 | { | 645 | { |
646 | printf("Usage: %s [-ceilpqyB] [-t type] [-b bits] [-f file] [-C comment] " | 646 | printf("Usage: %s [-ceilpqyB] [-t type] [-b bits] [-f file] [-C comment] " |