summaryrefslogtreecommitdiffstats
path: root/src/PolarSSL++/SslContext.cpp
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-05-19 22:25:38 +0200
committerworktycho <work.tycho@gmail.com>2015-05-19 22:25:38 +0200
commit8026133078acdbc9e8d6893c26f1ba7af0b4ad97 (patch)
tree3238b0496a7f18368df3b7f01f0607dc59196433 /src/PolarSSL++/SslContext.cpp
parentMerge branch 'master' of github.com:mc-server/MCServer (diff)
downloadcuberite-8026133078acdbc9e8d6893c26f1ba7af0b4ad97.tar
cuberite-8026133078acdbc9e8d6893c26f1ba7af0b4ad97.tar.gz
cuberite-8026133078acdbc9e8d6893c26f1ba7af0b4ad97.tar.bz2
cuberite-8026133078acdbc9e8d6893c26f1ba7af0b4ad97.tar.lz
cuberite-8026133078acdbc9e8d6893c26f1ba7af0b4ad97.tar.xz
cuberite-8026133078acdbc9e8d6893c26f1ba7af0b4ad97.tar.zst
cuberite-8026133078acdbc9e8d6893c26f1ba7af0b4ad97.zip
Diffstat (limited to '')
-rw-r--r--src/PolarSSL++/SslContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PolarSSL++/SslContext.cpp b/src/PolarSSL++/SslContext.cpp
index 5ac4bc227..4c7fd4a23 100644
--- a/src/PolarSSL++/SslContext.cpp
+++ b/src/PolarSSL++/SslContext.cpp
@@ -152,7 +152,7 @@ void cSslContext::SetCACerts(const cX509CertPtr & a_CACert, const AString & a_Ex
m_CACerts = a_CACert;
// Set the trusted CA root cert store:
- ssl_set_authmode(&m_Ssl, SSL_VERIFY_REQUIRED);
+ ssl_set_authmode(&m_Ssl, SSL_VERIFY_OPTIONAL);
ssl_set_ca_chain(&m_Ssl, m_CACerts->GetInternal(), nullptr, m_ExpectedPeerName.empty() ? nullptr : m_ExpectedPeerName.c_str());
}