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

krb5_init_context — Initialize a Kerberos context structure

  Table of Contents



C Prototype

krb5_error_code krb5_init_context(
krb5_context *context );


context (output) 

A pointer to the context structure that has been initialized.


This routine initializes the context for the application. The context contains the encryption types, a pointer to operating specific data and the default realm. In the future, the context may also contain thread specific data. The data in the context should be freed with krb5_free_context.

Return Values

This routine returns the following KRB5 status code:


Successful completion.

ENOMEM Insufficient memory.