HP Open Source Security for OpenVMS Volume 3: Kerberos > Chapter 6 KRB5 (Kerberos V5) Application Programming Interface

krb5_principal2salt — Convert a krb5_principal into it’s default salt

  Table of Contents



C Prototype

krb5_error_code krb5_principal2salt (
krb5_context context,
register krb5_const_principal pr,
krb5_data *ret );


context (input/output) 

The context structure.

pr (input) 

The principal name.

ret (output) 

A pointer to the default salt for the given principal name.


This routine converts a principal name into the default salt for that principal.

Return Values

This routine returns one of the following KRB5 status codes:

0Successful completion.

Insufficient memory.