diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IceSSL/OpenSSLEngine.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cpp/src/IceSSL/OpenSSLEngine.cpp b/cpp/src/IceSSL/OpenSSLEngine.cpp index 3c1f54a9bc1..c53ddbda7ca 100644 --- a/cpp/src/IceSSL/OpenSSLEngine.cpp +++ b/cpp/src/IceSSL/OpenSSLEngine.cpp @@ -774,6 +774,24 @@ OpenSSLEngine::initialize() } } + if(securityTraceLevel() >= 1) + { + ostringstream os; + os << "enabling SSL ciphersuites:"; + + SSL* ssl = SSL_new(_ctx); + STACK_OF(SSL_CIPHER)* ciphers = SSL_get_ciphers(ssl); + if(ciphers) + { + for(int i = 0, length = sk_SSL_CIPHER_num(ciphers); i < length; ++i) + { + os << "\n" << SSL_CIPHER_get_name(sk_SSL_CIPHER_value(ciphers, i)); + } + } + SSL_free(ssl); + getLogger()->trace(securityTraceCategory(), os.str()); + } + // // Determine whether a certificate is required from the peer. // |