diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-13 14:27:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-13 17:31:29 +0100 |
commit | bc6a03a1086e8f7d1c1211633f61ee25b12e16a2 (patch) | |
tree | 10bf4000b3eb618aab1ba0e1a6b76b9e3b66460d /test | |
parent | 1ad42d3b00442d7122b16c72d1226f6c2b0e133f (diff) | |
download | rspamd-bc6a03a1086e8f7d1c1211633f61ee25b12e16a2.tar.gz rspamd-bc6a03a1086e8f7d1c1211633f61ee25b12e16a2.zip |
[Feature] Implement SSL support in http client
Diffstat (limited to 'test')
-rw-r--r-- | test/rspamd_http_test.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/rspamd_http_test.c b/test/rspamd_http_test.c index 882b148fc..4ce859efd 100644 --- a/test/rspamd_http_test.c +++ b/test/rspamd_http_test.c @@ -156,9 +156,13 @@ rspamd_http_client_func (const gchar *path, rspamd_inet_addr_t *addr, gint fd; g_assert ((fd = rspamd_inet_address_connect (addr, SOCK_STREAM, TRUE)) != -1); - conn = rspamd_http_connection_new (rspamd_client_body, rspamd_client_err, - rspamd_client_finish, RSPAMD_HTTP_CLIENT_SIMPLE, - RSPAMD_HTTP_CLIENT, c); + conn = rspamd_http_connection_new (rspamd_client_body, + rspamd_client_err, + rspamd_client_finish, + RSPAMD_HTTP_CLIENT_SIMPLE, + RSPAMD_HTTP_CLIENT, + c, + NULL); rspamd_snprintf (urlbuf, sizeof (urlbuf), "http://127.0.0.1/%s", path); msg = rspamd_http_message_from_url (urlbuf); |