Skip to content

Commit fb1c252

Browse files
committed
Fixed certificate parsing against some servers. (#298)
1 parent d84ca17 commit fb1c252

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sslscan.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,6 +2033,9 @@ int checkCertificate(struct sslCheckOptions *options, const SSL_METHOD *sslMetho
20332033
SSL_set_tlsext_host_name (ssl, options->sniname);
20342034
#endif
20352035

2036+
// Against some servers, this is required for a successful SSL_connect(), below.
2037+
SSL_set_options(ssl, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION);
2038+
20362039
// Connect SSL over socket
20372040
SSL_connect(ssl);
20382041
// Setup BIO's

0 commit comments

Comments
 (0)