#include <krb5.h> krb5_error_code krb5_sendauth( krb5_context context, krb5_auth_context * auth_context, krb5_pointer socket, char * appl_version, krb5_principal client, krb5_principal server, krb5_int32 app_req_options, krb5_data * appl_data, krb5_creds * in_creds, krb5_ccache ccache, krb5_error ** error, krb5_ap_rep_enc_part ** rep_result, krb5_creds ** out_creds)Service Program Name: QSYS/QKRBGSS
The krb5_sendauth() function generates an authentication message stream for processing by the krb5_recvauth() routine. It sends the authentication message and receives the authentication response using the socket descriptor supplied by the application. The application is responsible for establishing the connection before calling the krb5_sendauth() routine. The krb5_sendauth() routine generates an AP_REQ message. The checksum of the application data is included in the authenticator which is part of the AP_REQ message. This message is then sent to the partner application, which calls the krb5_recvauth() routine to validate the authenticity of the message. The checksum method set in the authentication context is used to generate the checksum.
None.
AP_OPTS_USE_SESSION_KEY | Use session key instead of server key for the service ticket. The credentials must include a ticket which is encrypted in the session key. |
AP_OPTS_MUTUAL_REQUIRED | Mutual authentication required. |
AP_OPTS_USE_SUBKEY | Generate a subsession key from the current session key obtained from the credentials. |
When the Kerberos runtime obtains the service ticket, additional fields are checked in the input credentials. The second_ticket field must be set if the service ticket is to be encrypted in a session key. The ticket expiration time can be set to override the default expiration time. The key encryption type can be set to override the default ticket encryption type.
If no errors occur, the return value is 0. Otherwise, a Kerberos error code is returned.
Message ID | Error Message Text |
---|---|
CPE3418 E | Possible APAR condition or hardware failure. |
Top | Security APIs UNIX-Type APIs | APIs by category |