summaryrefslogtreecommitdiff
path: root/key.c
diff options
context:
space:
mode:
Diffstat (limited to 'key.c')
-rw-r--r--key.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/key.c b/key.c
index 84306a9b0..cbe08a4c1 100644
--- a/key.c
+++ b/key.c
@@ -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"
35RCSID("$OpenBSD: key.c,v 1.26 2001/06/23 05:26:02 markus Exp $"); 35RCSID("$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
156u_char* 156static u_char*
157key_fingerprint_raw(Key *k, enum fp_type dgst_type, size_t *dgst_raw_length) 157key_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
213char* 213static char*
214key_fingerprint_hex(u_char* dgst_raw, size_t dgst_raw_len) 214key_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
230char* 230static char*
231key_fingerprint_bubblebabble(u_char* dgst_raw, size_t dgst_raw_len) 231key_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 */
311int 311static int
312read_bignum(char **cpp, BIGNUM * value) 312read_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}
347int 347static int
348write_bignum(FILE *f, BIGNUM *num) 348write_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
547RSA * 547static RSA *
548rsa_generate_private_key(u_int bits) 548rsa_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
557DSA* 557static DSA*
558dsa_generate_private_key(u_int bits) 558dsa_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);