File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,6 @@ int tls_connect(TLSManager *m, SocketAddress *address) {
221
221
return log_error_errno (SYNTHETIC_ERRNO (EIO ),
222
222
"Failed to SSL_set_fd: %s" ,
223
223
ERR_error_string (ERR_get_error (), NULL ));
224
-
225
224
/* Cerification verification */
226
225
if (m -> auth_mode != OPEN_SSL_CERTIFICATE_AUTH_MODE_NONE && m -> auth_mode != OPEN_SSL_CERTIFICATE_AUTH_MODE_INVALID ) {
227
226
log_debug ("TLS: enable certificate verification" );
@@ -234,7 +233,9 @@ int tls_connect(TLSManager *m, SocketAddress *address) {
234
233
log_debug ("TLS: disable certificate verification" );
235
234
SSL_CTX_set_verify (ctx , SSL_VERIFY_NONE , NULL );
236
235
}
236
+
237
237
SSL_CTX_set_default_verify_paths (ctx );
238
+ SSL_set_mode (ssl , SSL_MODE_AUTO_RETRY );
238
239
239
240
r = SSL_connect (ssl );
240
241
if (r <= 0 )
You can’t perform that action at this time.
0 commit comments