]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/err/openssl.txt
Ensure ossl_cms_EncryptedContent_init_bio() reports an error on no OID
authorMatt Caswell <matt@openssl.org>
Tue, 6 Dec 2022 14:51:54 +0000 (14:51 +0000)
committerTomas Mraz <tomas@openssl.org>
Thu, 22 Dec 2022 10:01:06 +0000 (11:01 +0100)
commitbf3f8f2c0ea7bdfb007079aade8e01a06e79874f
treee1b956969e065525e371c68db06472b9e505873d
parent0f48050b5a8881870b8e25382f817b3a3dc14f16
Ensure ossl_cms_EncryptedContent_init_bio() reports an error on no OID

If the cipher being used in ossl_cms_EncryptedContent_init_bio() has no
associated OID then we should report an error rather than continuing on
regardless. Continuing on still ends up failing - but later on and with a
more cryptic error message.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19918)
crypto/cms/cms_enc.c
crypto/cms/cms_err.c
crypto/err/openssl.txt
include/openssl/cmserr.h