summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-12-06 14:51:54 +0000
committerTomas Mraz <tomas@openssl.org>2022-12-22 11:03:50 +0100
commitcc122995d1fa12fb8f93562e0aca4a62cd83fc5b (patch)
treed60705e2c7e7941c262a52ca0bf3878e9e2b3449 /include
parent903e96599b53639d6a72f9b05514f93136eaf03b (diff)
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/19919)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/cmserr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openssl/cmserr.h b/include/openssl/cmserr.h
index 1c4f4c799d..d48c2a4ab8 100644
--- a/include/openssl/cmserr.h
+++ b/include/openssl/cmserr.h
@@ -105,6 +105,7 @@
# define CMS_R_UNKNOWN_DIGEST_ALGORITHM 149
# define CMS_R_UNKNOWN_ID 150
# define CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM 151
+# define CMS_R_UNSUPPORTED_CONTENT_ENCRYPTION_ALGORITHM 194
# define CMS_R_UNSUPPORTED_CONTENT_TYPE 152
# define CMS_R_UNSUPPORTED_ENCRYPTION_TYPE 192
# define CMS_R_UNSUPPORTED_KEK_ALGORITHM 153