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



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




API introduced: V5R1

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