Skip to content

Commit 6b6140d

Browse files
authored
Merge pull request #299 from jtesta/certificate_retrieval_fix
Fixed certificate parsing against some servers. (#298)
2 parents d84ca17 + 561591d commit 6b6140d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sslscan.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,6 +1869,9 @@ int testCipher(struct sslCheckOptions *options, const SSL_METHOD *sslMethod)
18691869
// This enables TLS SNI
18701870
SSL_set_tlsext_host_name (ssl, options->sniname);
18711871

1872+
// Against some servers, this is required for a successful SSL_connect(), below.
1873+
SSL_set_options(ssl, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION);
1874+
18721875
// Connect SSL over socket
18731876
cipherStatus = SSL_connect(ssl);
18741877
printf_verbose("SSL_connect() returned: %d\n", cipherStatus);
@@ -2033,6 +2036,9 @@ int checkCertificate(struct sslCheckOptions *options, const SSL_METHOD *sslMetho
20332036
SSL_set_tlsext_host_name (ssl, options->sniname);
20342037
#endif
20352038

2039+
// Against some servers, this is required for a successful SSL_connect(), below.
2040+
SSL_set_options(ssl, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION);
2041+
20362042
// Connect SSL over socket
20372043
SSL_connect(ssl);
20382044
// Setup BIO's

0 commit comments

Comments
 (0)