diff options
author | tb <> | 2021-11-03 13:44:15 +0000 |
---|---|---|
committer | tb <> | 2021-11-03 13:44:15 +0000 |
commit | 3d8791232e97df9ea6bc9b6f8533b6556e5cd3e4 (patch) | |
tree | dc4d2fb58725fbca69758907d792eb299e4b6741 /src/lib/libc | |
parent | 446bdc00d398da1a5df0e490891dfa0f46829289 (diff) | |
download | openbsd-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