new stuff from luke
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3060 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -46,20 +46,8 @@ OM_uint32 gss_export_name
|
|||||||
gss_buffer_t exported_name
|
gss_buffer_t exported_name
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
char *output_name;
|
return gss_display_name(minor_status,
|
||||||
krb5_error_code kerr;
|
input_name,
|
||||||
|
exported_name,
|
||||||
gssapi_krb5_init();
|
NULL);
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
@@ -46,20 +46,8 @@ OM_uint32 gss_export_name
|
|||||||
gss_buffer_t exported_name
|
gss_buffer_t exported_name
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
char *output_name;
|
return gss_display_name(minor_status,
|
||||||
krb5_error_code kerr;
|
input_name,
|
||||||
|
exported_name,
|
||||||
gssapi_krb5_init();
|
NULL);
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user