krb5_auth_con_set_req_cksumtype()--Set Checksum Type Used to Generate an Application Request Message


  Syntax
 #include <krb5.h>

 krb5_error_code krb5_auth_con_set_req_cksumtype(  
     krb5_context     context,
     krb5_auth_context      auth_context,  
     krb5_cksumtype     cksumtype); 
  Service Program Name: QSYS/QKRBGSS

  Default Public Authority: *USE

  Threadsafe: Conditional. See Usage Notes.

The krb5_auth_con_set_req_cksumtype() function sets the checksum type that will be used by the krb5_mk_req() to generate an application request message. This overrides the default value set by the ap_req_checksum_type entry in the Kerberos configuration file.


Authorities

No authorities are required.


Parameters

context  (Input)
The Kerberos context.

auth_context  (Input)
The authentication context.

cksumtype  (Input)
The checksum type as follows:

CKSUMTYPE_CRC32 (x'0001') DES CRC checksum
CKSUMTYPE_DESCBC (x'0004') DES CBC checksum
CKSUMTYPE_RSA_MD5 (x'0007') MD5 checksum
CKSUMTYPE_RSA_MD5_DES (x'0008') DES MD5 checksum


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 protocol runtime provides no concurrency control for the authentication context. If the application wants to use the same authentication context in multiple threads, it is the responsibility of the application to serialize access to the authentication context so that only a single thread is accessing the authentication context at any time.


API introduced: V5R1

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