diff options
author | tb <> | 2024-05-03 18:29:43 +0000 |
---|---|---|
committer | tb <> | 2024-05-03 18:29:43 +0000 |
commit | 603c25396734cafcf5052772d80d74998ed629a3 (patch) | |
tree | 1172459a3de48809914aa8b638f88e50cb6de348 /src/lib/libcrypto/dsa/dsa_gen.c | |
parent | 20c5da2aca77dcbe946a722d85bfe67619df1130 (diff) | |
download | openbsd-603c25396734cafcf5052772d80d74998ed629a3.tar.gz openbsd-603c25396734cafcf5052772d80d74998ed629a3.tar.bz2 openbsd-603c25396734cafcf5052772d80d74998ed629a3.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/libcrypto/dsa/dsa_gen.c')
0 files changed, 0 insertions, 0 deletions