summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/dsa.c
diff options
context:
space:
mode:
authortb <>2023-03-06 08:37:24 +0000
committertb <>2023-03-06 08:37:24 +0000
commit597b50a677df9e7eb738243fbd13a57115118263 (patch)
tree76824b9082f6ec29957aaaa0d4e933577d68d52f /src/usr.bin/openssl/dsa.c
parent6d55865d658cc128dcfc12087fc0d797c48fb108 (diff)
downloadopenbsd-597b50a677df9e7eb738243fbd13a57115118263.tar.gz
openbsd-597b50a677df9e7eb738243fbd13a57115118263.tar.bz2
openbsd-597b50a677df9e7eb738243fbd13a57115118263.zip
Fix some return checks in ecdh_cms_encrypt()
i2d functions return <= 0 on error, so check for that instead of == 0. The issue with CMS_SharedInfo_encode() was found by Niels Dossche. OpenSSL review overlooked that they had turned penclen into a size_t. In principle the issue with i2d_X509_ALGOR() is purely cosmetic. Why do a strange check when there is an idiomatic check? Then again this is CMS... ok jsing
Diffstat (limited to 'src/usr.bin/openssl/dsa.c')
0 files changed, 0 insertions, 0 deletions