← Commit list

f042c25fb8

Joshua Rogers
Joshua Rogers
2026-09-04
SUCCESS Duration: 432s

Subject

openssl/gtls: reject CRLfile with native CA store, matching rustls

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/gtls.c+7 -0
@@ -541,6 +541,13 @@ static CURLcode gtls_populate_creds(struct Curl_cfilter *cf,
if(creds_are_empty)
infof(data, " no trust anchors configured");
+#ifdef USE_APPLE_SECTRUST
+ if(config->CRLfile && config->native_ca_store) {
+ failf(data, "gnutls: CRL file not supported with native CA store; "
+ "the platform verifier has no CRL attachment API");
+ return CURLE_NOT_BUILT_IN;
+ }
+#endif
if(config->CRLfile) {
/* set the CRL list file */
rc = gnutls_certificate_set_x509_crl_file(creds, config->CRLfile,
lib/vtls/openssl.c+7 -0
@@ -3105,6 +3105,13 @@ static CURLcode ossl_populate_x509_store(struct Curl_cfilter *cf,
return result;
/* Does not make sense to load a CRL file without peer verification */
+#ifdef USE_APPLE_SECTRUST
+ if(ssl_crlfile && conn_config->native_ca_store) {
+ failf(data, "openssl: CRL file not supported with native CA store; "
+ "the platform verifier has no CRL attachment API");
+ return CURLE_NOT_BUILT_IN;
+ }
+#endif
if(ssl_crlfile) {
/* tell OpenSSL where to find CRL file that is used to check certificate
* revocation */