diff options
author | tb <> | 2021-11-03 13:44:15 +0000 |
---|---|---|
committer | tb <> | 2021-11-03 13:44:15 +0000 |
commit | dde146c50469975e7e0c71d8dc5311229d2654b6 (patch) | |
tree | dc4d2fb58725fbca69758907d792eb299e4b6741 /src/lib/libssl/ssl_err.c | |
parent | da3b2c27a37246babeffd551a8c0b1baf8ed6077 (diff) | |
download | openbsd-dde146c50469975e7e0c71d8dc5311229d2654b6.tar.gz openbsd-dde146c50469975e7e0c71d8dc5311229d2654b6.tar.bz2 openbsd-dde146c50469975e7e0c71d8dc5311229d2654b6.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/libssl/ssl_err.c')
0 files changed, 0 insertions, 0 deletions