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

  Glossary

  Index

C Prototype

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

Arguments

code (input)  

The formatted ticket.

rep (output)  

The decoded ticket information.

Description

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:

0

Successful completion.

KRB5KDC_ERR_BAD_PVNO

Bad key version number.