carta
krb5_free_ticket(3)

krb5_free_ticket3

Kerberos 5 ticket access and handling functions

Part of krb5_copy_ticket(3).

Usage

krb5_error_code

krb5_error_code

krb5_error_code

krb5_error_code

krb5_error_code

time_t

Library

Kerberos 5 Library (libkrb5, -lkrb5)

Overview

krb5_ticket holds a kerberos ticket. The internals of the structure should never be accessed directly, functions exist for extracting information.

krb5_free_ticket() frees the ticket and its content. Used to free the result of krb5_copy_ticket() and krb5_recvauth().

krb5_copy_ticket() copies the content of the ticket from to the ticket to. The result to should be freed with krb5_free_ticket().

krb5_ticket_get_authorization_data_type() fetches the authorization data of the type type from the ticket. If there isn't any authorization data of type type, ENOENT is returned. data needs to be freed with krb5_data_free() on success.

krb5_ticket_get_client() and krb5_ticket_get_server() returns a copy of the client/server principal from the ticket. The principal returned should be free using krb5_free_principal(3).

krb5_ticket_get_endtime() return the end time of the ticket.

History

  • Debian 5.0 (Lenny): the text shown here
  • Debian 4.0 (Etch)

From heimdal-dev 1.2.dfsg.1-2.1+lenny1 in Debian 5.0 (Lenny). Parsed by carta from the page's mdoc source.