diff options
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -32,7 +32,7 @@ | |||
32 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 32 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
33 | */ | 33 | */ |
34 | #include "includes.h" | 34 | #include "includes.h" |
35 | RCSID("$OpenBSD: key.c,v 1.26 2001/06/23 05:26:02 markus Exp $"); | 35 | RCSID("$OpenBSD: key.c,v 1.27 2001/06/23 15:12:19 itojun Exp $"); |
36 | 36 | ||
37 | #include <openssl/evp.h> | 37 | #include <openssl/evp.h> |
38 | 38 | ||
@@ -153,7 +153,7 @@ key_equal(Key *a, Key *b) | |||
153 | return 0; | 153 | return 0; |
154 | } | 154 | } |
155 | 155 | ||
156 | u_char* | 156 | static u_char* |
157 | key_fingerprint_raw(Key *k, enum fp_type dgst_type, size_t *dgst_raw_length) | 157 | key_fingerprint_raw(Key *k, enum fp_type dgst_type, size_t *dgst_raw_length) |
158 | { | 158 | { |
159 | EVP_MD *md = NULL; | 159 | EVP_MD *md = NULL; |
@@ -210,7 +210,7 @@ key_fingerprint_raw(Key *k, enum fp_type dgst_type, size_t *dgst_raw_length) | |||
210 | return retval; | 210 | return retval; |
211 | } | 211 | } |
212 | 212 | ||
213 | char* | 213 | static char* |
214 | key_fingerprint_hex(u_char* dgst_raw, size_t dgst_raw_len) | 214 | key_fingerprint_hex(u_char* dgst_raw, size_t dgst_raw_len) |
215 | { | 215 | { |
216 | char *retval; | 216 | char *retval; |
@@ -227,7 +227,7 @@ key_fingerprint_hex(u_char* dgst_raw, size_t dgst_raw_len) | |||
227 | return retval; | 227 | return retval; |
228 | } | 228 | } |
229 | 229 | ||
230 | char* | 230 | static char* |
231 | key_fingerprint_bubblebabble(u_char* dgst_raw, size_t dgst_raw_len) | 231 | key_fingerprint_bubblebabble(u_char* dgst_raw, size_t dgst_raw_len) |
232 | { | 232 | { |
233 | char vowels[] = { 'a', 'e', 'i', 'o', 'u', 'y' }; | 233 | char vowels[] = { 'a', 'e', 'i', 'o', 'u', 'y' }; |
@@ -308,7 +308,7 @@ key_fingerprint(Key *k, enum fp_type dgst_type, enum fp_rep dgst_rep) | |||
308 | * last processed (and maybe modified) character. Note that this may modify | 308 | * last processed (and maybe modified) character. Note that this may modify |
309 | * the buffer containing the number. | 309 | * the buffer containing the number. |
310 | */ | 310 | */ |
311 | int | 311 | static int |
312 | read_bignum(char **cpp, BIGNUM * value) | 312 | read_bignum(char **cpp, BIGNUM * value) |
313 | { | 313 | { |
314 | char *cp = *cpp; | 314 | char *cp = *cpp; |
@@ -344,7 +344,7 @@ read_bignum(char **cpp, BIGNUM * value) | |||
344 | *cpp = cp; | 344 | *cpp = cp; |
345 | return 1; | 345 | return 1; |
346 | } | 346 | } |
347 | int | 347 | static int |
348 | write_bignum(FILE *f, BIGNUM *num) | 348 | write_bignum(FILE *f, BIGNUM *num) |
349 | { | 349 | { |
350 | char *buf = BN_bn2dec(num); | 350 | char *buf = BN_bn2dec(num); |
@@ -544,7 +544,7 @@ key_size(Key *k){ | |||
544 | return 0; | 544 | return 0; |
545 | } | 545 | } |
546 | 546 | ||
547 | RSA * | 547 | static RSA * |
548 | rsa_generate_private_key(u_int bits) | 548 | rsa_generate_private_key(u_int bits) |
549 | { | 549 | { |
550 | RSA *private; | 550 | RSA *private; |
@@ -554,7 +554,7 @@ rsa_generate_private_key(u_int bits) | |||
554 | return private; | 554 | return private; |
555 | } | 555 | } |
556 | 556 | ||
557 | DSA* | 557 | static DSA* |
558 | dsa_generate_private_key(u_int bits) | 558 | dsa_generate_private_key(u_int bits) |
559 | { | 559 | { |
560 | DSA *private = DSA_generate_parameters(bits, NULL, 0, NULL, NULL, NULL, NULL); | 560 | DSA *private = DSA_generate_parameters(bits, NULL, 0, NULL, NULL, NULL, NULL); |