diff options
author | tb <> | 2023-03-06 08:37:24 +0000 |
---|---|---|
committer | tb <> | 2023-03-06 08:37:24 +0000 |
commit | c32ff5d590d375133b0f6ea63f64836460523ada (patch) | |
tree | 76824b9082f6ec29957aaaa0d4e933577d68d52f /src/lib/libcrypto/asn1/x_exten.c | |
parent | daaadcc1de30d7b6dc48967a86d15a6642905d70 (diff) | |
download | openbsd-c32ff5d590d375133b0f6ea63f64836460523ada.tar.gz openbsd-c32ff5d590d375133b0f6ea63f64836460523ada.tar.bz2 openbsd-c32ff5d590d375133b0f6ea63f64836460523ada.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/lib/libcrypto/asn1/x_exten.c')
0 files changed, 0 insertions, 0 deletions