skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_auth_con_setrcache  Set the replay cache krb5_auth_con_setrcache Set the replay cache
go to next page: krb5_build_principal  Build a principal namekrb5_build_principal Build a principal name
end of book navigation links

krb5_auth_con_setuseruserkey -- Set keyblock field in auth_context to temporary key 



C Prototype 

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

Arguments 

context
(input/output)
 The context structure.
auth_context (input/output)
 A per-connection context.
keyblock (input) Server key for incoming request.

Description 

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:

0
Successful completion.
ENOMEM
Insufficient memory.


go to previous page: krb5_auth_con_setrcache  Set the replay cache krb5_auth_con_setrcache Set the replay cache
go to next page: krb5_build_principal  Build a principal namekrb5_build_principal Build a principal name