From 7d5868ab1242eb8166e6af1bb8a21b39001df663 Mon Sep 17 00:00:00 2001 From: Wolfgang Kampichler Date: Wed, 27 Jan 2021 19:53:24 +0100 Subject: [PATCH] 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. --- src/modules/http_client/functions.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/modules/http_client/functions.c b/src/modules/http_client/functions.c index a04065d6db8..7db116ed21c 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);