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_auth_con_getremotesubkey  Retrieve the remote_subkey keyblock from auth_context krb5_auth_con_getremotesubkey Retrieve the remote_subkey keyblock...
go to next page: krb5_auth_con_setaddrs  Set address fields in auth_contextkrb5_auth_con_setaddrs Set address fields in auth_context
end of book navigation links

krb5_auth_con_init -- Initialize the auth_context 



C Prototype 

krb5_error_code krb5_auth_con_init(
        krb5_context        context,
        krb5_auth_context   *auth_context );

Arguments 

context
(input/output)
 The context structure.
auth_context (output)  A per connection context.

Description 

This routine initializes the auth_context. The auth_context contains all data pertinent to the various authentication routines.

The default flags for the context are set to enable the use of the replay cache (krb5_auth_context_do_time) but no sequence numbers. The function krb5_auth_con_setflags allows the flags to be changed.

The default checksum type is set to CKSUMTYPE_RSA_MD4_DES. This may be changed with krb5_auth_con_setcksumtype.

The auth_context structure should be freed with krb5_auth_con_free.

Return Values 

This routine returns the following KRB5 status code:

0
Successful completion.


go to previous page: krb5_auth_con_getremotesubkey  Retrieve the remote_subkey keyblock from auth_context krb5_auth_con_getremotesubkey Retrieve the remote_subkey keyblock...
go to next page: krb5_auth_con_setaddrs  Set address fields in auth_contextkrb5_auth_con_setaddrs Set address fields in auth_context