aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/openssl/openssl/CVE-2021-23840-pre2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/openssl/openssl/CVE-2021-23840-pre2.patch')
-rw-r--r--recipes-connectivity/openssl/openssl/CVE-2021-23840-pre2.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-connectivity/openssl/openssl/CVE-2021-23840-pre2.patch b/recipes-connectivity/openssl/openssl/CVE-2021-23840-pre2.patch
new file mode 100644
index 0000000..5a95f84
--- /dev/null
+++ b/recipes-connectivity/openssl/openssl/CVE-2021-23840-pre2.patch
@@ -0,0 +1,42 @@
+Backport of:
+
+From 4bd0db1feaaf97fbc2bd31f54f1fbdeab80b2b1a Mon Sep 17 00:00:00 2001
+From: Richard Levitte <levitte@openssl.org>
+Date: Sun, 9 Dec 2018 14:20:30 +0100
+Subject: [PATCH] make update
+
+Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
+Reviewed-by: Paul Dale <paul.dale@oracle.com>
+(Merged from https://github.com/openssl/openssl/pull/7852)
+
+(cherry picked from commit f2f734d4f9e34643a1d3e5b79d2447cd643519f8)
+---
+ crypto/err/openssl.txt | 1 +
+ crypto/evp/evp_err.c | 2 ++
+ include/openssl/evperr.h | 1 +
+ 3 files changed, 4 insertions(+)
+
+Index: openssl-1.0.2u/crypto/evp/evp_err.c
+===================================================================
+--- openssl-1.0.2u.orig/crypto/evp/evp_err.c
++++ openssl-1.0.2u/crypto/evp/evp_err.c
+@@ -94,6 +94,7 @@ static ERR_STRING_DATA EVP_str_functs[]
+ {ERR_FUNC(EVP_F_EVP_DECRYPTFINAL_EX), "EVP_DecryptFinal_ex"},
+ {ERR_FUNC(EVP_F_EVP_DECRYPTUPDATE), "EVP_DecryptUpdate"},
+ {ERR_FUNC(EVP_F_EVP_DIGESTINIT_EX), "EVP_DigestInit_ex"},
++ {ERR_FUNC(EVP_F_EVP_ENCRYPTDECRYPTUPDATE), "evp_EncryptDecryptUpdate"},
+ {ERR_FUNC(EVP_F_EVP_ENCRYPTFINAL_EX), "EVP_EncryptFinal_ex"},
+ {ERR_FUNC(EVP_F_EVP_ENCRYPTUPDATE), "EVP_EncryptUpdate"},
+ {ERR_FUNC(EVP_F_EVP_MD_CTX_COPY_EX), "EVP_MD_CTX_copy_ex"},
+Index: openssl-1.0.2u/crypto/evp/evp.h
+===================================================================
+--- openssl-1.0.2u.orig/crypto/evp/evp.h
++++ openssl-1.0.2u/crypto/evp/evp.h
+@@ -1491,6 +1491,7 @@ void ERR_load_EVP_strings(void);
+ # define EVP_F_EVP_DECRYPTFINAL_EX 101
+ # define EVP_F_EVP_DECRYPTUPDATE 181
+ # define EVP_F_EVP_DIGESTINIT_EX 128
++# define EVP_F_EVP_ENCRYPTDECRYPTUPDATE 219
+ # define EVP_F_EVP_ENCRYPTFINAL_EX 127
+ # define EVP_F_EVP_ENCRYPTUPDATE 180
+ # define EVP_F_EVP_MD_CTX_COPY_EX 110