summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c24
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"
15RCSID("$OpenBSD: ssh-keygen.c,v 1.62 2001/06/23 06:41:10 markus Exp $"); 15RCSID("$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
80char hostname[MAXHOSTNAMELEN]; 80char hostname[MAXHOSTNAMELEN];
81 81
82void 82static void
83ask_filename(struct passwd *pw, const char *prompt) 83ask_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
115Key * 115static Key *
116load_identity(char *filename) 116load_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
139void 139static void
140do_convert_to_ssh2(struct passwd *pw) 140do_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
172void 172static void
173buffer_get_bignum_bits(Buffer *b, BIGNUM *value) 173buffer_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
185Key * 185static Key *
186do_convert_private_ssh2_from_blob(char *blob, int blen) 186do_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
280void 280static void
281do_convert_from_ssh2(struct passwd *pw) 281do_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
353void 353static void
354do_print_public(struct passwd *pw) 354do_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
377void 377static void
378do_fingerprint(struct passwd *pw) 378do_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 */
474void 474static void
475do_change_passphrase(struct passwd *pw) 475do_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 */
550void 550static void
551do_change_comment(struct passwd *pw) 551do_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
643void 643static void
644usage(void) 644usage(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] "