]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/tls-sspi.c
More tweaks for cipher suite restrictions.
[thirdparty/cups.git] / cups / tls-sspi.c
index f5c44d0fbfa3c574722325aaccadc545f53f4861..25be327d18b2f9ef627b28918df1fab0d1197440 100644 (file)
@@ -54,7 +54,7 @@
  * Local globals...
  */
 
-static int             tls_options = 0;/* Options for TLS connections */
+static int             tls_options = -1;/* Options for TLS connections */
 
 
 /*
@@ -930,7 +930,14 @@ _httpTLSStart(http_t *http)                /* I - HTTP connection */
        *hostptr;                       /* Pointer into hostname */
 
 
-  DEBUG_printf(("7_httpTLSStart(http=%p)", http));
+  DEBUG_printf(("3_httpTLSStart(http=%p)", http));
+
+  if (tls_options < 0)
+  {
+    DEBUG_puts("4_httpTLSStart: Setting defaults.");
+    _cupsSetDefaults();
+    DEBUG_printf(("4_httpTLSStart: tls_options=%x", tls_options));
+  }
 
   if ((http->tls = http_sspi_alloc()) == NULL)
     return (-1);