projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23dcf9b
)
wolfSSL: Use LIBWOLFSSL_VERSION_HEX to decide whether or not to use WOLFSSL_X509_V_OK
author
Fabian Keil
<fk@fabiankeil.de>
Mon, 1 Apr 2024 15:19:06 +0000
(17:19 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Mon, 1 Apr 2024 15:22:14 +0000
(17:22 +0200)
As Roland pointed out, in older wolfSSL releases X509_V_OK
is an enum so the previous commit
838bc3c0e
did not work
as expected there.
wolfssl.c
patch
|
blob
|
history
diff --git
a/wolfssl.c
b/wolfssl.c
index
10ecd6b
..
7f6c964
100644
(file)
--- a/
wolfssl.c
+++ b/
wolfssl.c
@@
-1201,10
+1201,10
@@
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 LIBWOLFSSL_VERSION_HEX > 0x05005004
if (verify_result == WOLFSSL_X509_V_OK)
+#else
+ if (verify_result == X509_V_OK)
#endif
{
ret = 0;