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_get_validated_creds  Get validated credentials krb5_get_validated_creds Get validated credentials
go to next page: krb5_init_keyblock  Set up an empty keyblockkrb5_init_keyblock Set up an empty keyblock
end of book navigation links

krb5_init_context -- Initialize a Kerberos context structure 



C Prototype 

krb5_error_code krb5_init_context(
        krb5_context   *context );

Arguments 

context
(output)
 A pointer to the context structure that has been initialized.

Description 

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:

0
Successful completion.
ENOMEM
Insufficient memory.


go to previous page: krb5_get_validated_creds  Get validated credentials krb5_get_validated_creds Get validated credentials
go to next page: krb5_init_keyblock  Set up an empty keyblockkrb5_init_keyblock Set up an empty keyblock