summaryrefslogtreecommitdiffstats
path: root/src/gssapi.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-11-15 15:59:26 -0500
committerSimo Sorce <simo@redhat.com>2013-11-15 16:53:59 -0500
commit2362e6bf7f2a51efaf991f96752ed5f12044300e (patch)
tree1825b03197842eab3f77dcc30f7f131c078552c8 /src/gssapi.c
parent49a4bf29bbe1555029efe4e1fd749ed165be172e (diff)
downloadlibssh-2362e6bf7f2a51efaf991f96752ed5f12044300e.tar.gz
libssh-2362e6bf7f2a51efaf991f96752ed5f12044300e.tar.xz
libssh-2362e6bf7f2a51efaf991f96752ed5f12044300e.zip
gssapi: Add support for GSSAPIDelegateCredentials config option.
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/gssapi.c')
-rw-r--r--src/gssapi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gssapi.c b/src/gssapi.c
index 88815a4..e2bcce3 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,