summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
authorSimon Wilkinson <simon@sxw.org.uk>2014-02-09 16:09:48 +0000
committerColin Watson <cjwatson@debian.org>2016-01-14 15:07:15 +0000
commit6a0a4b2f79889c9b0d5e2478a6ee5f51be38dcc9 (patch)
tree2f8cd5a92310d9ed3b7020366f3030fc0d1b53a4 /clientloop.c
parenteeff4de96f5d7365750dc56912c2c62b5c28db6b (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-01-04 Patch-Name: gssapi.patch
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/clientloop.c b/clientloop.c
index 87ceb3dab..fba1b5496 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -115,6 +115,10 @@
115#include "ssherr.h" 115#include "ssherr.h"
116#include "hostfile.h" 116#include "hostfile.h"
117 117
118#ifdef GSSAPI
119#include "ssh-gss.h"
120#endif
121
118/* import options */ 122/* import options */
119extern Options options; 123extern Options options;
120 124
@@ -1610,6 +1614,15 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id)
1610 /* Do channel operations unless rekeying in progress. */ 1614 /* Do channel operations unless rekeying in progress. */
1611 if (!rekeying) { 1615 if (!rekeying) {
1612 channel_after_select(readset, writeset); 1616 channel_after_select(readset, writeset);
1617
1618#ifdef GSSAPI
1619 if (options.gss_renewal_rekey &&
1620 ssh_gssapi_credentials_updated(NULL)) {
1621 debug("credentials updated - forcing rekey");
1622 need_rekeying = 1;
1623 }
1624#endif
1625
1613 if (need_rekeying || packet_need_rekeying()) { 1626 if (need_rekeying || packet_need_rekeying()) {
1614 debug("need rekeying"); 1627 debug("need rekeying");
1615 active_state->kex->done = 0; 1628 active_state->kex->done = 0;