Commit c3b95e68 authored by Dominik Charousset's avatar Dominik Charousset

Fix formatting

parent 9993f0c2
...@@ -230,10 +230,10 @@ SSL_CTX* session::create_ssl_context() { ...@@ -230,10 +230,10 @@ SSL_CTX* session::create_ssl_context() {
SSL_FILETYPE_PEM) SSL_FILETYPE_PEM)
!= 1) != 1)
CAF_RAISE_ERROR("cannot load private key"); CAF_RAISE_ERROR("cannot load private key");
auto cafile auto cafile = (!cfg.openssl_cafile.empty() ? cfg.openssl_cafile.c_str()
= (!cfg.openssl_cafile.empty() ? cfg.openssl_cafile.c_str() : nullptr); : nullptr);
auto capath auto capath = (!cfg.openssl_capath.empty() ? cfg.openssl_capath.c_str()
= (!cfg.openssl_capath.empty() ? cfg.openssl_capath.c_str() : nullptr); : nullptr);
if (cafile || capath) { if (cafile || capath) {
if (SSL_CTX_load_verify_locations(ctx, cafile, capath) != 1) if (SSL_CTX_load_verify_locations(ctx, cafile, capath) != 1)
CAF_RAISE_ERROR("cannot load trusted CA certificates"); CAF_RAISE_ERROR("cannot load trusted CA certificates");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment