aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dirmngr_ldap.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2017-11-07 01:49:36 +0000
committerNIIBE Yutaka <[email protected]>2017-11-07 01:49:36 +0000
commit380bce13d94ff03c96e39ac1d834f382c5c730a1 (patch)
treeae6197075332012aad92bc85eeb1e5b89a24dcf0 /dirmngr/dirmngr_ldap.c
parenttests: Minor imporvement in agent invocation (diff)
downloadgnupg-380bce13d94ff03c96e39ac1d834f382c5c730a1.tar.gz
gnupg-380bce13d94ff03c96e39ac1d834f382c5c730a1.zip
agent: Use clock or clock_gettime for calibration.
* agent/protect.c (calibrate_get_time): Use clock or clock_gettime. -- For calibration, clock(3) is better than times(3) among UNIXen. Tested on NetBSD 7.1 and FreeBSD 11.1, using QEMU. Thanks to Damien Goutte-Gattat for the information of use of CLOCKS_PER_SEC; The old code with times(3) is not 100% correct, in terms of POSIX. It should have used sysconf (_SC_CLK_TCK) instead of CLOCKS_PER_SEC. CLOCKS_PER_SEC is specifically for clock(3). GnuPG-bug-id: 3056, 3276, 3472 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'dirmngr/dirmngr_ldap.c')
0 files changed, 0 insertions, 0 deletions