]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Mirror TLS certificate fix from master for ippserver.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 5 Sep 2019 16:35:53 +0000 (12:35 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 5 Sep 2019 16:35:53 +0000 (12:35 -0400)
CHANGES.md
test/ippserver.c

index 718cf993cb8119d22188f32d6f94fd526b117630..e6d4c2a5d86296a026cbd0c13472e2c3685a9d4c 100644 (file)
@@ -1,4 +1,4 @@
-CHANGES - 2.2.13 - 2019-08-27
+CHANGES - 2.2.13 - 2019-09-05
 =============================
 
 
@@ -6,6 +6,7 @@ Changes in CUPS v2.2.13
 -----------------------
 
 - Fixed spelling of "fold-accordion".
+- Fixed the default common name for TLS certificates used by `ippserver`.
 
 
 Changes in CUPS v2.2.12
index 237727eba52960d9f0a88d86b7457fd243bcb443..7d83158a2291bf05ecae357b89a08d4f502687cf 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Sample IPP Everywhere server for CUPS.
  *
- * Copyright 2010-2018 by Apple Inc.
+ * Copyright 2010-2019 by Apple Inc.
  *
  * These coded instructions, statements, and computer programs are the
  * property of Apple Inc. and are protected by Federal copyright
@@ -696,10 +696,6 @@ main(int  argc,                            /* I - Number of command-line args */
       fprintf(stderr, "Using spool directory \"%s\".\n", directory);
   }
 
-#ifdef HAVE_SSL
-  cupsSetServerCredentials(keypath, servername, 1);
-#endif /* HAVE_SSL */
-
  /*
   * Initialize Bonjour...
   */
@@ -715,6 +711,10 @@ main(int  argc,                            /* I - Number of command-line args */
                                subtype, directory, command, attrfile)) == NULL)
     return (1);
 
+#ifdef HAVE_SSL
+  cupsSetServerCredentials(keypath, printer->hostname, 1);
+#endif /* HAVE_SSL */
+
  /*
   * Run the print service...
   */