krb5_init_context()--Create and Initialize a Kerberos Context


  Syntax
 #include <krb5.h>

 krb5_error_code krb5_init_context(
     krb5_context *     context);   
  Service Program Name: QSYS/QKRBGSS

  Default Public Authority: *USE

  Threadsafe: Yes

The krb5_init_context() function creates a new Kerberos context and initializes it with default values obtained from the Kerberos configuration file. Each application needs at least one Kerberos context. A context may be shared by multiple threads within the same process. Use the krb5_free_context() routine to release the context when it is no longer needed.


Authorities

Object Referred to Data Authority Required
Each directory in the path name preceding the configuration files *X
Configuration files *R


Parameters

context  (Output)
The handle for the Kerberos context.

Return Value

If no errors occur, the return value is 0. Otherwise, a Kerberos error code is returned.


Error Messages

Message ID Error Message Text
CPE3418 E Possible APAR condition or hardware failure.



API introduced: V5R1

[ Back to top | Security APIs | UNIX-Type APIs | APIs by category ]