Module: kamailio
Branch: 4.4
Commit: 00a01a4d7eb736a0ee481e10e2e8fe876e5edbeb
URL:
https://github.com/kamailio/kamailio/commit/00a01a4d7eb736a0ee481e10e2e8fe8…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-03-30T08:53:06+02:00
http_client Fix typo
...and compile before commit...
(cherry picked from commit 7a23fd2c9ec66332097b639d4bedde52731e2bae)
---
Modified: modules/http_client/curlcon.c
---
Diff:
https://github.com/kamailio/kamailio/commit/00a01a4d7eb736a0ee481e10e2e8fe8…
Patch:
https://github.com/kamailio/kamailio/commit/00a01a4d7eb736a0ee481e10e2e8fe8…
---
diff --git a/modules/http_client/curlcon.c b/modules/http_client/curlcon.c
index aa61860..d85c8aa 100644
--- a/modules/http_client/curlcon.c
+++ b/modules/http_client/curlcon.c
@@ -184,6 +184,7 @@ int curl_parse_param(char *val)
unsigned int verify_peer = default_tls_verify_peer;
unsigned int verify_host = default_tls_verify_host;
unsigned int tlsversion = default_tls_version;
+ unsigned int authmethod = default_authmethod;
str in;
char *p;
@@ -432,6 +433,7 @@ int curl_parse_param(char *val)
cc->username = username.s ? as_asciiz(&username) : NULL;
cc->password = password.s ? as_asciiz(&password) : NULL;
cc->schema = schema;
+ cc->authmethod = authmethod;
cc->failover = failover;
cc->useragent = as_asciiz(&useragent);
cc->url = url;
@@ -453,8 +455,8 @@ int curl_parse_param(char *val)
LM_DBG("cname: [%.*s] url: [%.*s] username [%s] password [%s] failover [%.*s]
timeout [%d] useragent [%s] maxdatasize [%d]\n",
cc->name.len, cc->name.s, cc->url.len, cc->url.s, cc->username ?
cc->username : "", cc->password ? cc->password : "",
cc->failover.len, cc->failover.s, cc->timeout, cc->useragent,
cc->maxdatasize);
- LM_DBG("cname: [%.*s] client_cert [%s] client_key [%s] ciphersuites [%s] tlsversion
[%d] verify_peer [%d] verify_host [%d]\n",
- cc->name.len, cc->name.s, cc->clientcert, cc->clientkey,
cc->ciphersuites, cc->tlsversion, cc->verify_peer, cc->verify_host);
+ LM_DBG("cname: [%.*s] client_cert [%s] client_key [%s] ciphersuites [%s] tlsversion
[%d] verify_peer [%d] verify_host [%d] authmethod [%d]\n",
+ cc->name.len, cc->name.s, cc->clientcert, cc->clientkey,
cc->ciphersuites, cc->tlsversion, cc->verify_peer, cc->verify_host,
cc->authmethod);
if (cc->http_proxy_port > 0) {
LM_DBG("cname: [%.*s] http_proxy [%s] http_proxy_port [%d]\n",
cc->name.len, cc->name.s, cc->http_proxy, cc->http_proxy_port);