From: Luke Howard Date: Fri, 1 Apr 2011 01:15:08 +0000 (+1100) Subject: set name type to GSS_C_NT_USER_NAME if NAI X-Git-Tag: dvd/201105~12^2~18 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=commitdiff_plain;h=a588b7ff413af63df4a6fd2d16c55989f00c8c7a set name type to GSS_C_NT_USER_NAME if NAI This allows us to canonicalize the name easily to another mechanism, so it can be used for protocol transition. --- diff --git a/util_name.c b/util_name.c index 2922f98..84478fd 100644 --- a/util_name.c +++ b/util_name.c @@ -735,6 +735,8 @@ gssEapDisplayName(OM_uint32 *minor, if (output_name_buffer->length == 0) { name_type = GSS_C_NT_ANONYMOUS; + } else if (name->flags & NAME_FLAG_NAI) { + name_type = GSS_C_NT_USER_NAME; } else { name_type = GSS_EAP_NT_EAP_NAME; }