summaryrefslogtreecommitdiff
path: root/key.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-07-04 04:02:36 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-07-04 04:02:36 +0000
commit16ae3d0dba5f81e5602798b915105284033dea75 (patch)
treece0c2bf0d7e961b1015d43d1a07269d81e7a9ce9 /key.h
parent90279d80f57c79ac6566051172a94a2cca9674b1 (diff)
- itojun@cvs.openbsd.org 2001/06/26 06:32:58
[atomicio.h authfd.h authfile.h auth.h auth-options.h bufaux.h buffer.h canohost.h channels.h cipher.h clientloop.h compat.h compress.h crc32.h deattack.h dh.h dispatch.h groupaccess.h hostfile.h kex.h key.h log.h mac.h match.h misc.h mpaux.h packet.h radix.h readconf.h readpass.h rsa.h] prototype pedant. not very creative... - () -> (void) - no variable names
Diffstat (limited to 'key.h')
-rw-r--r--key.h46
1 files changed, 19 insertions, 27 deletions
diff --git a/key.h b/key.h
index 7f4e5f01..db2dd324 100644
--- a/key.h
+++ b/key.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.h,v 1.13 2001/06/25 08:25:38 markus Exp $ */
+/* $OpenBSD: key.h,v 1.14 2001/06/26 06:32:54 itojun Exp $ */
/*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@@ -50,35 +50,27 @@ struct Key {
DSA *dsa;
};
-Key *key_new(int type);
-Key *key_new_private(int type);
-void key_free(Key *k);
-int key_equal(Key *a, Key *b);
-char *key_fingerprint(Key *k, enum fp_type dgst_type, enum fp_rep dgst_rep);
-char *key_type(Key *k);
-int key_write(Key *key, FILE *f);
-int key_read(Key *key, char **cpp);
-u_int key_size(Key *k);
+Key *key_new(int);
+Key *key_new_private(int);
+void key_free(Key *);
+int key_equal(Key *, Key *);
+char *key_fingerprint(Key *, enum fp_type, enum fp_rep);
+char *key_type(Key *);
+int key_write(Key *, FILE *);
+int key_read(Key *, char **);
+u_int key_size(Key *);
-Key *key_generate(int type, u_int bits);
-Key *key_from_private(Key *k);
-int key_type_from_name(char *name);
+Key *key_generate(int, u_int);
+Key *key_from_private(Key *);
+int key_type_from_name(char *);
-Key *key_from_blob(char *blob, int blen);
-int key_to_blob(Key *key, u_char **blobp, u_int *lenp);
-char *key_ssh_name(Key *k);
-int key_names_valid2(const char *names);
+Key *key_from_blob(char *, int);
+int key_to_blob(Key *, u_char **, u_int *);
+char *key_ssh_name(Key *);
+int key_names_valid2(const char *);
-int
-key_sign(
- Key *key,
- u_char **sigp, int *lenp,
- u_char *data, int datalen);
+int key_sign(Key *, u_char **, int *, u_char *, int);
-int
-key_verify(
- Key *key,
- u_char *signature, int signaturelen,
- u_char *data, int datalen);
+int key_verify(Key *, u_char *, int, u_char *, int);
#endif