diff options
Diffstat (limited to 'key.h')
-rw-r--r-- | key.h | 46 |
1 files changed, 23 insertions, 23 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: key.h,v 1.22 2003/06/24 08:23:46 markus Exp $ */ | 1 | /* $OpenBSD: key.h,v 1.23 2003/11/10 16:23:41 jakob Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
@@ -55,33 +55,33 @@ struct Key { | |||
55 | DSA *dsa; | 55 | DSA *dsa; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | Key *key_new(int); | 58 | Key *key_new(int); |
59 | Key *key_new_private(int); | 59 | Key *key_new_private(int); |
60 | void key_free(Key *); | 60 | void key_free(Key *); |
61 | Key *key_demote(Key *); | 61 | Key *key_demote(const Key *); |
62 | int key_equal(Key *, Key *); | 62 | int key_equal(const Key *, const Key *); |
63 | char *key_fingerprint(Key *, enum fp_type, enum fp_rep); | 63 | char *key_fingerprint(const Key *, enum fp_type, enum fp_rep); |
64 | u_char *key_fingerprint_raw(Key *, enum fp_type, u_int *); | 64 | u_char *key_fingerprint_raw(const Key *, enum fp_type, u_int *); |
65 | char *key_type(Key *); | 65 | const char *key_type(const Key *); |
66 | int key_write(Key *, FILE *); | 66 | int key_write(const Key *, FILE *); |
67 | int key_read(Key *, char **); | 67 | int key_read(Key *, char **); |
68 | u_int key_size(Key *); | 68 | u_int key_size(const Key *); |
69 | 69 | ||
70 | Key *key_generate(int, u_int); | 70 | Key *key_generate(int, u_int); |
71 | Key *key_from_private(Key *); | 71 | Key *key_from_private(const Key *); |
72 | int key_type_from_name(char *); | 72 | int key_type_from_name(char *); |
73 | 73 | ||
74 | Key *key_from_blob(u_char *, u_int); | 74 | Key *key_from_blob(const u_char *, u_int); |
75 | int key_to_blob(Key *, u_char **, u_int *); | 75 | int key_to_blob(const Key *, u_char **, u_int *); |
76 | char *key_ssh_name(Key *); | 76 | const char *key_ssh_name(const Key *); |
77 | int key_names_valid2(const char *); | 77 | int key_names_valid2(const char *); |
78 | 78 | ||
79 | int key_sign(Key *, u_char **, u_int *, u_char *, u_int); | 79 | int key_sign(const Key *, u_char **, u_int *, const u_char *, u_int); |
80 | int key_verify(Key *, u_char *, u_int, u_char *, u_int); | 80 | int key_verify(const Key *, const u_char *, u_int, const u_char *, u_int); |
81 | 81 | ||
82 | int ssh_dss_sign(Key *, u_char **, u_int *, u_char *, u_int); | 82 | int ssh_dss_sign(const Key *, u_char **, u_int *, const u_char *, u_int); |
83 | int ssh_dss_verify(Key *, u_char *, u_int, u_char *, u_int); | 83 | int ssh_dss_verify(const Key *, const u_char *, u_int, const u_char *, u_int); |
84 | int ssh_rsa_sign(Key *, u_char **, u_int *, u_char *, u_int); | 84 | int ssh_rsa_sign(const Key *, u_char **, u_int *, const u_char *, u_int); |
85 | int ssh_rsa_verify(Key *, u_char *, u_int, u_char *, u_int); | 85 | int ssh_rsa_verify(const Key *, const u_char *, u_int, const u_char *, u_int); |
86 | 86 | ||
87 | #endif | 87 | #endif |