]>
git.ipfire.org Git - thirdparty/cups.git/log
M Felt aka aixtools [Wed, 4 May 2022 14:57:46 +0000 (14:57 +0000)]
When getifaddrs is not provided by OS
ensure # include <cups/getifaddrs-internal.h> occurs.
Michael R Sweet [Wed, 4 May 2022 12:28:00 +0000 (08:28 -0400)]
Look for OpenSSL the old way if pkg-config is not available (Issue #375)
Michael R Sweet [Wed, 4 May 2022 12:10:46 +0000 (08:10 -0400)]
No longer use O_RDWR for append mode (Issue #291)
Michael R Sweet [Tue, 3 May 2022 19:59:20 +0000 (15:59 -0400)]
Fix the prototype for the httpWriteResponse function (Issue #380)
Michael R Sweet [Mon, 2 May 2022 20:11:07 +0000 (16:11 -0400)]
Report when scheduler is not running (Issue #352)
Michael R Sweet [Mon, 2 May 2022 19:35:20 +0000 (15:35 -0400)]
Update man pages for -h option (Issue #357)
Michael R Sweet [Mon, 2 May 2022 18:57:42 +0000 (14:57 -0400)]
Fix lpoptions regression (Issue #370)
Michael R Sweet [Mon, 2 May 2022 16:12:47 +0000 (12:12 -0400)]
Invalidate PPD cache if cupsd.conf is newer (Issue #371)
Michael R Sweet [Mon, 2 May 2022 15:46:28 +0000 (11:46 -0400)]
Set default auth-info-required='username,password' if a backend doesn't set an
authentication method (Issue #373)
Michael R Sweet [Mon, 2 May 2022 12:18:06 +0000 (08:18 -0400)]
Do some web interface cleanup and restore the generic printer icon file.
Fix a few old references to www.cups.org.
Michael R Sweet [Fri, 29 Apr 2022 18:02:52 +0000 (14:02 -0400)]
Update cupsGetResponse to always set the last error when returning NULL.
Michael R Sweet [Wed, 13 Apr 2022 21:42:06 +0000 (17:42 -0400)]
Add a signal handler to ippeveprinter.
Michael R Sweet [Thu, 7 Apr 2022 16:10:29 +0000 (12:10 -0400)]
Update Solaris smf file (Issue #368)
Zdenek Dohnal [Thu, 7 Apr 2022 05:48:38 +0000 (07:48 +0200)]
Update CHANGES.md
zdohnal [Thu, 7 Apr 2022 05:46:21 +0000 (07:46 +0200)]
Merge pull request #365 from zdohnal/gnutls_use_shut_wr
cups/tls-gnutls.c: Use always GNUTLS_SHUT_WR
Zdenek Dohnal [Thu, 7 Apr 2022 05:45:39 +0000 (07:45 +0200)]
Update CHANGES.md
zdohnal [Thu, 7 Apr 2022 05:43:36 +0000 (07:43 +0200)]
Merge pull request #364 from zdohnal/temp_queues_cleanup
scheduler/printers.c: Don't remove processing temp queue
Michael R Sweet [Wed, 6 Apr 2022 22:25:04 +0000 (18:25 -0400)]
Fix OpenSSL API usage bug.
Zdenek Dohnal [Wed, 6 Apr 2022 13:04:45 +0000 (15:04 +0200)]
cups/tls-gnutls.c: Use always GNUTLS_SHUT_WR
The current mode for `gnutls_bye()` in client use cases strictly
follows TLS v1.2 standard, which in this particular part says:
```
Unless some other fatal alert has been transmitted, each party is
required to send a close_notify alert before closing the write
side of the connection. The other party MUST respond with a
close_notify alert of its own and close down the connection immediately,
discarding any pending writes. It is not required for the initiator
of the close to wait for the responding close_notify alert before
closing the read side of the connection.
```
and waits for the other side of TLS connection to confirm the close.
Unfortunately it can undesired for reasons:
- we support switching of TLS versions in CUPS, and this mode strictly
follows TLS v1.2 - so for older version this behavior is not expected
and can cause delays
- even some TLS v1.2 implementations (like Windows Server 2016) don't
comply TLS v1.2 behavior even if it says it does - in that case,
encrypted printing takes 30s till HTTP timeout is reached, because the
other side didn't send confirmation
- AFAIU openssl's SSL_shutdown() doesn't make this TLS v1.2 difference,
so we could end up with two TLS implementations in CUPS which will
behave differently
Since the standard defines that waiting for confirmation is not required
and due the problems above, I would propose using GNUTLS_SHUT_WR mode
regardless of HTTP mode.
Zdenek Dohnal [Wed, 6 Apr 2022 09:18:11 +0000 (11:18 +0200)]
scheduler/printers.c: Don't remove processing temp queue
cupsdDeleteTemporaryPrinters() deletes temporary queues which their last
status was updated 1 minute ago or older. It doesn't take into account
the fact the printer can be processing a big print job and cupsd deletes
the temp queue either way.
The fix in the PR now set cupsd to ignore queues which are in processing
state. If the delay in job processing is caused by an error in printer,
the correct error should kick in IPP backend.
Michael R Sweet [Tue, 5 Apr 2022 15:12:03 +0000 (11:12 -0400)]
Fix OpenSSL DLL paths.
Michael R Sweet [Mon, 4 Apr 2022 02:46:19 +0000 (22:46 -0400)]
Fix context leak found by Coverity in new OpenSSL code.
Michael R Sweet [Thu, 31 Mar 2022 19:19:56 +0000 (15:19 -0400)]
Update configure script for new version.
Michael R Sweet [Thu, 31 Mar 2022 14:19:24 +0000 (10:19 -0400)]
Drop version number from INSTALL.md, don't check for it in makesrcdist.
Michael R Sweet [Thu, 31 Mar 2022 14:17:52 +0000 (10:17 -0400)]
Changelog, bump version to 2.4.2.
Michael R Sweet [Thu, 31 Mar 2022 14:16:30 +0000 (10:16 -0400)]
Merge pull request #362 from OpenPrinting/openssl
Bring back OpenSSL/LibreSSL support
Michael R Sweet [Thu, 31 Mar 2022 13:23:41 +0000 (09:23 -0400)]
Windows build fixes.
Michael R Sweet [Thu, 31 Mar 2022 11:41:56 +0000 (07:41 -0400)]
Force i386 Linux builds to use GNU TLS for build tests while x86_64 Linux builds use OpenSSL.
Michael R Sweet [Thu, 31 Mar 2022 11:31:11 +0000 (07:31 -0400)]
Fix remaining OpenSSL BIO issues.
Michael R Sweet [Thu, 31 Mar 2022 01:09:27 +0000 (21:09 -0400)]
Use more modern BIO_METHOD APIs to work on current OpenSSL.
Michael R Sweet [Wed, 30 Mar 2022 22:13:18 +0000 (18:13 -0400)]
Use BIO methods to write cert files.
Michael R Sweet [Wed, 30 Mar 2022 22:09:02 +0000 (18:09 -0400)]
Implement subject alternate name support for cupsMakeServerCredentials.
Michael R Sweet [Wed, 30 Mar 2022 21:38:52 +0000 (17:38 -0400)]
Implement cupsMakeServerCredentials.
Michael R Sweet [Wed, 30 Mar 2022 21:05:40 +0000 (17:05 -0400)]
Finish up all of the client-side certificate stuff.
Michael R Sweet [Wed, 30 Mar 2022 18:31:22 +0000 (14:31 -0400)]
Fix bug in tlscheck utility - wasn't retrying connections and used "host"
instead of "server" when constructing the printer URI.
Continue OpenSSL implementations of http_create_credentials,
httpCopyCredentials, and httpCredentialString.
Michael R Sweet [Tue, 29 Mar 2022 21:42:04 +0000 (17:42 -0400)]
Save work on certificate support code and tlscheck.
Michael R Sweet [Tue, 29 Mar 2022 20:34:32 +0000 (16:34 -0400)]
Implement http_create_credential, now working for HTTPS/IPPS clients.
Michael R Sweet [Tue, 29 Mar 2022 18:35:51 +0000 (14:35 -0400)]
Save core OpenSSL implementation.
Michael R Sweet [Wed, 23 Mar 2022 14:25:25 +0000 (10:25 -0400)]
Save work.
Michael R Sweet [Tue, 22 Mar 2022 21:49:59 +0000 (17:49 -0400)]
Save initial work on integrating OpenSSL support back into libcups.
Zdenek Dohnal [Tue, 15 Mar 2022 07:13:17 +0000 (08:13 +0100)]
scheduler/cups.socket.in: Add RemoveOnStop directive
Turn on RemoveOnStop directive, which removes the domain socket file
once the socket unit is stopped, which follows UNIX programming
practice.
Zdenek Dohnal [Tue, 8 Mar 2022 12:29:14 +0000 (13:29 +0100)]
Fix translations
Zdenek Dohnal [Tue, 8 Mar 2022 11:56:42 +0000 (12:56 +0100)]
Update CHANGES.md and trailer.tmpl
Michael R Sweet [Mon, 7 Mar 2022 17:31:40 +0000 (12:31 -0500)]
Fix printable stylesheet.
Michael R Sweet [Mon, 7 Mar 2022 17:14:29 +0000 (12:14 -0500)]
Fix some web interface issues:
- Transition web interface/stylesheet to use "cups-header", "cups-body", and
"cups-footer" classes.
- Tweak background colors for documentation sidebar, block quotes, and code.
zdohnal [Mon, 7 Mar 2022 13:25:08 +0000 (14:25 +0100)]
Merge pull request #349 from Rishabh-792/master
Fixed footer message for web pages
Rishabh-792 [Mon, 7 Mar 2022 12:43:06 +0000 (18:13 +0530)]
used escape sequence for copyright symbol
Rishabh-792 [Sat, 5 Mar 2022 12:21:31 +0000 (17:51 +0530)]
Footer message corrected
Zdenek Dohnal [Fri, 4 Mar 2022 07:23:22 +0000 (08:23 +0100)]
scheduler/ipp.c: Polish mDNS resolving
- no need to include http-private.h, cupsd.h has cups-private.h, which
includes http-private.h
- call _httpResolve() only for mDNS hostnames and then pass the pointer
to original printer->device_uri instead of copying
- add logging messages
Michael R Sweet [Fri, 4 Mar 2022 00:59:02 +0000 (19:59 -0500)]
Fix Windows build error.
Michael R Sweet [Fri, 4 Mar 2022 00:56:45 +0000 (19:56 -0500)]
Set last error string to Windows error message.
Zdenek Dohnal [Wed, 2 Mar 2022 12:42:59 +0000 (13:42 +0100)]
scheduler/ipp.c: Resolve possible mDNS uri (Fixes #340, #343)
Users sometimes pass URIs from dnssd and driverless backends as a
device URI for IPP Everywhere queues. These URIs have mDNS hostnames in
it, so they need to be resolved before used in connection.
Michael R Sweet [Tue, 1 Mar 2022 21:18:19 +0000 (16:18 -0500)]
Don't use the machine store for certs on Windows.
Michael R Sweet [Sat, 26 Feb 2022 22:07:30 +0000 (17:07 -0500)]
Fix syntax for excluding the sources under 'locale'.
Michael R Sweet [Thu, 24 Feb 2022 01:39:53 +0000 (20:39 -0500)]
Fix LGTM warning about a dead compare.
Michael R Sweet [Tue, 22 Feb 2022 15:35:56 +0000 (10:35 -0500)]
Disable bogus "cleartext password" error for "JobPassword" keyword in PPD file
(which contains the pattern for a PIN, *not* any password info...)
Also silence any testing in the "locale" directory.
zdohnal [Wed, 16 Feb 2022 10:40:34 +0000 (11:40 +0100)]
Merge pull request #335 from jschwender/master
updated de translations
jschwender [Wed, 16 Feb 2022 09:26:12 +0000 (10:26 +0100)]
updated de translations
Michael R Sweet [Fri, 11 Feb 2022 12:51:07 +0000 (07:51 -0500)]
Fix testclient bug with too-long raster.
Zdenek Dohnal [Wed, 9 Feb 2022 08:39:13 +0000 (09:39 +0100)]
Update code style and CHANGES.md
zdohnal [Wed, 9 Feb 2022 08:30:00 +0000 (09:30 +0100)]
Merge pull request #329 from rikylescak/fix-uninit-memory-jump
Fix uninit value based jump in ppd.c
Richard Lescak [Fri, 28 Jan 2022 15:29:20 +0000 (16:29 +0100)]
Fix uninit value based jump in ppd.c
Zdenek Dohnal [Thu, 27 Jan 2022 11:11:42 +0000 (12:11 +0100)]
README.md: update version
Zdenek Dohnal [Thu, 27 Jan 2022 11:10:08 +0000 (12:10 +0100)]
Prepare for 2.4.1
Zdenek Dohnal [Thu, 27 Jan 2022 10:55:13 +0000 (11:55 +0100)]
Update copyrights
Zdenek Dohnal [Thu, 27 Jan 2022 07:01:48 +0000 (08:01 +0100)]
Removed purge-jobs legacy code from CGI scripts and templates
Fixes #325
Michael R Sweet [Wed, 12 Jan 2022 13:44:01 +0000 (08:44 -0500)]
Fix print-color-mode-default support so that it can be configured and defaults
to the printer's value (Issue #277)
Michael R Sweet [Wed, 12 Jan 2022 13:37:11 +0000 (08:37 -0500)]
Bump copyright.
Michael R Sweet [Wed, 12 Jan 2022 13:33:58 +0000 (08:33 -0500)]
Also fix cupsfilter (Issue #323)
Michael R Sweet [Wed, 12 Jan 2022 13:32:45 +0000 (08:32 -0500)]
Don't run fuzzing tests for every build.
Michael R Sweet [Wed, 12 Jan 2022 13:29:49 +0000 (08:29 -0500)]
Update copyright.
Michael R Sweet [Wed, 12 Jan 2022 13:12:24 +0000 (08:12 -0500)]
Remove legacy code for RIP_MAX_CACHE environment variable (Issue #323)
Zdenek Dohnal [Wed, 12 Jan 2022 07:19:52 +0000 (08:19 +0100)]
Merge branch 'rikylescak-memleak-fixes'
Richard Lescak [Tue, 11 Jan 2022 09:53:34 +0000 (10:53 +0100)]
cups/http.c,encode.c: Fix memory leaks
Zdenek Dohnal [Tue, 4 Jan 2022 07:43:23 +0000 (08:43 +0100)]
Makefile: Clean the correct generated files
This is a remain of renaming systemd services from org.cups* to cups.
Cleanup target in Makefile still expected the old names.
Zdenek Dohnal [Mon, 3 Jan 2022 14:56:51 +0000 (15:56 +0100)]
Update CHANGES.md
zdohnal [Mon, 3 Jan 2022 14:56:12 +0000 (15:56 +0100)]
Merge pull request #316 from lunaryorn/patch-1
Fix default wanted-by target to printer.target
Zdenek Dohnal [Mon, 3 Jan 2022 13:41:43 +0000 (14:41 +0100)]
Update CHANGES.md
zdohnal [Mon, 3 Jan 2022 13:37:07 +0000 (14:37 +0100)]
Merge pull request #317 from jwatt/master
Fix leak of data.devices in cups_enum_dests
zdohnal [Mon, 3 Jan 2022 13:36:14 +0000 (14:36 +0100)]
Merge pull request #313 from ryancaicse/master
Fix some minor resource leaks
Jonathan Watt [Sat, 1 Jan 2022 17:29:45 +0000 (17:29 +0000)]
Fix leak of data.devices in cups_enum_dests
lunaryorn [Sat, 1 Jan 2022 14:22:36 +0000 (15:22 +0100)]
Fix default wanted-by target to printer.target
There is no printers.target in systemd, only printer.target (see man bootup).
This regression was introduced in #143
ryancaicse [Tue, 21 Dec 2021 04:12:27 +0000 (12:12 +0800)]
Fix some minor resource leaks
Fix some minor resource leaks in test18n.c
Michael R Sweet [Fri, 17 Dec 2021 18:14:50 +0000 (13:14 -0500)]
Bump NuGet version.
Zdenek Dohnal [Fri, 17 Dec 2021 09:21:14 +0000 (10:21 +0100)]
templates: Apply fix from #242 to localized templates
Michael R Sweet [Wed, 15 Dec 2021 23:48:39 +0000 (18:48 -0500)]
Bump NuGet version.
Michael R Sweet [Wed, 15 Dec 2021 23:47:37 +0000 (18:47 -0500)]
Normalize debug logging.
Zdenek Dohnal [Tue, 7 Dec 2021 06:43:09 +0000 (07:43 +0100)]
Update configure after latest configuration fixes
Zdenek Dohnal [Tue, 7 Dec 2021 06:42:24 +0000 (07:42 +0100)]
Update CHANGES.md
zdohnal [Tue, 7 Dec 2021 06:37:00 +0000 (07:37 +0100)]
Merge pull request #304 from evanmiller/patch-4
Fix configure syntax error
zdohnal [Tue, 7 Dec 2021 06:36:11 +0000 (07:36 +0100)]
Merge pull request #303 from evanmiller/patch-3
Confirm that `-Wl,-pie` links on Darwin
Evan Miller [Mon, 6 Dec 2021 15:52:24 +0000 (10:52 -0500)]
Fix configure syntax error
Fixes https://github.com/OpenPrinting/cups/issues/301
Evan Miller [Mon, 6 Dec 2021 14:58:28 +0000 (09:58 -0500)]
Confirm that -Wl,-pie links on Darwin
The flag compiles but fails to link when the deployment target is OS X 10.4.
zdohnal [Fri, 3 Dec 2021 06:20:43 +0000 (07:20 +0100)]
Merge pull request #300 from tgurr/remove-deprecated
Remove obsolete config & server variables
Timo Gurr [Thu, 2 Dec 2021 16:51:09 +0000 (17:51 +0100)]
Remove obsolete server variables
Removed in
20d8b4bd361216edaa1b9d1c8289d20710c91afb .
Timo Gurr [Thu, 2 Dec 2021 16:47:21 +0000 (17:47 +0100)]
Remove obsolete config variables
As
20d8b4bd361216edaa1b9d1c8289d20710c91afb removed the relevant
parts from configure these variables never get substituted.
Zdenek Dohnal [Wed, 1 Dec 2021 11:00:16 +0000 (12:00 +0100)]
de/index.html: Fix missing bracket (fixes issue #299)
The bracket was unintentionally removed by commit
b76a97a .
Zdenek Dohnal [Mon, 29 Nov 2021 14:27:31 +0000 (15:27 +0100)]
Prepare for 2.4.0
zdohnal [Mon, 29 Nov 2021 14:07:25 +0000 (15:07 +0100)]
Merge pull request #298 from zdohnal/conf-timeoutstartsec
Add --with-systemd-timeoutstartsec configure option
Zdenek Dohnal [Mon, 29 Nov 2021 12:18:18 +0000 (13:18 +0100)]
Add --with-systemd-timeoutstartsec configure option
cupsd can be killed by systemd if the daemon takes too much time when
starting - f.e. when loading many queues and/or not enough memory for
loading the daemon quicker.
TimeoutStartSec directive for systemd services defines the time after
which the daemon is killed - if set to 'infinity', a service is not
killed.