]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OpenSSL: Include rsa.h for all OpenSSL versions
authorAndre Heider <a.heider@gmail.com>
Wed, 22 Jun 2022 12:13:55 +0000 (14:13 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 31 Aug 2022 14:19:03 +0000 (17:19 +0300)
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 <a.heider@gmail.com>
src/crypto/crypto_openssl.c

index 59458762f4cc86506789b6d91db64bf6c43e9c18..f058e067dfb438d1fc4502b4805804672898d7f5 100644 (file)
@@ -16,6 +16,7 @@
 #include <openssl/dh.h>
 #include <openssl/hmac.h>
 #include <openssl/rand.h>
+#include <openssl/rsa.h>
 #include <openssl/pem.h>
 #ifdef CONFIG_ECC
 #include <openssl/ec.h>
@@ -25,7 +26,6 @@
 #include <openssl/provider.h>
 #include <openssl/core_names.h>
 #include <openssl/param_build.h>
-#include <openssl/rsa.h>
 #include <openssl/encoder.h>
 #include <openssl/decoder.h>
 #else /* OpenSSL version >= 3.0 */