krb5_ticket_get_client

Langue: en

Version: 291828 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)


BSD mandoc
HEIMDAL

NAME

krb5_ticket krb5_free_ticket krb5_copy_ticket krb5_ticket_get_authorization_data_type krb5_ticket_get_client krb5_ticket_get_server krb5_ticket_get_endtime - Kerberos 5 ticket access and handling functions

LIBRARY

Kerberos 5 Library (libkrb5, -lkrb5)

SYNOPSIS

In krb5.h

krb5_ticket

Ft krb5_error_code Fo krb5_free_ticket Fa krb5_context context Fa krb5_ticket *ticket Fc Ft krb5_error_code Fo krb5_copy_ticket Fa krb5_context context Fa const krb5_ticket *from Fa krb5_ticket **to Fc Ft krb5_error_code Fo krb5_ticket_get_authorization_data_type Fa krb5_context context Fa krb5_ticket *ticket Fa int type Fa krb5_data *data Fc Ft krb5_error_code Fo krb5_ticket_get_client Fa krb5_context context Fa const krb5_ticket *ticket Fa krb5_principal *client Fc Ft krb5_error_code Fo krb5_ticket_get_server Fa krb5_context context Fa const krb5_ticket *ticket Fa krb5_principal *server Fc Ft time_t Fo krb5_ticket_get_endtime Fa krb5_context context Fa const krb5_ticket *ticket Fc  

DESCRIPTION

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

Fn krb5_free_ticket frees the Fa ticket and its content. Used to free the result of Fn krb5_copy_ticket and Fn krb5_recvauth .

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

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

Fn krb5_ticket_get_client and Fn krb5_ticket_get_server returns a copy of the client/server principal from the ticket. The principal returned should be free using krb5_free_principal3.

Fn krb5_ticket_get_endtime return the end time of the ticket.

SEE ALSO

krb5(3)