aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--socket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/socket.c b/socket.c
index dbd8ce14..66783516 100644
--- a/socket.c
+++ b/socket.c
@@ -754,6 +754,10 @@ static int SSL_verify_callback( int ok_return, X509_STORE_CTX *ctx, int strict )
break;
}
}
+ /*
+ * If not in strict checking mode (--sslcertck), override this
+ * and pretend that verification had succeeded.
+ */
if (!strict)
ok_return = 1;
return (ok_return);