581ae9f67ad16747de5ebf9f8bf44a72c0df4b31
[openwrt/staging/dedeckeh.git] / package / network / services / hostapd / patches / 992-openssl-include-rsa.patch
1 From f374d52079111a4340acb6df835f45ac6b5f3f60 Mon Sep 17 00:00:00 2001
2 From: Andre Heider <a.heider@gmail.com>
3 Date: Wed, 22 Jun 2022 14:13:55 +0200
4 Subject: OpenSSL: Include rsa.h for all OpenSSL versions
5
6 This fixes the build with OpenSSL 1.1.1:
7 ../src/crypto/crypto_openssl.c: In function 'crypto_rsa_oaep_sha256_decrypt':
8 ../src/crypto/crypto_openssl.c:4404:49: error: 'RSA_PKCS1_OAEP_PADDING' undeclared (first use in this function)
9
10 Signed-off-by: Andre Heider <a.heider@gmail.com>
11 ---
12 src/crypto/crypto_openssl.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 --- a/src/crypto/crypto_openssl.c
16 +++ b/src/crypto/crypto_openssl.c
17 @@ -16,6 +16,7 @@
18 #include <openssl/dh.h>
19 #include <openssl/hmac.h>
20 #include <openssl/rand.h>
21 +#include <openssl/rsa.h>
22 #include <openssl/pem.h>
23 #ifdef CONFIG_ECC
24 #include <openssl/ec.h>
25 @@ -25,7 +26,6 @@
26 #include <openssl/provider.h>
27 #include <openssl/core_names.h>
28 #include <openssl/param_build.h>
29 -#include <openssl/rsa.h>
30 #include <openssl/encoder.h>
31 #include <openssl/decoder.h>
32 #else /* OpenSSL version >= 3.0 */