[sr-dev] git:5.1:f7ffaee4: http_async_client: fix initialization of tls_client_* and tls_ca_path module parameters

Victor Seva linuxmaniac at torreviejawireless.org
Tue Dec 26 21:39:47 CET 2017


Module: kamailio
Branch: 5.1
Commit: f7ffaee4726f31fede5ae639354b3bea5af55e0e
URL: https://github.com/kamailio/kamailio/commit/f7ffaee4726f31fede5ae639354b3bea5af55e0e

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2017-12-26T21:39:38+01:00

http_async_client: fix initialization of tls_client_* and tls_ca_path module parameters

fixes #1340

(cherry picked from commit 7c61d3f82bd0779a530f921bd69cd4b1b32e4e05)

---

Modified: src/modules/http_async_client/http_async_client_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/f7ffaee4726f31fede5ae639354b3bea5af55e0e.diff
Patch: https://github.com/kamailio/kamailio/commit/f7ffaee4726f31fede5ae639354b3bea5af55e0e.patch

---

diff --git a/src/modules/http_async_client/http_async_client_mod.c b/src/modules/http_async_client/http_async_client_mod.c
index 1799a05fb6..ad5fcc6d2c 100644
--- a/src/modules/http_async_client/http_async_client_mod.c
+++ b/src/modules/http_async_client/http_async_client_mod.c
@@ -71,9 +71,9 @@ int tls_version = 0; // Use default SSL version in HTTPS requests (see curl/curl
 int tls_verify_host = 1; // By default verify host in HTTPS requests
 int tls_verify_peer = 1; // By default verify peer in HTTPS requests
 int curl_verbose = 0;
-char* tls_client_cert = ""; // client SSL certificate path, defaults to NULL
-char* tls_client_key = ""; // client SSL certificate key path, defaults to NULL
-char* tls_ca_path = ""; // certificate authority dir path, defaults to NULL
+char* tls_client_cert = NULL; // client SSL certificate path, defaults to NULL
+char* tls_client_key = NULL; // client SSL certificate key path, defaults to NULL
+char* tls_ca_path = NULL; // certificate authority dir path, defaults to NULL
 static char *memory_manager = "shm";
 extern int curl_memory_manager;
 unsigned int default_authmethod = CURLAUTH_BASIC | CURLAUTH_DIGEST;




More information about the sr-dev mailing list