added Context::preferServerCiphers()

This commit is contained in:
Guenter Obiltschnig
2016-01-19 16:01:17 +01:00
parent 82c6c5f149
commit dee1efd56a
4 changed files with 30 additions and 0 deletions

View File

@@ -349,6 +349,14 @@ void Context::disableProtocols(int protocols)
}
void Context::preferServerCiphers()
{
#if defined(SSL_OP_CIPHER_SERVER_PREFERENCE)
SSL_CTX_set_options(_pSSLContext, SSL_OP_CIPHER_SERVER_PREFERENCE);
#endif
}
void Context::createSSLContext()
{
if (SSLManager::isFIPSEnabled())