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

krb5_kt_resolve — Get keytab handle

  Table of Contents



C Prototype

krb5_error_code krb5_kt_resolve(
krb5_context context,
const char *string_name,
krb5_keytab *id );


context (input/output) 

The context structure.

string_name (input)  

The name of the keytab.

id (output) 

A keytab handle.


This routine fills in id with a handle identifying the keytab with the name string_name. The keytab is not opened. The routine requires that string_name be of the form type:residual and type is a type known to the library.

Return Values

This routine returns the following KRB5 status code:


Successful completion.


Insufficient memory.


Unknown keytab type.