diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-19 13:03:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-19 13:03:11 +0100 |
commit | ac8bf6185abbc1f1fd9a4a9b6a2b9258cb7ac596 (patch) | |
tree | 96e3d0df5aacf1eb19e6c5b8b5d78f09ad36cd7a /src/lua/lua_http.c | |
parent | a2496b33224e3404fe93475340216d0843b92030 (diff) | |
download | rspamd-ac8bf6185abbc1f1fd9a4a9b6a2b9258cb7ac596.tar.gz rspamd-ac8bf6185abbc1f1fd9a4a9b6a2b9258cb7ac596.zip |
[Feature] Disable all SSL checks if ssl_no_verify flag is set
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r-- | src/lua/lua_http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index da4cad890..87244dd55 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -248,7 +248,8 @@ lua_http_make_connection (struct lua_http_cbdata *cbd) RSPAMD_HTTP_CLIENT_SIMPLE, RSPAMD_HTTP_CLIENT, NULL, - cbd->cfg->libs_ctx->ssl_ctx); + (cbd->flags & RSPAMD_LUA_HTTP_FLAG_NOVERIFY) ? + cbd->cfg->libs_ctx->ssl_ctx_noverify : cbd->cfg->libs_ctx->ssl_ctx); } else { cbd->conn = rspamd_http_connection_new (NULL, |