summaryrefslogtreecommitdiff
path: root/src/lib/libssl
diff options
context:
space:
mode:
authortb <>2024-05-03 18:29:43 +0000
committertb <>2024-05-03 18:29:43 +0000
commitda63cf412be6357bbbe95a07f6e755c33940f94c (patch)
tree1172459a3de48809914aa8b638f88e50cb6de348 /src/lib/libssl
parentb6b12c6b4d7e44619caf93e9c143c523b7ddfc2e (diff)
downloadopenbsd-da63cf412be6357bbbe95a07f6e755c33940f94c.tar.gz
openbsd-da63cf412be6357bbbe95a07f6e755c33940f94c.tar.bz2
openbsd-da63cf412be6357bbbe95a07f6e755c33940f94c.zip
Intercept a NULL s early in ASN1_TIME_set_string_internal()
If s is NULL, the only thing the tm_to_*() functions do is a check that a GeneralizedTime has a four digit year (between 0000 and 9999) and a UTCTime has a year between 1950 and 2050. These checks are already done in ASN1_TIME_parse() itself: the century is 100 times a two-digit value (or 19 in the UTCTime case) plus another two-digit value. ok beck
Diffstat (limited to 'src/lib/libssl')
0 files changed, 0 insertions, 0 deletions