← Commit list

9e15b07638

Daniel Stenberg
Daniel Stenberg
2025-10-23
SUCCESS Duration: 153s

Subject

openssl: only try engine/provider if a certificate file/name is provided

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vtls/openssl.c+2 -2
@@ -1721,12 +1721,12 @@ static CURLcode client_cert(struct Curl_easy *data,
break;
case SSL_FILETYPE_ENGINE:
- if(!engineload(data, ctx, cert_file))
+ if(!cert_file || !engineload(data, ctx, cert_file))
return CURLE_SSL_CERTPROBLEM;
break;
case SSL_FILETYPE_PROVIDER:
- if(!providerload(data, ctx, cert_file))
+ if(!cert_file || !providerload(data, ctx, cert_file))
return CURLE_SSL_CERTPROBLEM;
break;