ZyklonB: fix certificate verification
This commit is contained in:
parent
e86dc2fbcd
commit
b9241bdef9
|
@ -322,9 +322,8 @@ irc_initialize_ssl_ctx (struct bot_context *ctx, struct error **e)
|
||||||
bool verify;
|
bool verify;
|
||||||
if (!irc_get_boolean_from_config (ctx, "ssl_verify", &verify, e))
|
if (!irc_get_boolean_from_config (ctx, "ssl_verify", &verify, e))
|
||||||
return false;
|
return false;
|
||||||
|
SSL_CTX_set_verify (ctx->ssl_ctx,
|
||||||
if (!verify)
|
verify ? SSL_VERIFY_PEER : SSL_VERIFY_NONE, NULL);
|
||||||
SSL_CTX_set_verify (ctx->ssl_ctx, SSL_VERIFY_NONE, NULL);
|
|
||||||
|
|
||||||
const char *ca_file = str_map_find (&ctx->config, "ca_file");
|
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_path = str_map_find (&ctx->config, "ca_path");
|
||||||
|
|
Loading…
Reference in New Issue