From c80dc694087d868fa160d454c959f6786e2ea389 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Wed, 22 Jun 2022 14:13:55 +0200 Subject: [PATCH] OpenSSL: Include rsa.h for all OpenSSL versions This fixes the build with OpenSSL 1.1.1: ../src/crypto/crypto_openssl.c: In function 'crypto_rsa_oaep_sha256_decrypt': ../src/crypto/crypto_openssl.c:4404:49: error: 'RSA_PKCS1_OAEP_PADDING' undeclared (first use in this function) Signed-off-by: Andre Heider --- src/crypto/crypto_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/crypto_openssl.c b/src/crypto/crypto_openssl.c index 59458762f..f058e067d 100644 --- a/src/crypto/crypto_openssl.c +++ b/src/crypto/crypto_openssl.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #ifdef CONFIG_ECC #include @@ -25,7 +26,6 @@ #include #include #include -#include #include #include #else /* OpenSSL version >= 3.0 */