#include <gssapi.h> OM_uint32 gss_add_cred( OM_uint32 * minor_status, gss_cred_id_t input_cred_handle, gss_name_t desired_name, gss_OID mech_type, gss_cred_usage_t cred_usage, OM_uint32 init_time_req, OM_uint32 accept_time_req, gss_cred_id_t * output_cred_handle, gss_OID_set * actual_mechs, OM_uint32 * init_time_rec, OM_uint32 * accept_time_rec);Service Program Name: QSYS/QKRBGSS
The gss_add_cred() function adds a credential element to an existing GSS credential. The credential must not already contain an element for the mechanism. A GSS credential must contain an element for each mechanism that will be used for contexts that are initiated or accepted using the credential.
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 |
Message ID | Error Message Text |
---|---|
CPE3418 E | Possible APAR condition or hardware failure. |
Top | Security APIs UNIX-Type APIs | APIs by category |