summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authortb <>2021-11-03 13:44:15 +0000
committertb <>2021-11-03 13:44:15 +0000
commit3d8791232e97df9ea6bc9b6f8533b6556e5cd3e4 (patch)
treedc4d2fb58725fbca69758907d792eb299e4b6741 /src/lib/libc
parent446bdc00d398da1a5df0e490891dfa0f46829289 (diff)
downloadopenbsd-3d8791232e97df9ea6bc9b6f8533b6556e5cd3e4.tar.gz
openbsd-3d8791232e97df9ea6bc9b6f8533b6556e5cd3e4.tar.bz2
openbsd-3d8791232e97df9ea6bc9b6f8533b6556e5cd3e4.zip
Fix ASN1_TIME_diff() with NULL times
The ASN1_TIME_diff() API accepts NULL ASN1_TIMEs and interprets them as "now". This is used in sysutils/monit, as found by semarie with a crash after update. Implement this behavior by porting a version of ASN1_TIME_to_tm() to LibreSSL and using it in ASN1_TIME_diff(). Tested by semarie ok beck jsing semarie
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions