Module: kamailio
Branch: master
Commit: 5b596373e022bca905ecb9802c0fdf28d29b2a87
URL: 
https://github.com/kamailio/kamailio/commit/5b596373e022bca905ecb9802c0fdf28d29b2a87

Author: Olle E. Johansson <[email protected]>
Committer: GitHub <[email protected]>
Date: 2021-02-05T20:39:55+01:00

Merge pull request #2612 from kamailio/wkampich/dev

http_client: http_client_request to include default clientcert, clien…

---

Modified: src/modules/http_client/functions.c

---

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

---

diff --git a/src/modules/http_client/functions.c 
b/src/modules/http_client/functions.c
index a04065d6db..7db116ed21 100644
--- a/src/modules/http_client/functions.c
+++ b/src/modules/http_client/functions.c
@@ -673,6 +673,18 @@ int http_client_request(
                        query_params.http_proxy_port = default_http_proxy_port;
                }
        }
+       if(default_tls_clientcert.s != NULL && default_tls_clientcert.len > 0) {
+               query_params.clientcert = default_tls_clientcert.s;
+       }
+       if(default_tls_clientkey.s != NULL && default_tls_clientkey.len > 0) {
+               query_params.clientkey = default_tls_clientkey.s;
+       }
+       if(default_tls_cacert != NULL) {
+               query_params.cacert = default_tls_cacert;
+       }
+       if(default_cipher_suite_list.s != NULL && 
default_cipher_suite_list.len) {
+               query_params.ciphersuites = default_cipher_suite_list.s;
+       }
 
        res = curL_request_url(_m, _met, _url, _dst, &query_params);
 


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to