textual identities to UI
authorSam Hartman <hartmans@debian.org>
Thu, 4 Apr 2013 16:25:17 +0000 (12:25 -0400)
committerSam Hartman <hartmans@debian.org>
Thu, 4 Apr 2013 16:25:17 +0000 (12:25 -0400)
The call to moonshot_get_identity included exported name tokens; the
interface expected C strings. Use gssEapDisplayName instead.

mech_eap/util_moonshot.c

index 46282e8..b5027fc 100644 (file)
@@ -157,13 +157,13 @@ libMoonshotResolveInitiatorCred(OM_uint32 *minor,
     MoonshotError *error = NULL;
 
     if (cred->name != GSS_C_NO_NAME) {
-        major = gssEapExportName(minor, cred->name, &initiator);
+      major = gssEapDisplayName(minor, cred->name, &initiator, NULL);
         if (GSS_ERROR(major))
             goto cleanup;
     }
 
     if (targetName != GSS_C_NO_NAME) {
-        major = gssEapExportName(minor, targetName, &target);
+      major = gssEapDisplayName(minor, targetName, &target, NULL);
         if (GSS_ERROR(major))
             goto cleanup;
     }