summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kvilib/net/kvi_ssl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kvilib/net/kvi_ssl.cpp b/src/kvilib/net/kvi_ssl.cpp
index 586f7fb4..3a72b6f2 100644
--- a/src/kvilib/net/kvi_ssl.cpp
+++ b/src/kvilib/net/kvi_ssl.cpp
@@ -472,7 +472,7 @@ KviSSLCertificate * KviSSL::getPeerCertificate()
KviSSLCipherInfo * KviSSL::getCurrentCipherInfo()
{
if(!m_pSSL)return 0;
- SSL_CIPHER * c = SSL_get_current_cipher(m_pSSL);
+ SSL_CIPHER * c = const_cast<SSL_CIPHER *>(SSL_get_current_cipher(m_pSSL));
if(!c)return 0;
return new KviSSLCipherInfo(c);
}