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

krb5_auth_con_setuseruserkey — Set keyblock field in auth_context to temporary key

  Table of Contents



C Prototype

krb5_error_code krb5_auth_con_setuseruserkey(
krb5_context context,
krb5_auth_context auth_context,
krb5_keyblock *keyblock );


context (input/output) 

The context structure.

auth_context (input/output)  

A per-connection context.

keyblock (input) 

Server key for incoming request.


This routine overloads the keyblock field. It is only useful prior to a krb5_rd_req_decode call for user-to-user authentication where the server has the key and needs to use it to decrypt the incoming request. Once decrypted, this key is no longer necessary. It is then overwritten with the session key sent by the client.

Return Values

This routine returns the following KRB5 status code:


Successful completion.


Insufficient memory.