summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_pmeth.c
diff options
context:
space:
mode:
authortb <>2024-05-03 18:29:43 +0000
committertb <>2024-05-03 18:29:43 +0000
commit603c25396734cafcf5052772d80d74998ed629a3 (patch)
tree1172459a3de48809914aa8b638f88e50cb6de348 /src/lib/libcrypto/dsa/dsa_pmeth.c
parent20c5da2aca77dcbe946a722d85bfe67619df1130 (diff)
downloadopenbsd-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_pmeth.c')
0 files changed, 0 insertions, 0 deletions