diff options
author | tb <> | 2023-03-06 08:37:24 +0000 |
---|---|---|
committer | tb <> | 2023-03-06 08:37:24 +0000 |
commit | 597b50a677df9e7eb738243fbd13a57115118263 (patch) | |
tree | 76824b9082f6ec29957aaaa0d4e933577d68d52f /src/usr.bin/openssl/dsa.c | |
parent | 6d55865d658cc128dcfc12087fc0d797c48fb108 (diff) | |
download | openbsd-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