HP Open Source Security for OpenVMS Volume 3: Kerberos > Chapter 6 KRB5 (Kerberos V5) Application Programming Interface

krb5_rd_rep — Parse and decrypt an AP_REP message

 » Table of Contents

 » Glossary

 » Index

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:

0Successful completion.

ENOMEM

Insufficient memory.