MIT Kerberos Documentation


krb5_unparse_name_ext - Convert krb5_principal structure to string and length.

krb5_error_code krb5_unparse_name_ext(krb5_context context, krb5_const_principal principal, char ** name, unsigned int * size)
param:

[in] context - Library context

[in] principal - Principal

[out] name - String representation of principal name

[out] size - Size of unparsed name

retval:
  • 0 Success
return:
  • Kerberos error codes. On failure name is set to NULL

This function is similar to krb5_unparse_name() , but also returns the length of the string representation.