skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_timestamp_to_string  Convert a timestamp to a string krb5_timestamp_to_string Convert a timestamp to a string
go to next page: krb5_unparse_name_ext  Convert multiple protocol format principal names to string formatkrb5_unparse_name_ext Convert multiple protocol format principal...
end of book navigation links

krb5_unparse_name -- Convert protocol format principal name to string format 



C Prototype 

krb5_error_code krb5_unparse_name (
         krb5_context             context,
         krb5_const_principal     principal,
         char                     **name );

Arguments 

context
(input/output)
 The context structure.
principal (input) Multipart principal format used in the protocols.
name (output) Single string representation of a Kerberos principal name.

Description 

This routine converts the multipart principal name principal from the format used in the protocols to a single-string representation of the name. The resulting single-string representation will use the format and quoting conventions described for krb_parse_name.

The *name argument points to allocated storage and should be freed by the caller when finished.

Return Values 

This routine returns one of the following KRB5 status codes:

0
Successful completion.
ENOMEM
Insufficient memory.


go to previous page: krb5_timestamp_to_string  Convert a timestamp to a string krb5_timestamp_to_string Convert a timestamp to a string
go to next page: krb5_unparse_name_ext  Convert multiple protocol format principal names to string formatkrb5_unparse_name_ext Convert multiple protocol format principal...