ZyklonB: fix tls_ca_{path,file} config. options

This commit is contained in:
Přemysl Eric Janouch 2016-01-01 01:55:52 +01:00
parent 1a73f1f1d7
commit 28fec6d4a6

View File

@ -326,8 +326,8 @@ irc_initialize_ssl_ctx (struct bot_context *ctx, struct error **e)
SSL_CTX_set_verify (ctx->ssl_ctx,
verify ? SSL_VERIFY_PEER : SSL_VERIFY_NONE, NULL);
const char *ca_file = str_map_find (&ctx->config, "ca_file");
const char *ca_path = str_map_find (&ctx->config, "ca_path");
const char *ca_file = str_map_find (&ctx->config, "tls_ca_file");
const char *ca_path = str_map_find (&ctx->config, "tls_ca_path");
struct error *error = NULL;
if (ca_file || ca_path)