From d8130f69762fefba005e70af9cce9bcd0bcf15ab Mon Sep 17 00:00:00 2001 From: ashutoshharry Date: Thu, 29 Jan 2026 11:51:53 -0500 Subject: [PATCH 1/3] Update configure.ac remove enable-rdkcertselector flag --- configure.ac | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/configure.ac b/configure.ac index 2cfaa8a0..2ed2d325 100644 --- a/configure.ac +++ b/configure.ac @@ -192,19 +192,6 @@ AC_ARG_ENABLE([mountutils], AM_CONDITIONAL([IS_LIBRDKCONFIG_ENABLED], [test x$IS_LIBRDKCONFIG_ENABLED = xtrue]) AC_SUBST(LIBRDKCONFIG_FLAG) -AC_ARG_ENABLE([rdkcertselector], - AS_HELP_STRING([--enable-rdkcertselector],[enables rdkcertselector replacement (default is no)]), - [ - case "${enableval}" in - yes) IS_LIBRDKCERTSEL_ENABLED=true - LIBRDKCERTSEL_FLAG=" -DLIBRDKCERTSEL_BUILD ";; - no) IS_LIBRDKCERTSEL_ENABLED=false ;; - *) AC_MSG_ERROR([bad value ${enableval} for --enable-rdkcertselector]) ;; - esac - ], - [echo "rdkcertselector is disabled"]) -AM_CONDITIONAL([IS_LIBRDKCERTSEL_ENABLED], [test x$IS_LIBRDKCERTSEL_ENABLED = xtrue]) -AC_SUBST(LIBRDKCERTSEL_FLAG) AC_CONFIG_FILES([Makefile source/Makefile From f9fb0fd68b8ee6a0e550e58fc17d80c37b98a5c8 Mon Sep 17 00:00:00 2001 From: ashutoshharry Date: Thu, 29 Jan 2026 15:15:35 -0500 Subject: [PATCH 2/3] Update configure.ac --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index 2ed2d325..f2a39bc1 100644 --- a/configure.ac +++ b/configure.ac @@ -192,6 +192,18 @@ AC_ARG_ENABLE([mountutils], AM_CONDITIONAL([IS_LIBRDKCONFIG_ENABLED], [test x$IS_LIBRDKCONFIG_ENABLED = xtrue]) AC_SUBST(LIBRDKCONFIG_FLAG) +AC_ARG_ENABLE([rdkcertselector], + AS_HELP_STRING([--enable-rdkcertselector],[enables rdkcertselector replacement (default is no)]), + [ + case "${enableval}" in + yes) IS_LIBRDKCERTSEL_ENABLED=false ;; + no) IS_LIBRDKCERTSEL_ENABLED=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-rdkcertselector]) ;; + esac + ], + [echo "rdkcertselector is disabled"]) +AM_CONDITIONAL([IS_LIBRDKCERTSEL_ENABLED], [test x$IS_LIBRDKCERTSEL_ENABLED = xtrue]) +AC_SUBST(LIBRDKCERTSEL_FLAG) AC_CONFIG_FILES([Makefile source/Makefile From 04eb574afe7b1be47cd3b9268202098dcbd3d291 Mon Sep 17 00:00:00 2001 From: ashutoshharry Date: Thu, 29 Jan 2026 16:13:53 -0500 Subject: [PATCH 3/3] Update curlinterface.c --- source/protocol/http/curlinterface.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/protocol/http/curlinterface.c b/source/protocol/http/curlinterface.c index b16aca49..f8579dfb 100644 --- a/source/protocol/http/curlinterface.c +++ b/source/protocol/http/curlinterface.c @@ -470,11 +470,6 @@ T2ERROR sendReportOverHTTP(char *httpUrl, char *payload, pid_t* outForkedPid) pCertFile += (sizeof(FILESCHEME) - 1); } #endif - if (pCertPC == NULL) - T2Error("%s : passcode is NULL\n",__func__); - if (pCertURI == NULL) - T2Error("%s : cert URI is NULL\n",__func__); - T2Info("%s: pCertPC size = %d\n",__func__,sizeof(pCertPC)); if((mtls_enable == true) && (setMtlsHeaders(curl, pCertFile, pCertPC, &childCurlResponse) != T2ERROR_SUCCESS)) { curl_easy_cleanup(curl); // CID 189985: Resource leak