Hi,
While trying to compile hostapd[1] with WolfSSL 5.7.6 as TLS backend, I
am getting the following error:
3617 | struct DecodedCert cert; | ^~~~
../src/crypto/crypto_wolfssl.c:3630:46: error: 'NO_VERIFY' undeclared
(first use in this function) 3630 | err = wc_ParseCert(&cert, CERT_TYPE,
NO_VERIFY, NULL); | ^~~~~~~~~ ../src/crypto/crypto_wolfssl.c:3630:46:
note: each undeclared identifier is reported only once for each function
it appears in ../src/crypto/crypto_wolfssl.c: In function
'crypto_rsa_key_read': ../src/crypto/crypto_wolfssl.c:3707:42: error:
'RSAk' undeclared (first use in this function) 3707 | if (private_key &&
key_format != RSAk) { | ^~~~
I have managed to resolve the issue with the following patch:
diff --git a/src/crypto/crypto_wolfssl.c b/src/crypto/crypto_wolfssl.c
index e1e915548..9a44c10d0 100644
--- a/src/crypto/crypto_wolfssl.c
+++ b/src/crypto/crypto_wolfssl.c
@@ -18,7 +18,7 @@
#include <wolfssl/openssl/bn.h>
#include <wolfssl/wolfcrypt/aes.h>
#include <wolfssl/wolfcrypt/arc4.h>
-#include <wolfssl/wolfcrypt/asn_public.h>
+#include <wolfssl/wolfcrypt/asn.h>
#include <wolfssl/wolfcrypt/cmac.h>
#include <wolfssl/wolfcrypt/des3.h>
#include <wolfssl/wolfcrypt/dh.h>
[1]:
https://w1.fi/cgit/hostap/commit/?id=c12fc97e3b59742e0c5743fceae6a87a8b13a576
_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap