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

krb5_rd_error — Read an error protocol message

  Table of Contents

  Glossary

  Index

C Prototype

krb5_error_code krb5_rd_error (
krb5_context context,
const krb5_data *enc_errbuf,
krb5_error **dec_error );

Arguments

context (input) 

The context structure.

enc_errbuf (input) 

A pointer to the error protocol message.

dec_error (output)  

A pointer to allocated storage containing the error message.

Description

Parses an error protocol message from enc_errbuf and fills in *dec_error with a pointer to allocated storage containing the error message. The caller is responsible for freeing this structure by using krb5_free_error.

Return Values

This routine returns one of the following KRB5 status code:

0Successful completion.