From 429fcc62a7222e56f0b741158c05d77551443f62 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 4 Apr 2015 16:47:14 -0400 Subject: Return the actual_mech_type when requested Fixes #5 --- src/gss_sec_ctx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gss_sec_ctx.c b/src/gss_sec_ctx.c index 7192b48..b3a2d39 100644 --- a/src/gss_sec_ctx.c +++ b/src/gss_sec_ctx.c @@ -430,6 +430,7 @@ done: (retmaj != GSS_S_CONTINUE_NEEDED)) { gssntlm_delete_sec_context(&tmpmin, (gss_ctx_id_t *)&ctx, NULL); } else { + if (actual_mech_type) *actual_mech_type = discard_const(&gssntlm_oid); if (ret_flags) *ret_flags = ctx->gss_flags; if (time_rec) *time_rec = GSS_C_INDEFINITE; } -- cgit