SSL_set1_host is missing from wolfSSL's OpenSSL compatibility layer.
It was introduced with mongoose 7.8 and earlier versions relied on
X509_VERIFY_PARAM_set1_host. Use that function again for wolfSSL.
Link:
https://github.com/cesanta/mongoose/commit/d65ce3b59698fbbd32222e43
Fixes: 569c1d7870 ("mongoose: Update to version 7.8")
Signed-off-by: Bastian Germann <
ba...@debian.org>
---
mongoose/mongoose.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mongoose/mongoose.h b/mongoose/mongoose.h
index bed23ca..8de25d5 100644
--- a/mongoose/mongoose.h
+++ b/mongoose/mongoose.h
@@ -1227,6 +1227,8 @@ struct mg_tls {
#ifdef CONFIG_SSL_IMPL_WOLFSSL
#include <wolfssl/openssl/err.h>
#include <wolfssl/openssl/ssl.h>
+#define SSL_set1_host(param, name_null_term) \
+ X509_VERIFY_PARAM_set1_host(SSL_get0_param(param), name_null_term, 0);
#else
#include <openssl/err.h>
#include <openssl/ssl.h>
--
2.37.2