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

krb5_set_real_time — Set time offset field in context structure

  Table of Contents



C Prototype

krb5_error_code krb5_set_real_time (
krb5_context context,
krb5_int32 seconds,
krb5_int32 microseconds );


context (input/output) 

The context structure.

seconds (input) 

The number of seconds to set in the time_offset field in the context.

microseconds (input) 

The number of microseconds to set in the usec_offset field in the context.


This routine takes the “real time” as input, and sets the time offset fields in the Kerberos context structure so that the krb5 time routines will return the correct time, as corrected by the difference between the system time and the “real time” as passed to this routine.

Return Values

This routine returns the following KRB5 status codes:


Successful completion.