Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Toolbox.cpp @ 4706:dbee8bd8ee1f
display OpenSSL version in the logs
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Jun 2021 09:13:03 +0200 |
parents | 9086aeb9d9d2 |
children | a6b7c29f5118 7053502fbf97 |
comparison
equal
deleted
inserted
replaced
4701:68635d365a27 | 4706:dbee8bd8ee1f |
---|---|
1701 /** | 1701 /** |
1702 * OpenSSL is disabled | 1702 * OpenSSL is disabled |
1703 **/ | 1703 **/ |
1704 void Toolbox::InitializeOpenSsl() | 1704 void Toolbox::InitializeOpenSsl() |
1705 { | 1705 { |
1706 LOG(INFO) << "OpenSSL is disabled"; | |
1706 } | 1707 } |
1707 | 1708 |
1708 void Toolbox::FinalizeOpenSsl() | 1709 void Toolbox::FinalizeOpenSsl() |
1709 { | 1710 { |
1710 } | 1711 } |
1715 /** | 1716 /** |
1716 * OpenSSL < 1.1.0 | 1717 * OpenSSL < 1.1.0 |
1717 **/ | 1718 **/ |
1718 void Toolbox::InitializeOpenSsl() | 1719 void Toolbox::InitializeOpenSsl() |
1719 { | 1720 { |
1721 LOG(INFO) << "OpenSSL version: " << OPENSSL_VERSION_TEXT; | |
1722 | |
1720 // https://wiki.openssl.org/index.php/Library_Initialization | 1723 // https://wiki.openssl.org/index.php/Library_Initialization |
1721 SSL_library_init(); | 1724 SSL_library_init(); |
1722 SSL_load_error_strings(); | 1725 SSL_load_error_strings(); |
1723 OpenSSL_add_all_algorithms(); | 1726 OpenSSL_add_all_algorithms(); |
1724 ERR_load_crypto_strings(); | 1727 ERR_load_crypto_strings(); |
1751 * automatically done by the functions of OpenSSL. | 1754 * automatically done by the functions of OpenSSL. |
1752 * https://wiki.openssl.org/index.php/Library_Initialization | 1755 * https://wiki.openssl.org/index.php/Library_Initialization |
1753 **/ | 1756 **/ |
1754 void Toolbox::InitializeOpenSsl() | 1757 void Toolbox::InitializeOpenSsl() |
1755 { | 1758 { |
1759 LOG(INFO) << "OpenSSL version: " << OPENSSL_VERSION_TEXT; | |
1756 } | 1760 } |
1757 | 1761 |
1758 void Toolbox::FinalizeOpenSsl() | 1762 void Toolbox::FinalizeOpenSsl() |
1759 { | 1763 { |
1760 } | 1764 } |