svn rev #25313: trunk/src/appl/gss-sample/
hartmans@MIT.EDU
hartmans at MIT.EDU
Wed Oct 5 17:31:09 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=25313
Commit By: hartmans
Log Message:
Replace gss_pname_to_uid with gss_localname in gss-server.c
Signed-off-by: Kevin Wasserman <kevin.wasserman at painless-security.com>
Changed Files:
U trunk/src/appl/gss-sample/gss-server.c
Modified: trunk/src/appl/gss-sample/gss-server.c
===================================================================
--- trunk/src/appl/gss-sample/gss-server.c 2011-10-05 21:30:59 UTC (rev 25312)
+++ trunk/src/appl/gss-sample/gss-server.c 2011-10-05 21:31:08 UTC (rev 25313)
@@ -884,13 +884,13 @@
showLocalIdentity(OM_uint32 *minor, gss_name_t name)
{
OM_uint32 major;
- uid_t uid;
+ gss_buffer_desc localname;
- major = gss_pname_to_uid(minor, name, GSS_C_NO_OID, &uid);
+ major = gss_localname(minor, name, GSS_C_NO_OID, &localname);
if (major == GSS_S_COMPLETE)
- printf("UID: %lu\n", (unsigned long)uid);
+ printf("localname: %-*s\n", localname.length, localname.value);
else if (major != GSS_S_UNAVAILABLE)
- display_status("gss_pname_to_uid", major, *minor);
-
+ display_status("gss_localname", major, *minor);
+ gss_release_buffer(minor, &localname);
return major;
}
More information about the cvs-krb5
mailing list