krb5_kt_resolve()--Resolve Key Table Name


  Syntax
 #include <krb5.h>

 krb5_error_code krb5_kt_resolve(
     krb5_context       context,
     krb5_const char *      keytab_name,   
     krb5_keytab *      ktid); 
  Service Program Name: QSYS/QKRBGSS

  Default Public Authority: *USE

  Threadsafe: Yes

The krb5_kt_resolve() function resolves a key table name and returns a handle that can be used to access the table.


Authorities

No authorities are required.


Parameters

context  (Input)
The Kerberos context.

keytab_name  (Input)
The key table name in the format "type:name". The type must be a registered key table type and the name must uniquely identify a particular key table of the specified type.

ktid  (Output)
The key table handle.

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.


Usage Notes

  1. The Kerberos runtime supports two key table types: FILE and WRFILE. Additional key table types can be registered by the application by calling the krb5_kt_register() routine. If no type is specified, the default is FILE.


API introduced: V5R1

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