krb5_error_code krb5_principal2salt ( krb5_context context, register krb5_const_principal pr, krb5_data *ret );
The context structure.
The principal name.
A pointer to the default salt for the given principal name.
This routine converts a principal name into the default salt for that principal.
This routine returns one of the following KRB5 status codes:
Insufficient memory.