diff options
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 10 |
1 files changed, 8 insertions, 2 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.44 2002/05/31 13:16:48 markus Exp $"); | 35 | RCSID("$OpenBSD: key.c,v 1.45 2002/06/23 03:26:19 deraadt Exp $"); |
36 | 36 | ||
37 | #include <openssl/evp.h> | 37 | #include <openssl/evp.h> |
38 | 38 | ||
@@ -89,6 +89,7 @@ key_new(int type) | |||
89 | } | 89 | } |
90 | return k; | 90 | return k; |
91 | } | 91 | } |
92 | |||
92 | Key * | 93 | Key * |
93 | key_new_private(int type) | 94 | key_new_private(int type) |
94 | { | 95 | { |
@@ -120,6 +121,7 @@ key_new_private(int type) | |||
120 | } | 121 | } |
121 | return k; | 122 | return k; |
122 | } | 123 | } |
124 | |||
123 | void | 125 | void |
124 | key_free(Key *k) | 126 | key_free(Key *k) |
125 | { | 127 | { |
@@ -359,6 +361,7 @@ read_bignum(char **cpp, BIGNUM * value) | |||
359 | *cpp = cp; | 361 | *cpp = cp; |
360 | return 1; | 362 | return 1; |
361 | } | 363 | } |
364 | |||
362 | static int | 365 | static int |
363 | write_bignum(FILE *f, BIGNUM *num) | 366 | write_bignum(FILE *f, BIGNUM *num) |
364 | { | 367 | { |
@@ -485,6 +488,7 @@ key_read(Key *ret, char **cpp) | |||
485 | } | 488 | } |
486 | return success; | 489 | return success; |
487 | } | 490 | } |
491 | |||
488 | int | 492 | int |
489 | key_write(Key *key, FILE *f) | 493 | key_write(Key *key, FILE *f) |
490 | { | 494 | { |
@@ -516,6 +520,7 @@ key_write(Key *key, FILE *f) | |||
516 | } | 520 | } |
517 | return success; | 521 | return success; |
518 | } | 522 | } |
523 | |||
519 | char * | 524 | char * |
520 | key_type(Key *k) | 525 | key_type(Key *k) |
521 | { | 526 | { |
@@ -532,6 +537,7 @@ key_type(Key *k) | |||
532 | } | 537 | } |
533 | return "unknown"; | 538 | return "unknown"; |
534 | } | 539 | } |
540 | |||
535 | char * | 541 | char * |
536 | key_ssh_name(Key *k) | 542 | key_ssh_name(Key *k) |
537 | { | 543 | { |
@@ -545,6 +551,7 @@ key_ssh_name(Key *k) | |||
545 | } | 551 | } |
546 | return "ssh-unknown"; | 552 | return "ssh-unknown"; |
547 | } | 553 | } |
554 | |||
548 | u_int | 555 | u_int |
549 | key_size(Key *k) | 556 | key_size(Key *k) |
550 | { | 557 | { |
@@ -807,7 +814,6 @@ key_verify( | |||
807 | } | 814 | } |
808 | 815 | ||
809 | /* Converts a private to a public key */ | 816 | /* Converts a private to a public key */ |
810 | |||
811 | Key * | 817 | Key * |
812 | key_demote(Key *k) | 818 | key_demote(Key *k) |
813 | { | 819 | { |