1pskc_get_key_data_timedrift(3) libpskc pskc_get_key_data_timedrift(3)
2
3
4
6 pskc_get_key_data_timedrift - API function
7
9 #include <pskc.h>
10
11 uint32_t pskc_get_key_data_timedrift(pskc_key_t * key, int * present);
12
14 pskc_key_t * key
15 a pskc_key_t handle, from pskc_get_keypackage().
16
17 int * present
18 output variable indicating whether data was provided or
19 not.
20
22 Get the PSKC KeyPackage Key Data TimeDrift value. This element con‐
23 tains the device clock drift value for time-based OTP algorithms. The
24 integer value (positive or negative drift) that indicates the number of
25 time intervals that a validation server has established the device
26 clock drifted after the last successful authentication. So, for exam‐
27 ple, if the last successful authentication established a device time
28 value of 8 intervals from a specific start date but the validation
29 server determines the time value at 9 intervals, the server SHOULD
30 record the drift as -1.
31
32 If present is non-NULL, it will be 0 if the field is not present or 1
33 if it was present.
34
36 an integer holding the content.
37
39 Report bugs to <oath-toolkit-help@nongnu.org>. libpskc home page:
40 http://www.gnu.org/software/libpskc/ General help using GNU software:
41 http://www.gnu.org/gethelp/
42
44 Copyright © 2012-2016 Simon Josefsson.
45 Copying and distribution of this file, with or without modification,
46 are permitted in any medium without royalty provided the copyright
47 notice and this notice are preserved.
48
49
50
51libpskc 2.6.2 pskc_get_key_data_timedrift(3)