skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_get_time_offsets  Get the time offsets from the os context krb5_get_time_offsets Get the time offsets from the os context
go to next page: krb5_init_context  Initialize a Kerberos context structurekrb5_init_context Initialize a Kerberos context structure
end of book navigation links

krb5_get_validated_creds -- Get validated credentials 



C Prototype 

krb5_error_code krb5_get_validated_creds (
        krb5_context            context,
        krb5_creds              *creds,
        krb5_principal          client,
        krb5_ccache             ccache,
        char                    *in_tkt_service );

Arguments 

context
(input/output)
 The context structure.
creds (output)  A pointer to a Kerberos credentials structure.
client (input) The client principal.
ccache (input)  The credentials cache name.
in_tkt_service (input) A pointer to the principal name of the requesting server.

Description 

This routine acquires a set of validated credentials from the KDC.

Return Values 

This routine returns the following KRB5 status codes:

0
Successful completion.
KRB5_NO_2ND_TKT
Request missing second ticket.
KRB5_NO_TKT_SUPPLIED
Request did not supply a ticket.
KRB5_PRINC_NOMATCH
Requested principal and ticket don't match.
KRB5_KDCREP_MODIFIED
KDC reply did not match expectations.
KRB5_KDCREP_SKEW
Clock skew too great in KDC reply.
ENOMEM
Insufficient memory.


go to previous page: krb5_get_time_offsets  Get the time offsets from the os context krb5_get_time_offsets Get the time offsets from the os context
go to next page: krb5_init_context  Initialize a Kerberos context structurekrb5_init_context Initialize a Kerberos context structure