Skip to content

Commit

Permalink
Enable 'quiet shutdown' on the SSL context to avoid SIGPIPEs when cal…
Browse files Browse the repository at this point in the history
…ling SSL_shutdown on closed connections
  • Loading branch information
jarnfast committed Jan 16, 2024
1 parent f9bd534 commit b81760e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sslscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ SSL_CTX *new_CTX(const SSL_METHOD *method) {
SSL_CTX *ret = SSL_CTX_new(method);
SSL_CTX_set_security_level(ret, 0);
SSL_CTX_set_security_callback(ret, security_callback_allow_all);
SSL_CTX_set_quiet_shutdown(ret, 1);
return ret;
}

Expand Down

0 comments on commit b81760e

Please sign in to comment.