summaryrefslogtreecommitdiff
path: root/key.c
diff options
context:
space:
mode:
Diffstat (limited to 'key.c')
-rw-r--r--key.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/key.c b/key.c
index 2d850c8e5..fb1f8410a 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.44 2002/05/31 13:16:48 markus Exp $"); 35RCSID("$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
92Key * 93Key *
93key_new_private(int type) 94key_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
123void 125void
124key_free(Key *k) 126key_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
362static int 365static int
363write_bignum(FILE *f, BIGNUM *num) 366write_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
488int 492int
489key_write(Key *key, FILE *f) 493key_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
519char * 524char *
520key_type(Key *k) 525key_type(Key *k)
521{ 526{
@@ -532,6 +537,7 @@ key_type(Key *k)
532 } 537 }
533 return "unknown"; 538 return "unknown";
534} 539}
540
535char * 541char *
536key_ssh_name(Key *k) 542key_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
548u_int 555u_int
549key_size(Key *k) 556key_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
811Key * 817Key *
812key_demote(Key *k) 818key_demote(Key *k)
813{ 819{