summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-04-12 17:25:19 -0400
committerSimo Sorce <simo@redhat.com>2014-04-12 21:57:06 -0400
commit614ac7a00ec0f1ee21cf630aae42e9b767ebca89 (patch)
treecbdb1f74ca5a1b3bbb00de6d80d5f72eb639ea80 /src
parent4f59b28f16b965de715c1f5d38e65a36b0d4573c (diff)
downloadgss-ntlmssp-614ac7a00ec0f1ee21cf630aae42e9b767ebca89.tar.gz
gss-ntlmssp-614ac7a00ec0f1ee21cf630aae42e9b767ebca89.tar.xz
gss-ntlmssp-614ac7a00ec0f1ee21cf630aae42e9b767ebca89.zip
Return Client name if requested
Diffstat (limited to 'src')
-rw-r--r--src/gss_sec_ctx.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gss_sec_ctx.c b/src/gss_sec_ctx.c
index d55e9c6..84f3fff 100644
--- a/src/gss_sec_ctx.c
+++ b/src/gss_sec_ctx.c
@@ -1134,6 +1134,15 @@ uint32_t gssntlm_accept_sec_context(uint32_t *minor_status,
}
}
+ if (src_name) {
+ retmaj = gssntlm_duplicate_name(&retmin,
+ (gss_name_t)&ctx->source_name,
+ src_name);
+ if (retmaj) {
+ goto done;
+ }
+ }
+
ctx->stage = NTLMSSP_STAGE_DONE;
ctx->expiration_time = time(NULL) + MAX_CHALRESP_LIFETIME;
ctx->established = true;