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

krb5_decode_ticket — Decode a formatted ticket

  Table of Contents



C Prototype

krb5_error_code krb5_decode_ticket (
const krb5_data *code,
krb5_ticket **rep );


code (input)  

The formatted ticket.

rep (output)  

The decoded ticket information.


This routine takes a formatted ticket code and decodes it, filling in rep with the results.

The contents of rep are set to allocated storage that should be freed by the caller (using krb5_free_ticket) when finished with the ticket.

Return Values

This routine returns the following KRB5 status codes:


Successful completion.


Bad key version number.