[PATCH] channel_curl: fix wrong evaluation for pkcs11 sslcert detection

31 views
Skip to first unread message

Ayoub Zaki

unread,
Jun 11, 2026, 5:18:06 AMJun 11
to swup...@googlegroups.com, Ayoub Zaki
Signed-off-by: Ayoub Zaki <ayoub...@embetrix.com>
---
corelib/channel_curl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/corelib/channel_curl.c b/corelib/channel_curl.c
index d37cf95b..39e730c7 100644
--- a/corelib/channel_curl.c
+++ b/corelib/channel_curl.c
@@ -646,7 +646,7 @@ channel_op_res_t channel_set_options(channel_t *this, channel_data_t *channel_da
* and set curl engine and types accordingly
*/
bool keyUri = channel_data->sslkey ? strncasecmp(channel_data->sslkey, "pkcs11:", 7) == 0 : false;
- bool certUri = channel_data->sslkey ? strncasecmp(channel_data->sslcert, "pkcs11:", 7) == 0 : false;
+ bool certUri = channel_data->sslcert ? strncasecmp(channel_data->sslcert, "pkcs11:", 7) == 0 : false;

if (keyUri || certUri) {
if (curl_easy_setopt(channel_curl->handle, CURLOPT_SSLENGINE, "pkcs11") != CURLE_OK) {
--
2.43.0

ayoub...@googlemail.com

unread,
Jun 11, 2026, 6:08:42 AMJun 11
to swupdate
please ignore this patch I'm sending a V2

ayoub...@googlemail.com

unread,
Jun 11, 2026, 6:09:08 AMJun 11
to swupdate
please ignore this patch, I'm sending a V2

On Thursday, June 11, 2026 at 11:18:06 AM UTC+2 Ayoub Zaki wrote:

Ayoub Zaki

unread,
Jun 11, 2026, 6:12:22 AMJun 11
to swup...@googlegroups.com, Ayoub Zaki

Stefano Babic

unread,
Jun 11, 2026, 8:09:21 AMJun 11
to Ayoub Zaki, swup...@googlegroups.com
Reviewed-by: Stefano Babic <stefan...@swupdate.org>

--
_______________________________________________________________________
Nabla Software Engineering GmbH
Hirschstr. 111A | 86156 Augsburg | Tel: +49 821 45592596
Geschäftsführer : Stefano Babic | HRB 40522 Augsburg
E-Mail: sba...@nabladev.com

Reply all
Reply to author
Forward
0 new messages