#include <gssapi.h> OM_uint32 gss_acquire_cred( OM_uint32 * minor_status, gss_name_t desired_name, OM_uint32 time_req, gss_OID_set desired_mechs, gss_cred_usage_t cred_usage, gss_cred_id_t * output_cred_handle, gss_OID_set * actual_mechs, OM_uint32 * time_rec);Service Program Name: QSYS/QKRBGSS
The gss_acquire_cred() function allows an application to acquire a GSS credential. The application can then use the credential with the gss_init_sec_context() and gss_accept_sec_context() routines.
The following security mechanisms are supported:
gss_mech_krb5_old | Beta Kerberos V5 mechanism |
gss_mech_krb5 | Kerberos V5 mechanism |
GSS_C_ACCEPT | The credential can be used only to accept security contexts. |
GSS_C_BOTH | The credential can be used to both initiate and accept security contexts. |
GSS_C_INITIATE | The credential can be used only to initiate security contexts. |
The return value is one of the following status codes:
Object Referred to | Data Authority Required |
---|---|
Each directory in the path name preceding the configuration file | *X |
Configuration file | *R |
Each directory preceding the credential cache file if GSS_C_INITIATE or GSS_C_BOTH is specified for credential usage | *X |
Credential cache file | *RW |
Each directory preceding the keytab file if GSS_C_ACCEPT or GSS_C_BOTH is specified for credential usage | *X |
Keytab file | *R |
Message ID | Error Message Text |
---|---|
CPE3418 E | Possible APAR condition or hardware failure. |
Top |
Security APIs UNIX-Type APIs | APIs by category |