[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

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

krb5_auth_con_init — Initialize the auth_context

 » Table of Contents

 » Glossary

 » Index

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.