summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/t_pkey.c
diff options
context:
space:
mode:
authortb <>2023-03-06 08:37:24 +0000
committertb <>2023-03-06 08:37:24 +0000
commitc32ff5d590d375133b0f6ea63f64836460523ada (patch)
tree76824b9082f6ec29957aaaa0d4e933577d68d52f /src/lib/libcrypto/asn1/t_pkey.c
parentdaaadcc1de30d7b6dc48967a86d15a6642905d70 (diff)
downloadopenbsd-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/t_pkey.c')
0 files changed, 0 insertions, 0 deletions