]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/tls-gnutls.c
Sync up GNU TLS and Darwin TLS certificate validation code.
[thirdparty/cups.git] / cups / tls-gnutls.c
index 70515f20e79e99f45537de2b465cc07b35485ed1..cb3865bb5abae4a28d03d801e1ac13cb7fa78545 100644 (file)
@@ -522,6 +522,11 @@ httpCredentialsGetTrust(
     _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No stored credentials, not valid for name."), 1);
     trust = HTTP_TRUST_INVALID;
   }
+  else if (!cg->trust_first)
+  {
+    _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Trust on first use is disabled."), 1);
+    trust = HTTP_TRUST_INVALID;
+  }
 
   if (trust == HTTP_TRUST_OK && !cg->expired_certs)
   {