Temporary: set mutual in flags token
authorSam Hartman <hartmans@debian.org>
Mon, 28 Oct 2013 17:31:54 +0000 (13:31 -0400)
committerSam Hartman <hartmans@debian.org>
Mon, 28 Oct 2013 17:31:54 +0000 (13:31 -0400)
Force mutual flag on the context prior to sending the flags token until channel binding is better deployed.

mech_eap/init_sec_context.c

index fb2f6c8..29465be 100644 (file)
@@ -964,6 +964,11 @@ eapGssSmInitGssFlags(OM_uint32 *minor,
     unsigned char wireFlags[4];
     gss_buffer_desc flagsBuf;
 
+    /*
+     * As a temporary measure, force mutual authentication until channel binding is
+     * more widely deployed.
+     */
+    ctx->gssFlags |= GSS_C_MUTUAL_FLAG;
     store_uint32_be(ctx->gssFlags & GSSEAP_WIRE_FLAGS_MASK, wireFlags);
 
     flagsBuf.length = sizeof(wireFlags);