summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/req.c
diff options
context:
space:
mode:
authortb <>2023-03-04 21:02:21 +0000
committertb <>2023-03-04 21:02:21 +0000
commit7923ccd455e02b2cd273c05d55b39515b4c05b77 (patch)
tree88ed4bf58f60350806642f02f2ea7ef93d846a72 /src/usr.bin/openssl/req.c
parent98663aed9698c546fe7e0b3f24371011c019a59b (diff)
downloadopenbsd-7923ccd455e02b2cd273c05d55b39515b4c05b77.tar.gz
openbsd-7923ccd455e02b2cd273c05d55b39515b4c05b77.tar.bz2
openbsd-7923ccd455e02b2cd273c05d55b39515b4c05b77.zip
Add dsa_check_key() calls on DSA decoding
When decoding a public or a private key, use dsa_check_key() to ensure consistency of the DSA parameters. We do not always have sufficient information to do that, so this is not always possible. This adds new checks and replaces incomplete existing ones. On decoding the private key we will now only calculate the corresponding public key, if the sizes are sensible. This avoids potentially expensive operations. ok beck jsing
Diffstat (limited to 'src/usr.bin/openssl/req.c')
0 files changed, 0 insertions, 0 deletions