#ifdef HAVE_ASIO_SSL_HPP // use ssl if either private key or cert file is specified bool use_ssl(conf_.has(Conf::SocketSslPrivateKeyFile) == true || conf_.has(Conf::SocketSslCertificateFile) == true); try { // overrides use_ssl is given explicitly use_ssl = conf_.get<bool>(Conf::SocketUseSsl); } catch (gu::NotFound& nf) { }
if (use_ssl == true) { conf_.set(Conf::SocketUseSsl, true); log_info << "initializing ssl context"; set_compression(conf_); set_cipher_list(ssl_context_.impl(), conf_); ssl_context_.set_verify_mode(asio::ssl::context::verify_peer); ssl_context_.set_password_callback(
since SocketUseSssl has default value of 'no' now, it disables it.
#ifdef HAVE_ASIO_SSL_HPP conf_.has( Conf::SocketSsl PrivateKeyFile) == true ||
conf_ .has(Conf: :SocketSslCerti ficateFile) == true); bool>(Conf: :SocketUseSsl) ;
// use ssl if either private key or cert file is specified
bool use_ssl(
try
{
// overrides use_ssl is given explicitly
use_ssl = conf_.get<
}
catch (gu::NotFound& nf) { }
if (use_ssl == true)
conf_. set(Conf: :SocketUseSsl, true);
set_compressio n(conf_ );
set_cipher_ list(ssl_ context_ .impl() , conf_);
ssl_context_ .set_verify_ mode(asio: :ssl::context: :verify_ peer);
ssl_context_ .set_password_ callback(
{
log_info << "initializing ssl context";
since SocketUseSssl has default value of 'no' now, it disables
it.