Skip to content

Commit

Permalink
Fixed certificate parsing against some servers. (rbsec#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtesta committed Nov 10, 2023
1 parent d84ca17 commit fb1c252
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sslscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2033,6 +2033,9 @@ int checkCertificate(struct sslCheckOptions *options, const SSL_METHOD *sslMetho
SSL_set_tlsext_host_name (ssl, options->sniname);
#endif

// Against some servers, this is required for a successful SSL_connect(), below.
SSL_set_options(ssl, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION);

// Connect SSL over socket
SSL_connect(ssl);
// Setup BIO's
Expand Down

0 comments on commit fb1c252

Please sign in to comment.