mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-26 20:53:22 +03:00
added const cast #4168
This commit is contained in:
parent
98716f4e78
commit
31440b1a8a
@ -173,7 +173,7 @@ SecureSocket::initContext(bool server)
|
||||
{
|
||||
SSL_library_init();
|
||||
|
||||
SSL_METHOD* method;
|
||||
const SSL_METHOD* method;
|
||||
|
||||
// load & register all cryptos, etc.
|
||||
OpenSSL_add_all_algorithms();
|
||||
@ -191,7 +191,8 @@ SecureSocket::initContext(bool server)
|
||||
}
|
||||
|
||||
// create new context from method
|
||||
m_ssl->m_context = SSL_CTX_new(method);
|
||||
SSL_METHOD* m = const_cast<SSL_METHOD*>(method);
|
||||
m_ssl->m_context = SSL_CTX_new(m);
|
||||
if (m_ssl->m_context == NULL) {
|
||||
showError();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user