diff options
author | Simon Wilkinson <simon@sxw.org.uk> | 2014-02-09 16:09:48 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2015-09-17 13:52:32 +0100 |
commit | 70b18066d3921277861e98902c9cf41a10ac6898 (patch) | |
tree | 0bfe9fa4fee0c290b5ff1bc1c2977048beecd37b /clientloop.c | |
parent | 544df7a04ae5b5c1fc30be7c445ad685d7a02dc9 (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: 2015-09-17
Patch-Name: gssapi.patch
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clientloop.c b/clientloop.c index dc0e557ad..77d549822 100644 --- a/clientloop.c +++ b/clientloop.c | |||
@@ -114,6 +114,10 @@ | |||
114 | #include "ssherr.h" | 114 | #include "ssherr.h" |
115 | #include "hostfile.h" | 115 | #include "hostfile.h" |
116 | 116 | ||
117 | #ifdef GSSAPI | ||
118 | #include "ssh-gss.h" | ||
119 | #endif | ||
120 | |||
117 | /* import options */ | 121 | /* import options */ |
118 | extern Options options; | 122 | extern Options options; |
119 | 123 | ||
@@ -1609,6 +1613,15 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id) | |||
1609 | /* Do channel operations unless rekeying in progress. */ | 1613 | /* Do channel operations unless rekeying in progress. */ |
1610 | if (!rekeying) { | 1614 | if (!rekeying) { |
1611 | channel_after_select(readset, writeset); | 1615 | channel_after_select(readset, writeset); |
1616 | |||
1617 | #ifdef GSSAPI | ||
1618 | if (options.gss_renewal_rekey && | ||
1619 | ssh_gssapi_credentials_updated(NULL)) { | ||
1620 | debug("credentials updated - forcing rekey"); | ||
1621 | need_rekeying = 1; | ||
1622 | } | ||
1623 | #endif | ||
1624 | |||
1612 | if (need_rekeying || packet_need_rekeying()) { | 1625 | if (need_rekeying || packet_need_rekeying()) { |
1613 | debug("need rekeying"); | 1626 | debug("need rekeying"); |
1614 | active_state->kex->done = 0; | 1627 | active_state->kex->done = 0; |