Added OpenSSL version and location logging

This commit is contained in:
Adam Potolsky 2015-06-10 10:20:59 -07:00
parent f94e1e1660
commit 8366bb6247
1 changed files with 6 additions and 0 deletions

View File

@ -240,6 +240,12 @@ SecureSocket::initContext(bool server)
// load all error messages // load all error messages
SSL_load_error_strings(); SSL_load_error_strings();
LOG((CLOG_INFO "%s",SSLeay_version (SSLEAY_VERSION)));
LOG((CLOG_DEBUG2 "OpenSSL : %s",SSLeay_version (SSLEAY_CFLAGS)));
LOG((CLOG_DEBUG2 "OpenSSL : %s",SSLeay_version (SSLEAY_BUILT_ON)));
LOG((CLOG_DEBUG2 "OpenSSL : %s",SSLeay_version (SSLEAY_PLATFORM)));
LOG((CLOG_DEBUG2 "%s",SSLeay_version (SSLEAY_DIR)));
// SSLv23_method uses TLSv1, with the ability to fall back to SSLv3 // SSLv23_method uses TLSv1, with the ability to fall back to SSLv3
if (server) { if (server) {
method = SSLv23_server_method(); method = SSLv23_server_method();