from luke

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3056 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-08-19 13:25:24 +00:00
parent 6de81dfd8d
commit 7bce15bacd
2 changed files with 32 additions and 2 deletions

View File

@@ -46,5 +46,20 @@ OM_uint32 gss_export_name
gss_buffer_t exported_name
)
{
return gss_display_name (minor_status, input_name, exported_name, NULL);
char *output_name;
krb5_error_code kerr;
gssapi_krb5_init();
kerr = krb5_unparse_name(gssapi_krb5_context,
input_name,
&output_name);
if (kerr != 0)
return GSS_S_BAD_NAME;
exported_name->length = strlen(output_name);
exported_name->value = output_name;
return GSS_S_COMPLETE;
}