openssl/crypto/cms
ndossche ba061818e9 Fix incomplete check on CMS_SharedInfo_encode
CMS_SharedInfo_encode() can also return a negative error value, but this
is not checked in the current check, only the zero error return value is
covered. A previous PR [1] fixed the other caller's check of
CMS_SharedInfo_encode in this file, but it seems like this place was
missed. Fix it by changing the check to <= 0.

[1] a752fc4da5

CLA: trivial

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20181)
2023-02-08 16:57:58 +01:00
..
build.info Drop unnecessary checks of OPENSSL_NO_DH, OPENSSL_NO_DSA and OPENSSL_NO_EC 2020-12-16 11:56:38 +01:00
cms_asn1.c crypto: Fix various typos, repeated words, align some spelling to LDP. 2022-10-12 16:55:01 +11:00
cms_att.c Update copyright year 2021-04-08 13:04:41 +01:00
cms_cd.c Convert ZLIB defines to OPENSSL_NO_ZLIB 2022-10-18 09:30:21 -04:00
cms_dd.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cms_dh.c libcrypto refactoring: introduce and use ossl_asn1_string_set_bits_left() 2022-07-19 08:44:19 +02:00
cms_ec.c Fix incomplete check on CMS_SharedInfo_encode 2023-02-08 16:57:58 +01:00
cms_enc.c Ensure ossl_cms_EncryptedContent_init_bio() reports an error on no OID 2022-12-22 11:01:06 +01:00
cms_env.c rsa: Add option to disable implicit rejection 2022-12-12 11:30:52 +01:00
cms_err.c Ensure ossl_cms_EncryptedContent_init_bio() reports an error on no OID 2022-12-22 11:01:06 +01:00
cms_ess.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cms_io.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cms_kari.c cms: remove TODOs 2021-06-02 16:30:15 +10:00
cms_lib.c Fix incomplete error check on BIO_set_md() 2023-02-08 10:34:49 -05:00
cms_local.h CMS: add CMS_SignedData_verify(), a variant of CMS_verify() with extensions 2022-07-16 08:15:49 +02:00
cms_pwri.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cms_rsa.c Obtain PSS salt length from provider 2022-12-08 11:02:52 +01:00
cms_sd.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cms_smime.c CMS_decrypt_set1_*(): fix NULL deref on unsuitable content type 2023-02-08 16:33:29 +01:00