From: Sam Hartman Date: Wed, 5 Oct 2011 21:31:08 +0000 (+0000) Subject: Replace gss_pname_to_uid with gss_localname in gss-server.c X-Git-Tag: krb5-1.10-alpha1~62 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bc4dfaa3c88e7b76576f9bc4785f5eb0b2e2b465;p=krb5.git Replace gss_pname_to_uid with gss_localname in gss-server.c Signed-off-by: Kevin Wasserman git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25313 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gss-sample/gss-server.c b/src/appl/gss-sample/gss-server.c index c08b71497..d91493312 100644 --- a/src/appl/gss-sample/gss-server.c +++ b/src/appl/gss-sample/gss-server.c @@ -884,13 +884,13 @@ static OM_uint32 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; }