diff options
| author | Simo Sorce <simo@redhat.com> | 2013-11-15 15:59:26 -0500 |
|---|---|---|
| committer | Simo Sorce <simo@redhat.com> | 2013-11-15 16:53:59 -0500 |
| commit | b4fc5d952439f672737e1e6bcf8a703a72aa9bcf (patch) | |
| tree | 1825b03197842eab3f77dcc30f7f131c078552c8 /src/gssapi.c | |
| parent | 811c645f2a796f15be198ca580d1cbf01230e57d (diff) | |
| download | libssh-b4fc5d952439f672737e1e6bcf8a703a72aa9bcf.tar.gz libssh-b4fc5d952439f672737e1e6bcf8a703a72aa9bcf.tar.xz libssh-b4fc5d952439f672737e1e6bcf8a703a72aa9bcf.zip | |
gssapi: Add support for GSSAPIDelegateCredentials config option.
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/gssapi.c')
| -rw-r--r-- | src/gssapi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gssapi.c b/src/gssapi.c index 88815a47..e2bcce34 100644 --- a/src/gssapi.c +++ b/src/gssapi.c @@ -805,6 +805,9 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_response){ } session->gssapi->client.flags = GSS_C_MUTUAL_FLAG | GSS_C_INTEG_FLAG; + if (session->opts.gss_delegate_creds) { + session->gssapi->client.flags |= GSS_C_DELEG_FLAG; + } /* prepare the first TOKEN response */ maj_stat = gss_init_sec_context(&min_stat, |
