From b81760ee5d8ace26146de751fb632beaf82b0f15 Mon Sep 17 00:00:00 2001 From: Jens Arnfast Date: Tue, 16 Jan 2024 23:49:19 +0100 Subject: [PATCH] Enable 'quiet shutdown' on the SSL context to avoid SIGPIPEs when calling SSL_shutdown on closed connections --- sslscan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sslscan.c b/sslscan.c index e8268e1..858f6c5 100644 --- a/sslscan.c +++ b/sslscan.c @@ -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; }