summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2006-05-12 08:53:37 +0000
committerColin Watson <cjwatson@debian.org>2006-05-12 08:53:37 +0000
commit2ee73b36b9a35daeaa4b065046882dc1f5f551b6 (patch)
treef64a4ace625514e94759878c0b94ab0a79805bbd /kex.h
parent3c190ec8e469477ea65fbf4cc83062c65c281434 (diff)
parent3e2e0ac10674d77618c4c7339e18b83ced247492 (diff)
Merge 4.3p2 to the trunk.
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/kex.h b/kex.h
index 25720dff8..370e3e873 100644
--- a/kex.h
+++ b/kex.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: kex.h,v 1.37 2005/07/25 11:59:39 markus Exp $ */ 1/* $OpenBSD: kex.h,v 1.38 2005/11/04 05:15:59 djm 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.
@@ -31,9 +31,9 @@
31#include "cipher.h" 31#include "cipher.h"
32#include "key.h" 32#include "key.h"
33 33
34#define KEX_DH1 "diffie-hellman-group1-sha1" 34#define KEX_DH1 "diffie-hellman-group1-sha1"
35#define KEX_DH14 "diffie-hellman-group14-sha1" 35#define KEX_DH14 "diffie-hellman-group14-sha1"
36#define KEX_DHGEX "diffie-hellman-group-exchange-sha1" 36#define KEX_DHGEX_SHA1 "diffie-hellman-group-exchange-sha1"
37 37
38#define COMP_NONE 0 38#define COMP_NONE 0
39#define COMP_ZLIB 1 39#define COMP_ZLIB 1
@@ -115,6 +115,7 @@ struct Kex {
115 Buffer peer; 115 Buffer peer;
116 int done; 116 int done;
117 int flags; 117 int flags;
118 const EVP_MD *evp_md;
118#ifdef GSSAPI 119#ifdef GSSAPI
119 int gss_deleg_creds; 120 int gss_deleg_creds;
120#endif 121#endif
@@ -131,7 +132,7 @@ void kex_finish(Kex *);
131 132
132void kex_send_kexinit(Kex *); 133void kex_send_kexinit(Kex *);
133void kex_input_kexinit(int, u_int32_t, void *); 134void kex_input_kexinit(int, u_int32_t, void *);
134void kex_derive_keys(Kex *, u_char *, BIGNUM *); 135void kex_derive_keys(Kex *, u_char *, u_int, BIGNUM *);
135 136
136Newkeys *kex_get_newkeys(int); 137Newkeys *kex_get_newkeys(int);
137 138
@@ -145,12 +146,13 @@ void kexgss_client(Kex *);
145void kexgss_server(Kex *); 146void kexgss_server(Kex *);
146#endif 147#endif
147 148
148u_char * 149void
149kex_dh_hash(char *, char *, char *, int, char *, int, u_char *, int, 150kex_dh_hash(char *, char *, char *, int, char *, int, u_char *, int,
150 BIGNUM *, BIGNUM *, BIGNUM *); 151 BIGNUM *, BIGNUM *, BIGNUM *, u_char **, u_int *);
151u_char * 152void
152kexgex_hash(char *, char *, char *, int, char *, int, u_char *, int, 153kexgex_hash(const EVP_MD *, char *, char *, char *, int, char *,
153 int, int, int, BIGNUM *, BIGNUM *, BIGNUM *, BIGNUM *, BIGNUM *); 154 int, u_char *, int, int, int, int, BIGNUM *, BIGNUM *, BIGNUM *,
155 BIGNUM *, BIGNUM *, u_char **, u_int *);
154 156
155void 157void
156derive_ssh1_session_id(BIGNUM *, BIGNUM *, u_int8_t[8], u_int8_t[16]); 158derive_ssh1_session_id(BIGNUM *, BIGNUM *, u_int8_t[8], u_int8_t[16]);