]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/tls-darwin.c
Don't try to access non-existent keychain.
[thirdparty/cups.git] / cups / tls-darwin.c
index 35fcc0c830826d6637a0c81580f26301282fa617..33a70cd5bf49b954e823f2ae0c24a675d00ec582 100644 (file)
@@ -1121,7 +1121,11 @@ http_tls_start(http_t *http)             /* I - HTTP connection */
 
   DEBUG_printf(("7http_tls_start(http=%p)", http));
 
+#ifdef HAVE_SECKEYCHAINOPEN
   if (http->mode == _HTTP_MODE_SERVER && !tls_keychain)
+#else
+  if (http->mode == _HTTP_MODE_SERVER)
+#endif /* HAVE_SECKEYCHAINOPEN */
   {
     DEBUG_puts("4http_tls_start: cupsSetServerCredentials not called.");
     http->error  = errno = EINVAL;