krb5_copy_ticket -- Copy a Kerberos
ticket structure

C Prototype

krb5_error_code krb5_copy_ticket(
krb5_context context,
const krb5_ticket *from,
krb5_ticket **pto );
Arguments

context (input/output) | | The context structure. |
| from (input) | | The ticket structure to be
copied. |
| pto (output) | | A pointer to a copy of the
ticket structure. |
Description

This routine copies a ticket structure, setting *pto to
point to the newly allocated copy, which should be freed with krb5_free_ticket.
Return
Values

This routine returns the following KRB5 status code:
0
|
Successful completion.
|
ENOMEM
|
Insufficient memory.
|