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_rd_priv  Parse a KRB_PRIV message krb5_rd_priv Parse a KRB_PRIV message
go to next page: krb5_rd_req  Parse a KRB_AP_REQ messagekrb5_rd_req Parse a KRB_AP_REQ message
end of book navigation links

krb5_rd_rep -- Parse and decrypt an AP_REP message 



C Prototype 

krb5_error_code krb5_rd_rep(
         krb5_context           context,
         krb5_auth_context      auth_context,
         const krb5_data        *inbuf,
         krb5_ap_rep_enc_part   **repl );

Arguments 

context
(input/output)
 The context structure.
auth_context (input/output)
 Authentication context.
inbuf (input) The AP_REP message to parse and decrypt.
repl (output)  The parsed message.

Description 

This routine parses and decrypts an AP_REP message from *inbuf, filling in *repl with a pointer to allocated storage containing the values from the message. The caller is responsible for freeing this structure with krb5_free_ap_rep_enc_part.

The keyblock stored in auth_context is used to decrypt the message after establishing any key preprocessing with krb5_process_key.

Return Values 

This routine returns one of the following KRB5 status codes:

0
Successful completion.
ENOMEM
Insufficient memory.


go to previous page: krb5_rd_priv  Parse a KRB_PRIV message krb5_rd_priv Parse a KRB_PRIV message
go to next page: krb5_rd_req  Parse a KRB_AP_REQ messagekrb5_rd_req Parse a KRB_AP_REQ message