[Privoxy-commits] [privoxy] 03/04: wolfSSL: Use X509_V_OK if it's available
User Git
git at git.privoxy.org
Mon Apr 1 13:17:44 CEST 2024
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 838bc3c0ebadef1b068ea223e0a2df28cd5a66b7
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sun Mar 31 17:16:46 2024 +0200
wolfSSL: Use X509_V_OK if it's available
Older wolfSSL releases don't have WOLFSSL_X509_V_OK yet.
Reported by Roland [0].
[0]: <https://lists.privoxy.org/pipermail/privoxy-devel/2024-March/000759.html>
---
wolfssl.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/wolfssl.c b/wolfssl.c
index 0357efa1..a13fbb1c 100644
--- a/wolfssl.c
+++ b/wolfssl.c
@@ -1201,7 +1201,11 @@ extern int create_server_ssl_connection(struct client_state *csp)
{
long verify_result = wolfSSL_get_error(ssl, connect_ret);
+#ifdef X509_V_OK
+ if (verify_result == X509_V_OK)
+#else
if (verify_result == WOLFSSL_X509_V_OK)
+#endif
{
ret = 0;
csp->server_cert_verification_result = SSL_CERT_VALID;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list