diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2020-08-27 12:09:58 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-09-04 00:41:56 +0200 |
commit | f5afa593e7cead980350fb82f6853d880c493872 (patch) | |
tree | 5e0b4f765aa070eb317d0b2dd4ed60ed757f3b98 /package/network | |
parent | 403039c562e16f4242e3485d8f076ea726dd8744 (diff) | |
download | upstream-f5afa593e7cead980350fb82f6853d880c493872.tar.gz upstream-f5afa593e7cead980350fb82f6853d880c493872.tar.bz2 upstream-f5afa593e7cead980350fb82f6853d880c493872.zip |
hostapd: Fix compile errors after wolfssl update
This fixes the following compile errors after the wolfssl 4.5.0 update:
LD wpa_cli
../src/crypto/tls_wolfssl.c: In function 'tls_match_alt_subject':
../src/crypto/tls_wolfssl.c:610:11: error: 'GEN_EMAIL' undeclared (first use in this function); did you mean 'ENAVAIL'?
type = GEN_EMAIL;
^~~~~~~~~
ENAVAIL
../src/crypto/tls_wolfssl.c:610:11: note: each undeclared identifier is reported only once for each function it appears in
../src/crypto/tls_wolfssl.c:613:11: error: 'GEN_DNS' undeclared (first use in this function)
type = GEN_DNS;
^~~~~~~
../src/crypto/tls_wolfssl.c:616:11: error: 'GEN_URI' undeclared (first use in this function)
type = GEN_URI;
^~~~~~~
../src/crypto/tls_wolfssl.c: In function 'wolfssl_tls_cert_event':
../src/crypto/tls_wolfssl.c:902:20: error: 'GEN_EMAIL' undeclared (first use in this function); did you mean 'ENAVAIL'?
if (gen->type != GEN_EMAIL &&
^~~~~~~~~
ENAVAIL
../src/crypto/tls_wolfssl.c:903:20: error: 'GEN_DNS' undeclared (first use in this function)
gen->type != GEN_DNS &&
^~~~~~~
../src/crypto/tls_wolfssl.c:904:20: error: 'GEN_URI' undeclared (first use in this function)
gen->type != GEN_URI)
^~~~~~~
Makefile:2029: recipe for target '../src/crypto/tls_wolfssl.o' failed
Fixes: 00722a720c77 ("wolfssl: Update to version 4.5.0")
Reported-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit bc19481826e0da9119945eaae4f25736306f023b)
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/hostapd/patches/110-wolfssl-compile-fix.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/110-wolfssl-compile-fix.patch b/package/network/services/hostapd/patches/110-wolfssl-compile-fix.patch new file mode 100644 index 0000000000..a7b5409602 --- /dev/null +++ b/package/network/services/hostapd/patches/110-wolfssl-compile-fix.patch @@ -0,0 +1,10 @@ +--- a/src/crypto/tls_wolfssl.c ++++ b/src/crypto/tls_wolfssl.c +@@ -19,6 +19,7 @@ + #include <wolfssl/ssl.h> + #include <wolfssl/error-ssl.h> + #include <wolfssl/wolfcrypt/asn.h> ++#include <wolfssl/openssl/x509v3.h> + + #if defined(EAP_FAST) || defined(EAP_FAST_DYNAMIC) || defined(EAP_SERVER_FAST) + #define HAVE_AESGCM |