Module: kamailio
Branch: master
Commit: 7d5868ab1242eb8166e6af1bb8a21b39001df663
URL: 
https://github.com/kamailio/kamailio/commit/7d5868ab1242eb8166e6af1bb8a21b39001df663

Author: Wolfgang Kampichler <[email protected]>
Committer: Wolfgang Kampichler <[email protected]>
Date: 2021-01-27T19:53:24+01:00

http_client: http_client_request to include default clientcert, clientkey,...

- the lost module uses http_client API functions and in the course of NG112
  client certificates are used for authentication when querying LIS or ECRF,
  the fix allows these to be read out via http_client module parameters.

---

Modified: src/modules/http_client/functions.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/7d5868ab1242eb8166e6af1bb8a21b39001df663.diff
Patch: 
https://github.com/kamailio/kamailio/commit/7d5868ab1242eb8166e6af1bb8a21b39001df663.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