aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar ctrlaltca2026-02-14 10:07:02 +0100
committerGravatar GitHub2026-02-14 10:07:02 +0100
commit1ce98bb4fc6beb5934fd7057511d8b79e88563a6 (patch)
treea9610c020b5ab41a61ce5ee5efe6554bcdaac536 /src
parentAdd a spellchecker backend based on windows >=8 integrated spellchecker (#2743) (diff)
downloadKVIrc-1ce98bb4fc6beb5934fd7057511d8b79e88563a6.tar.gz
KVIrc-1ce98bb4fc6beb5934fd7057511d8b79e88563a6.tar.bz2
KVIrc-1ce98bb4fc6beb5934fd7057511d8b79e88563a6.zip
KviSSL: add SSL_OP_IGNORE_UNEXPECTED_EOF option to avoid "unexpected eof while reading" errors on SDCC completion. The remote peer may close down the connection without sending the mandatory close_notify alert on shutdown. Since OpenSSL3 this reports an SSL error, but since we can already detect if the transfer has been truncated, just restore the previous behavior and ignore the error. (#2751)
Diffstat (limited to 'src')
-rw-r--r--src/kvilib/net/KviSSL.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kvilib/net/KviSSL.cpp b/src/kvilib/net/KviSSL.cpp
index 40bdfe925..1adaf7e28 100644
--- a/src/kvilib/net/KviSSL.cpp
+++ b/src/kvilib/net/KviSSL.cpp
@@ -392,6 +392,9 @@ bool KviSSL::initContext(Method m)
#ifdef SSL_OP_SINGLE_ECDH_USE
|SSL_OP_SINGLE_ECDH_USE
#endif
+#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
+ |SSL_OP_IGNORE_UNEXPECTED_EOF
+#endif
);
// we want all ciphers to be available here, except insecure ones, orderer by strength;
SSL_CTX_set_cipher_list(m_pSSLCtx, "ALL:!eNULL:!LOW:!EXP:!SSLv2:!SSLv3:!TLSv1:@STRENGTH");