MIT Kerberos Documentation


krb5_init_context - Create a krb5 library context.

krb5_error_code krb5_init_context(krb5_context * context)
param:[out] context - Library context
retval:
  • 0 Success
return:
  • Kerberos error codes

The context must be released by calling krb5_free_context() when it is no longer needed.

Warning

Any program or module that needs the Kerberos code to not trust the environment must use krb5_init_secure_context() , or clean out the environment.