diff options
Diffstat (limited to 'krl.h')
-rw-r--r-- | krl.h | 38 |
1 files changed, 20 insertions, 18 deletions
@@ -14,7 +14,7 @@ | |||
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | /* $OpenBSD: krl.h,v 1.2 2013/01/18 00:24:58 djm Exp $ */ | 17 | /* $OpenBSD: krl.h,v 1.4 2015/01/13 19:06:49 djm Exp $ */ |
18 | 18 | ||
19 | #ifndef _KRL_H | 19 | #ifndef _KRL_H |
20 | #define _KRL_H | 20 | #define _KRL_H |
@@ -36,28 +36,30 @@ | |||
36 | #define KRL_SECTION_CERT_SERIAL_BITMAP 0x22 | 36 | #define KRL_SECTION_CERT_SERIAL_BITMAP 0x22 |
37 | #define KRL_SECTION_CERT_KEY_ID 0x23 | 37 | #define KRL_SECTION_CERT_KEY_ID 0x23 |
38 | 38 | ||
39 | struct sshkey; | ||
40 | struct sshbuf; | ||
39 | struct ssh_krl; | 41 | struct ssh_krl; |
40 | 42 | ||
41 | struct ssh_krl *ssh_krl_init(void); | 43 | struct ssh_krl *ssh_krl_init(void); |
42 | void ssh_krl_free(struct ssh_krl *krl); | 44 | void ssh_krl_free(struct ssh_krl *krl); |
43 | void ssh_krl_set_version(struct ssh_krl *krl, u_int64_t version); | 45 | void ssh_krl_set_version(struct ssh_krl *krl, u_int64_t version); |
44 | void ssh_krl_set_sign_key(struct ssh_krl *krl, const Key *sign_key); | 46 | void ssh_krl_set_sign_key(struct ssh_krl *krl, const struct sshkey *sign_key); |
45 | void ssh_krl_set_comment(struct ssh_krl *krl, const char *comment); | 47 | int ssh_krl_set_comment(struct ssh_krl *krl, const char *comment); |
46 | int ssh_krl_revoke_cert_by_serial(struct ssh_krl *krl, const Key *ca_key, | 48 | int ssh_krl_revoke_cert_by_serial(struct ssh_krl *krl, |
47 | u_int64_t serial); | 49 | const struct sshkey *ca_key, u_int64_t serial); |
48 | int ssh_krl_revoke_cert_by_serial_range(struct ssh_krl *krl, const Key *ca_key, | 50 | int ssh_krl_revoke_cert_by_serial_range(struct ssh_krl *krl, |
49 | u_int64_t lo, u_int64_t hi); | 51 | const struct sshkey *ca_key, u_int64_t lo, u_int64_t hi); |
50 | int ssh_krl_revoke_cert_by_key_id(struct ssh_krl *krl, const Key *ca_key, | 52 | int ssh_krl_revoke_cert_by_key_id(struct ssh_krl *krl, |
51 | const char *key_id); | 53 | const struct sshkey *ca_key, const char *key_id); |
52 | int ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const Key *key); | 54 | int ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key); |
53 | int ssh_krl_revoke_key_sha1(struct ssh_krl *krl, const Key *key); | 55 | int ssh_krl_revoke_key_sha1(struct ssh_krl *krl, const struct sshkey *key); |
54 | int ssh_krl_revoke_key(struct ssh_krl *krl, const Key *key); | 56 | int ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key); |
55 | int ssh_krl_to_blob(struct ssh_krl *krl, Buffer *buf, const Key **sign_keys, | 57 | int ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf, |
56 | u_int nsign_keys); | 58 | const struct sshkey **sign_keys, u_int nsign_keys); |
57 | int ssh_krl_from_blob(Buffer *buf, struct ssh_krl **krlp, | 59 | int ssh_krl_from_blob(struct sshbuf *buf, struct ssh_krl **krlp, |
58 | const Key **sign_ca_keys, u_int nsign_ca_keys); | 60 | const struct sshkey **sign_ca_keys, size_t nsign_ca_keys); |
59 | int ssh_krl_check_key(struct ssh_krl *krl, const Key *key); | 61 | int ssh_krl_check_key(struct ssh_krl *krl, const struct sshkey *key); |
60 | int ssh_krl_file_contains_key(const char *path, const Key *key); | 62 | int ssh_krl_file_contains_key(const char *path, const struct sshkey *key); |
61 | 63 | ||
62 | #endif /* _KRL_H */ | 64 | #endif /* _KRL_H */ |
63 | 65 | ||