summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
authorSimon Wilkinson <simon@sxw.org.uk>2014-02-09 16:09:48 +0000
committerColin Watson <cjwatson@debian.org>2014-02-09 16:16:58 +0000
commit950be7e1b1a01ee9b25e2a72726a6370b8acacb6 (patch)
tree64829a84f903d7e2d3270c43e3f80df7db2a6a10 /kex.h
parentee196dab7c5f97f0b80c8099343a375bead92010 (diff)
GSSAPI key exchange support
This patch has been rejected upstream: "None of the OpenSSH developers are in favour of adding this, and this situation has not changed for several years. This is not a slight on Simon's patch, which is of fine quality, but just that a) we don't trust GSSAPI implementations that much and b) we don't like adding new KEX since they are pre-auth attack surface. This one is particularly scary, since it requires hooks out to typically root-owned system resources." However, quite a lot of people rely on this in Debian, and it's better to have it merged into the main openssh package rather than having separate -krb5 packages (as we used to have). It seems to have a generally good security history. Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1242 Last-Updated: 2013-11-09 Patch-Name: gssapi.patch
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/kex.h b/kex.h
index 9f1e1adb3..d5046c627 100644
--- a/kex.h
+++ b/kex.h
@@ -74,6 +74,9 @@ enum kex_exchange {
74 KEX_DH_GEX_SHA1, 74 KEX_DH_GEX_SHA1,
75 KEX_DH_GEX_SHA256, 75 KEX_DH_GEX_SHA256,
76 KEX_ECDH_SHA2, 76 KEX_ECDH_SHA2,
77 KEX_GSS_GRP1_SHA1,
78 KEX_GSS_GRP14_SHA1,
79 KEX_GSS_GEX_SHA1,
77 KEX_MAX 80 KEX_MAX
78}; 81};
79 82
@@ -133,6 +136,12 @@ struct Kex {
133 int flags; 136 int flags;
134 const EVP_MD *evp_md; 137 const EVP_MD *evp_md;
135 int ec_nid; 138 int ec_nid;
139#ifdef GSSAPI
140 int gss_deleg_creds;
141 int gss_trust_dns;
142 char *gss_host;
143 char *gss_client;
144#endif
136 char *client_version_string; 145 char *client_version_string;
137 char *server_version_string; 146 char *server_version_string;
138 int (*verify_host_key)(Key *); 147 int (*verify_host_key)(Key *);
@@ -162,6 +171,11 @@ void kexgex_server(Kex *);
162void kexecdh_client(Kex *); 171void kexecdh_client(Kex *);
163void kexecdh_server(Kex *); 172void kexecdh_server(Kex *);
164 173
174#ifdef GSSAPI
175void kexgss_client(Kex *);
176void kexgss_server(Kex *);
177#endif
178
165void 179void
166kex_dh_hash(char *, char *, char *, int, char *, int, u_char *, int, 180kex_dh_hash(char *, char *, char *, int, char *, int, u_char *, int,
167 BIGNUM *, BIGNUM *, BIGNUM *, u_char **, u_int *); 181 BIGNUM *, BIGNUM *, BIGNUM *, u_char **, u_int *);