diff options
author | Colin Watson <cjwatson@debian.org> | 2003-09-01 18:42:19 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2003-09-01 18:42:19 +0000 |
commit | 8d6b7f4c46de3feb66f704ab483e51ea1a3bb0e1 (patch) | |
tree | 41fe3dd71501bbec5b0393f1536c925eaee180e9 /kex.h | |
parent | f045c69060bfdd5cf8759a5f29d7008d02e4de5b (diff) | |
parent | 58bfa257481a1c6938ada9bbd38801cc45633fb0 (diff) |
Debian release 3.6p1-1.
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.h,v 1.32 2002/09/09 14:54:14 markus Exp $ */ | 1 | /* $OpenBSD: kex.h,v 1.33 2003/02/16 17:09:57 markus 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,8 +55,9 @@ enum kex_modes { | |||
55 | }; | 55 | }; |
56 | 56 | ||
57 | enum kex_exchange { | 57 | enum kex_exchange { |
58 | DH_GRP1_SHA1, | 58 | KEX_DH_GRP1_SHA1, |
59 | DH_GEX_SHA1 | 59 | KEX_DH_GEX_SHA1, |
60 | KEX_MAX | ||
60 | }; | 61 | }; |
61 | 62 | ||
62 | #define KEX_INIT_SENT 0x0001 | 63 | #define KEX_INIT_SENT 0x0001 |
@@ -112,6 +113,7 @@ struct Kex { | |||
112 | int (*verify_host_key)(Key *); | 113 | int (*verify_host_key)(Key *); |
113 | Key *(*load_host_key)(int); | 114 | Key *(*load_host_key)(int); |
114 | int (*host_key_index)(Key *); | 115 | int (*host_key_index)(Key *); |
116 | void (*kex[KEX_MAX])(Kex *); | ||
115 | }; | 117 | }; |
116 | 118 | ||
117 | Kex *kex_setup(char *[PROPOSAL_MAX]); | 119 | Kex *kex_setup(char *[PROPOSAL_MAX]); |
@@ -121,11 +123,20 @@ void kex_send_kexinit(Kex *); | |||
121 | void kex_input_kexinit(int, u_int32_t, void *); | 123 | void kex_input_kexinit(int, u_int32_t, void *); |
122 | void kex_derive_keys(Kex *, u_char *, BIGNUM *); | 124 | void kex_derive_keys(Kex *, u_char *, BIGNUM *); |
123 | 125 | ||
124 | void kexdh(Kex *); | ||
125 | void kexgex(Kex *); | ||
126 | |||
127 | Newkeys *kex_get_newkeys(int); | 126 | Newkeys *kex_get_newkeys(int); |
128 | 127 | ||
128 | void kexdh_client(Kex *); | ||
129 | void kexdh_server(Kex *); | ||
130 | void kexgex_client(Kex *); | ||
131 | void kexgex_server(Kex *); | ||
132 | |||
133 | u_char * | ||
134 | kex_dh_hash(char *, char *, char *, int, char *, int, u_char *, int, | ||
135 | BIGNUM *, BIGNUM *, BIGNUM *); | ||
136 | u_char * | ||
137 | kexgex_hash(char *, char *, char *, int, char *, int, u_char *, int, | ||
138 | int, int, int, BIGNUM *, BIGNUM *, BIGNUM *, BIGNUM *, BIGNUM *); | ||
139 | |||
129 | #if defined(DEBUG_KEX) || defined(DEBUG_KEXDH) | 140 | #if defined(DEBUG_KEX) || defined(DEBUG_KEXDH) |
130 | void dump_digest(char *, u_char *, int); | 141 | void dump_digest(char *, u_char *, int); |
131 | #endif | 142 | #endif |