]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Mirror IPP Everywhere "everywhere" model fix from OpenPrinting CUPS.
authorMichael R Sweet <msweet@msweet.org>
Fri, 16 Jul 2021 11:27:42 +0000 (07:27 -0400)
committerMichael R Sweet <msweet@msweet.org>
Fri, 16 Jul 2021 11:27:42 +0000 (07:27 -0400)
systemv/lpadmin.c

index 8fb0142422a7040d90864ce67d83511e7dc19f92..dc875cb8c79d7733570f6b7de9bc78a2839b6cb7 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * "lpadmin" command for CUPS.
  *
+ * Copyright © 2021 by OpenPrinting.
  * Copyright © 2007-2021 by Apple Inc.
  * Copyright © 1997-2006 by Easy Software Products.
  *
@@ -239,14 +240,14 @@ main(int  argc,                           /* I - Number of command-line arguments */
          case 'E' : /* Enable the printer/enable encryption */
              if (printer == NULL)
              {
-#ifdef HAVE_SSL
+#ifdef HAVE_TLS
                cupsSetEncryption(HTTP_ENCRYPTION_REQUIRED);
 
                if (http)
                  httpEncryption(http, HTTP_ENCRYPTION_REQUIRED);
 #else
                _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), argv[0]);
-#endif /* HAVE_SSL */
+#endif /* HAVE_TLS */
                break;
              }
 
@@ -1266,7 +1267,7 @@ set_printer_options(
 
   if (file)
     ppdfile = file;
-  else if ((ppdname = cupsGetOption("ppd-name", num_options, options)) != NULL && strcmp(ppdname, "raw") && num_options > 1)
+  else if ((ppdname = cupsGetOption("ppd-name", num_options, options)) != NULL && strcmp(ppdname, "everywhere") && strcmp(ppdname, "raw") && num_options > 1)
   {
     if ((ppdfile = cupsGetServerPPD(http, ppdname)) != NULL)
     {