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.
|