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_prompter_posix  Prompt the user for the Kerberos password krb5_prompter_posix Prompt the user for the Kerberos password
go to next page: krb5_rd_error  Read an error protocol messagekrb5_rd_error Read an error protocol message
end of book navigation links

krb5_rd_cred -- Read a KRB_CRED message  



C Prototype 

krb5_error_code krb5_rd_cred (
        krb5_context            context,
        krb5_auth_context       auth_context,
        krb5_data               *pcreddata,
        krb5_creds              ***pppcreds,
        krb5_replay_data        *outdata );

Arguments 

context
(input/output)
 The context structure.
auth_context (input/output)
 A per-connection context.
pcreddata (input) The KRB_CRED message.
pppcreds (output) The array of forwarded credentials.
outdata (output) The replay data information (the nonce).

Description 

This routine reads a KRB_CRED message, validates it, and outputs the nonce and an array of the forwarded credentials.

Return Values 

This routine returns one of the following KRB5 status codes:

0
Successful completion.
KRB5_RC_REQUIRED
Message replay detection requires rcache parameter.
KRB5KRB_AP_ERR_SKEW
Clock skew too great.
KRB5KRB_AP_ERR_BADORDER
Message out of order.
ENOMEM
Insufficient memory.


go to previous page: krb5_prompter_posix  Prompt the user for the Kerberos password krb5_prompter_posix Prompt the user for the Kerberos password
go to next page: krb5_rd_error  Read an error protocol messagekrb5_rd_error Read an error protocol message