Return the actual_mech_type when requested
authorSimo Sorce <simo@redhat.com>
Sat, 4 Apr 2015 20:47:14 +0000 (16:47 -0400)
committerSimo Sorce <simo@redhat.com>
Sat, 4 Apr 2015 20:47:39 +0000 (16:47 -0400)
Fixes #5

src/gss_sec_ctx.c

index 7192b48d407da7691d75af7b326a322e1f803422..b3a2d39bdfac7fa57acc2ee1e509e1e913d8818d 100644 (file)
@@ -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;
     }