summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_both.c
diff options
context:
space:
mode:
authortb <>2021-11-03 13:44:15 +0000
committertb <>2021-11-03 13:44:15 +0000
commitdde146c50469975e7e0c71d8dc5311229d2654b6 (patch)
treedc4d2fb58725fbca69758907d792eb299e4b6741 /src/lib/libssl/d1_both.c
parentda3b2c27a37246babeffd551a8c0b1baf8ed6077 (diff)
downloadopenbsd-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/d1_both.c')
0 files changed, 0 insertions, 0 deletions