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>2016-08-07 12:18:35 +0100
commiteecddf8b72fcad83ccca43b1badb03782704f6b7 (patch)
treefd0046825c8d42bd267afa7839d5603b130cf847 /kex.h
parenta8ed8d256b2e2c05b0c15565a7938028c5192277 (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: 2016-08-07 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 c35195568..8ed459a76 100644
--- a/kex.h
+++ b/kex.h
@@ -98,6 +98,9 @@ enum kex_exchange {
98 KEX_DH_GEX_SHA256, 98 KEX_DH_GEX_SHA256,
99 KEX_ECDH_SHA2, 99 KEX_ECDH_SHA2,
100 KEX_C25519_SHA256, 100 KEX_C25519_SHA256,
101 KEX_GSS_GRP1_SHA1,
102 KEX_GSS_GRP14_SHA1,
103 KEX_GSS_GEX_SHA1,
101 KEX_MAX 104 KEX_MAX
102}; 105};
103 106
@@ -146,6 +149,12 @@ struct kex {
146 u_int flags; 149 u_int flags;
147 int hash_alg; 150 int hash_alg;
148 int ec_nid; 151 int ec_nid;
152#ifdef GSSAPI
153 int gss_deleg_creds;
154 int gss_trust_dns;
155 char *gss_host;
156 char *gss_client;
157#endif
149 char *client_version_string; 158 char *client_version_string;
150 char *server_version_string; 159 char *server_version_string;
151 char *failed_choice; 160 char *failed_choice;
@@ -196,6 +205,11 @@ int kexecdh_server(struct ssh *);
196int kexc25519_client(struct ssh *); 205int kexc25519_client(struct ssh *);
197int kexc25519_server(struct ssh *); 206int kexc25519_server(struct ssh *);
198 207
208#ifdef GSSAPI
209int kexgss_client(struct ssh *);
210int kexgss_server(struct ssh *);
211#endif
212
199int kex_dh_hash(int, const char *, const char *, 213int kex_dh_hash(int, const char *, const char *,
200 const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, 214 const u_char *, size_t, const u_char *, size_t, const u_char *, size_t,
201 const BIGNUM *, const BIGNUM *, const BIGNUM *, u_char *, size_t *); 215 const BIGNUM *, const BIGNUM *, const BIGNUM *, u_char *, size_t *);