From: Michael R Sweet Date: Thu, 5 Sep 2019 16:35:53 +0000 (-0400) Subject: Mirror TLS certificate fix from master for ippserver. X-Git-Tag: v2.2.13~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81d39a9fd3717613a9b1a5aef1600c5a51a6149c;p=thirdparty%2Fcups.git Mirror TLS certificate fix from master for ippserver. --- diff --git a/CHANGES.md b/CHANGES.md index 718cf993cb..e6d4c2a5d8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/test/ippserver.c b/test/ippserver.c index 237727eba5..7d83158a22 100644 --- a/test/ippserver.c +++ b/test/ippserver.c @@ -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... */