projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c44c20
)
wolfSSL: Use X509_V_OK if it's available
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 31 Mar 2024 15:16:46 +0000
(17:16 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Mon, 1 Apr 2024 11:17:47 +0000
(13:17 +0200)
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
patch
|
blob
|
history
diff --git
a/wolfssl.c
b/wolfssl.c
index
0357efa
..
a13fbb1
100644
(file)
--- 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;