]>
git.ipfire.org Git - thirdparty/cups.git/log
Zdenek Dohnal [Wed, 4 Dec 2024 18:20:21 +0000 (19:20 +0100)]
tls-gnutls.c: Use system crypto policy if available
Some Linux systems provide a way how to control cryptography on system
or service level via cryptographic policies. OpenSSL implementation
reflects system changes to some degree, however GnuTLS implementation
does not take system policy into account.
GnuTLS supports fallback mechanism, so we can fallback to NORMAL if
@SYSTEM is not defined on the system.
Fortunately, the current GnuTLS implementation allows overrides via
priority strings (so no "this cipher/hash is disabled" if we enabled
them in our application by priority string), so allowing to honor system
policy can save us work if someone wants to disable a specific cipher,
so we don't have to implement it in libcups.
zdohnal [Mon, 2 Dec 2024 16:44:35 +0000 (17:44 +0100)]
Merge pull request #1103 from bcvieira/Pt_Br_Translation.fix
Update jobs.tmpl pt_BR template
Zdenek Dohnal [Mon, 2 Dec 2024 13:22:11 +0000 (14:22 +0100)]
scheduler: Add missing line (related #1102)
zdohnal [Mon, 2 Dec 2024 12:53:48 +0000 (13:53 +0100)]
scheduler: Clean up failed IPP Everywhere permanent queues
If creating of permanent queue with IPP Everywhere model fails in separate thread, the print queue is created as raw.
It would be great if we remove such queue if creation fails, and marking them as temporary would make them to be removed automatically.
bcvieira [Thu, 28 Nov 2024 17:31:48 +0000 (14:31 -0300)]
Update jobs.tmpl pt_BR template
Corrected from á to the correct á pt_BR translation for jobs.tmpl. To verify check printer.tmpl which is right. usuário (user) and páginas (pages).
Zdenek Dohnal [Thu, 28 Nov 2024 14:37:18 +0000 (15:37 +0100)]
scheduler: Clean up failed IPP Everywhere permanent queues
If creating of permanent queue with IPP Everywhere model fails in
separate thread, the print queue is created as raw.
It would be great if we remove such queue if creation fails, and marking
them as temporary would make them to be removed automatically.
Michael R Sweet [Mon, 25 Nov 2024 21:19:46 +0000 (16:19 -0500)]
Add cupsJWTLoadCredentials API.
Update JWT/JWS support code to handle X.509 certificates in addition to the
raw public/private key stuff - needed for some OAuth applications.
Michael R Sweet [Thu, 21 Nov 2024 19:26:38 +0000 (14:26 -0500)]
Fix compiler error.
Michael R Sweet [Thu, 21 Nov 2024 18:39:26 +0000 (13:39 -0500)]
Add macOS-specific compiler options.
Michael R Sweet [Thu, 21 Nov 2024 18:32:17 +0000 (13:32 -0500)]
Drop reference to po2strings.
Update localized strings.
Michael R Sweet [Wed, 20 Nov 2024 18:57:49 +0000 (13:57 -0500)]
Add --bearer-token and --client-name options to ipptool.
Michael R Sweet [Mon, 18 Nov 2024 16:13:31 +0000 (11:13 -0500)]
Update default includedir to ${prefix}/include/libcups2
Fix default domain socket on macOS.
Michael R Sweet [Fri, 15 Nov 2024 17:33:34 +0000 (12:33 -0500)]
Harden debug printf PID support (Issue #1066)
Michael R Sweet [Fri, 15 Nov 2024 16:54:01 +0000 (11:54 -0500)]
Fix make-and-model whitespace trimming (Issue #1096)
zdohnal [Wed, 6 Nov 2024 11:48:24 +0000 (12:48 +0100)]
Merge pull request #1094 from yetamrra/staple-bind
Support bare staple and bind finishings values
Michael R Sweet [Tue, 5 Nov 2024 01:17:10 +0000 (20:17 -0500)]
Fix cupsd.conf man page defaults (Issue #1086)
Michael R Sweet [Mon, 4 Nov 2024 18:15:34 +0000 (13:15 -0500)]
Append .well-known paths to the oauth URI's resource path.
Benjamin Gordon [Fri, 1 Nov 2024 19:51:42 +0000 (13:51 -0600)]
Support bare staple and bind finishings values
In the generated PPD, IPP finishings "bind" is supposed to map to
"StapleLocation: BindAuto". Similarly, "staple" is supposed to map to
"StapleLocation: SingleAuto". The code already handles this, except
the lookup is blocked by a check that only accepts "staple-*" and
"bind-*" prefixed versions. Fix this by adding the bare versions to the
existing checks.
Fixes issue #1073.
Michael R Sweet [Wed, 30 Oct 2024 13:50:23 +0000 (09:50 -0400)]
More GNU TLS updates.
Michael R Sweet [Wed, 30 Oct 2024 13:49:44 +0000 (09:49 -0400)]
GNU TLS updates.
Michael R Sweet [Tue, 22 Oct 2024 23:29:58 +0000 (19:29 -0400)]
Disable testpage unit test for now until we can figure out why it fails on the CI systems.
Michael R Sweet [Tue, 22 Oct 2024 20:30:12 +0000 (16:30 -0400)]
Add fcntl.h on Windows.
Michael R Sweet [Tue, 22 Oct 2024 20:25:50 +0000 (16:25 -0400)]
Add cupsGetClock API.
Michael R Sweet [Tue, 22 Oct 2024 20:24:44 +0000 (16:24 -0400)]
Add cupsGetClock API.
Michael R Sweet [Mon, 21 Oct 2024 16:35:31 +0000 (12:35 -0400)]
Fix bug introduced in cupsRasterReadHeader* - was always returning 0.
Add a raster error for I/O errors.
Migrate testraster to the test-internal.h framework.
Michael R Sweet [Mon, 21 Oct 2024 15:39:04 +0000 (11:39 -0400)]
Add missing OAuth sources to VC project.
Michael R Sweet [Mon, 21 Oct 2024 14:11:07 +0000 (10:11 -0400)]
Move more of the page header checks to the cups_raster_update function and add error messages for all detected issues.
Zdenek Dohnal [Mon, 21 Oct 2024 11:30:15 +0000 (13:30 +0200)]
tls-gnutls.c: Fix tls_credentials -> credentials
Michael R Sweet [Sat, 19 Oct 2024 21:05:48 +0000 (17:05 -0400)]
Use client credentials, if set.
Michael R Sweet [Sat, 19 Oct 2024 20:45:53 +0000 (16:45 -0400)]
Fix bug in new cupsParseOptions2 implementation.
Fix bug in run-stp-tests.sh script.
Michael R Sweet [Sat, 19 Oct 2024 19:31:18 +0000 (15:31 -0400)]
More libraries needed for static builds
Michael R Sweet [Sat, 19 Oct 2024 19:26:35 +0000 (15:26 -0400)]
Add support for libcups v3 client credentials API.
Michael R Sweet [Sat, 19 Oct 2024 19:09:54 +0000 (15:09 -0400)]
configure and pkg-config changes:
- Revert default prefix to autoconf default (/usr/local)
- Fix pkg-config libraries when just building static libraries
Michael R Sweet [Sat, 19 Oct 2024 16:36:42 +0000 (12:36 -0400)]
Add cupsParseOptions2.
Michael R Sweet [Fri, 18 Oct 2024 21:14:22 +0000 (17:14 -0400)]
Dump remainder of old macOS localization support.
Michael R Sweet [Fri, 18 Oct 2024 16:19:28 +0000 (12:19 -0400)]
Update DNS-SD registrations to work over localhost.
Michael R Sweet [Fri, 18 Oct 2024 00:52:40 +0000 (20:52 -0400)]
Fix crash in unit tests.
Fix mapping of HTTP_STATUS_NOT_MODIFIED to IPP_STATUS_OK_EVENTS_COMPLETE.
Only test pinning for self-signed certs.
Fix sanity check for cupsSaveCredentials (copy/paste error)
Michael R Sweet [Fri, 18 Oct 2024 00:07:18 +0000 (20:07 -0400)]
Mirror X.509 updates from libcups v3:
- cupsCreateCredentialsRequest now stores the new private key separately
- cupsSaveCredentials now uses the CSR private key when saving just the new
certificate
- cupsSaveCredentials now does some sanity checks on the input values.
- cupsSaveCredentials now supports credential removal as documented.
Michael R Sweet [Tue, 15 Oct 2024 15:27:48 +0000 (11:27 -0400)]
Mirror fixes from libcups:
- Allow empty resolution values in ipptool files.
- Fix memory leak in httpConnectAgain.
- Remove dead code in ipp_read_io.
Michael R Sweet [Sat, 12 Oct 2024 16:08:17 +0000 (12:08 -0400)]
Changelog.
Michael R Sweet [Sat, 12 Oct 2024 16:08:05 +0000 (12:08 -0400)]
Updated to re-validate the server's X.509 certificate (Issue #1061)
Michael R Sweet [Sat, 12 Oct 2024 15:45:13 +0000 (11:45 -0400)]
Make sure we call inflateEnd when there is an error reading or comparing the stream CRC (Issue #1070)
Michael R Sweet [Wed, 9 Oct 2024 15:18:00 +0000 (11:18 -0400)]
Fix type mixup (should be bool)
zdohnal [Wed, 9 Oct 2024 06:24:39 +0000 (08:24 +0200)]
Merge pull request #1076 from zdohnal/use-etc-as-root
dest.c: Don't look for user config in cupsGetNamedDest as root
Zdenek Dohnal [Tue, 8 Oct 2024 10:35:43 +0000 (12:35 +0200)]
dest.c: Don't look for user config in cupsGetNamedDest as root
We were still looking into ~/.cups/lpoptions as root in the function,
which IMHO is not expected.
Michael R Sweet [Sun, 6 Oct 2024 02:00:40 +0000 (22:00 -0400)]
Limit ippReadIO recursion.
Michael R Sweet [Thu, 3 Oct 2024 21:51:21 +0000 (17:51 -0400)]
Fix the default User-Agent string sent in requests.
Michael R Sweet [Mon, 23 Sep 2024 13:17:42 +0000 (09:17 -0400)]
Escape localized strings in PPDs.
zdohnal [Mon, 23 Sep 2024 10:48:12 +0000 (12:48 +0200)]
Merge pull request #1055 from crrodriguez/patch-1
cups.service.in: Order after time-set.target
Michael R Sweet [Sat, 21 Sep 2024 14:36:45 +0000 (10:36 -0400)]
Merge pull request #1056 from RSilicon/Dictionary
Use xpc_dictionary_create_empty to create empty dictionaries
Rose [Fri, 20 Sep 2024 21:25:37 +0000 (17:25 -0400)]
Use xpc_dictionary_create_empty to create empty dictionaries
xpc_dictionary_create has Nonnull annotated for some of its parameters. We should just do xpc_dictionary_create_empty to avoid warnings and be safe.
Michael R Sweet [Fri, 20 Sep 2024 17:03:52 +0000 (13:03 -0400)]
Add a temporary queue before setting the defaults for lpoptions (Issue #833)
Michael R Sweet [Fri, 20 Sep 2024 15:33:48 +0000 (11:33 -0400)]
Check for negative max-fds limit and set to 65535. Fixes a test hang.
Michael R Sweet [Fri, 20 Sep 2024 15:33:38 +0000 (11:33 -0400)]
Add ipptool command-line to test report.
Michael R Sweet [Fri, 20 Sep 2024 15:32:56 +0000 (11:32 -0400)]
Update httpConnectURI to do X.509 pinning, and use it when doing the IPP
Everywhere printer configuration.
Cristian Rodríguez [Thu, 19 Sep 2024 15:42:10 +0000 (12:42 -0300)]
cups.service.in: Order after time-set.target
Multiple functions that are called either implicitly or explicitly require a "roughly correct" CLOCK_REALTIME to behave.
zdohnal [Thu, 19 Sep 2024 10:35:33 +0000 (12:35 +0200)]
Merge pull request #1054 from zdohnal/eve-tolerate-missing-media-dat
scheduler: Tolerate devices breaking IPPEVE specs if possible
Zdenek Dohnal [Wed, 18 Sep 2024 11:24:11 +0000 (13:24 +0200)]
scheduler: Tolerate devices breaking IPPEVE specs if possible
Related to #1033
PPD generator currently is capable to bypass missing attribute
"media-col-database", if attributes "media-size-supported" or
"media-supported" are present.
Although such devices do not pass any IPP Everywhere or AirPrint
certifications, they exist in the wilderness.
Michael R Sweet [Tue, 17 Sep 2024 23:09:44 +0000 (19:09 -0400)]
Fix docker builds/compose (Issue #1021)
Michael R Sweet [Tue, 17 Sep 2024 14:26:35 +0000 (10:26 -0400)]
Save work.
Michael R Sweet [Mon, 16 Sep 2024 18:44:27 +0000 (14:44 -0400)]
Run ldconfig after installing libraries as needed.
zdohnal [Tue, 17 Sep 2024 13:43:54 +0000 (15:43 +0200)]
Merge pull request #1050 from RSilicon/return
Return early if kvPairs is NULL
zdohnal [Tue, 17 Sep 2024 13:43:28 +0000 (15:43 +0200)]
Merge pull request #1049 from RSilicon/ok
Use goto for clearer handling of errors
Zdenek Dohnal [Tue, 17 Sep 2024 08:49:51 +0000 (10:49 +0200)]
Use cupsConcatString() instead of strlcat()
Michael R Sweet [Mon, 16 Sep 2024 16:38:55 +0000 (12:38 -0400)]
Update the cancel man page (Issue #984)
Rose [Sat, 14 Sep 2024 19:41:02 +0000 (15:41 -0400)]
Return early if kvPairs is NULL
Rose [Sat, 14 Sep 2024 18:47:43 +0000 (14:47 -0400)]
Use goto for clearer handling of errors
Handle memory by jumping to the end where the profile is released
Michael R Sweet [Fri, 13 Sep 2024 01:23:40 +0000 (21:23 -0400)]
Merge pull request #1047 from RSilicon/f
Avoid second call to ippFindAttribute
Rose [Thu, 12 Sep 2024 18:18:03 +0000 (14:18 -0400)]
Avoid second call to ippFindAttribute
We already have the attr value.
Michael R Sweet [Thu, 12 Sep 2024 17:23:50 +0000 (13:23 -0400)]
Merge ipptool fixes and improvements, update man pages.
Michael R Sweet [Tue, 10 Sep 2024 15:42:43 +0000 (11:42 -0400)]
Apply some minor changes suggested by Coverity.
Michael R Sweet [Tue, 10 Sep 2024 00:00:41 +0000 (20:00 -0400)]
Fix some clang-detected issues (mostly with debug printfs and missing void
casts), and fix the Xcode project file.
Michael R Sweet [Mon, 9 Sep 2024 21:07:08 +0000 (17:07 -0400)]
Import OAuth APIs from libcups v3.
Add HTTP Accept header to HTTP API.
Add CUPS OAuth status to IPP API.
Michael R Sweet [Mon, 9 Sep 2024 20:49:18 +0000 (16:49 -0400)]
Merge HTTP and JSON changes from libcups v3, including httpConnectURI API.
Michael R Sweet [Mon, 9 Sep 2024 20:36:49 +0000 (16:36 -0400)]
Merge JWT fixes from libcups v3.
Michael R Sweet [Mon, 9 Sep 2024 20:06:25 +0000 (16:06 -0400)]
Fix localization of finishing templates and general presets.
Michael R Sweet [Mon, 9 Sep 2024 19:52:52 +0000 (15:52 -0400)]
PPDize preset and template names.
Michael R Sweet [Mon, 9 Sep 2024 17:59:31 +0000 (13:59 -0400)]
Refactor make-and-model code.
Michael R Sweet [Mon, 9 Sep 2024 13:59:06 +0000 (09:59 -0400)]
Make sure that temporary/IPP Everywhere queues don't try to work with printers
that return invalid capabilities.
Michael R Sweet [Sat, 7 Sep 2024 23:41:58 +0000 (19:41 -0400)]
Validate URIs and attribute names before putting them in the generated PPD.
Michael R Sweet [Wed, 4 Sep 2024 16:41:43 +0000 (12:41 -0400)]
Add crypt32 library on Windows.
Michael R Sweet [Wed, 4 Sep 2024 16:17:56 +0000 (12:17 -0400)]
Fix Windows directory support.
Michael R Sweet [Wed, 4 Sep 2024 16:09:20 +0000 (12:09 -0400)]
Define mode_t for Windows.
zdohnal [Wed, 4 Sep 2024 07:27:01 +0000 (09:27 +0200)]
Merge pull request #1040 from zdohnal/gnutls-use-correct-pointer
tls-gnutls.c: Pass gnutls pointer to `gnutls_credentials_set()`
Michael R Sweet [Wed, 4 Sep 2024 01:01:34 +0000 (21:01 -0400)]
Add support for specifying permissions in cupsFileOpen.
zdohnal [Mon, 2 Sep 2024 08:13:21 +0000 (10:13 +0200)]
Merge pull request #1039 from zdohnal/air-dnssd-txt-fix
Set authentication as required if the value is not "none" (fixes #1037)
zdohnal [Fri, 30 Aug 2024 05:51:44 +0000 (07:51 +0200)]
Merge pull request #1035 from tomodachi94/systemd-slice
scheduler: add a systemd slice
Zdenek Dohnal [Fri, 30 Aug 2024 05:34:04 +0000 (07:34 +0200)]
tls-gnutls.c: Pass gnutls pointer to `gnutls_credentials_set()`
`credentials` changed type in 2.5, now gnutls pointer, which is needed
for the mentioned function, is a member of new structure which is
`credentials` now, so pass `credential->creds` to the function,
otherwise it crashes.
Found out during running the test suite with gnutls enabled.
Zdenek Dohnal [Fri, 30 Aug 2024 05:24:07 +0000 (07:24 +0200)]
cups/dest.c: Set auth as required if not none
Fixes #1037
Tomodachi94 [Sat, 24 Aug 2024 19:23:51 +0000 (12:23 -0700)]
scheduler: add a systemd slice
From the systemd documentation[1]:
> A slice unit is a concept for hierarchically managing resources of a group of processes.
Benefits of collecting our two systemd services into a slice include
* ease of configuring resource limits on the entire CUPS system,
* ``systemctl status`` showing the CUPS units in an indented subtree,
making it more organized,
* and the possibility of viewing all interlaced logs from all of the CUPS
daemons using ``journalctl -u system-cups.slice``.
[1]:
https://www.freedesktop.org/software/systemd/man/latest/systemd.slice.html
or ``man systemd.slice(5)``
Michael R Sweet [Thu, 15 Aug 2024 01:15:51 +0000 (21:15 -0400)]
Fix IPP everywhere printer setup (Issue #1033)
Zdenek Dohnal [Wed, 14 Aug 2024 08:25:42 +0000 (10:25 +0200)]
Regenerate html help pages
Michael R Sweet [Wed, 14 Aug 2024 03:22:22 +0000 (23:22 -0400)]
Add debug printfs for httpGetHostname.
Michael R Sweet [Wed, 14 Aug 2024 03:21:15 +0000 (23:21 -0400)]
Fix "all" support for JobPrivateAccess and SubscriptionPrivateAccess (Issue #990)
Michael R Sweet [Wed, 14 Aug 2024 02:39:43 +0000 (22:39 -0400)]
Fix cupsGetDestMediaByName and friends (Issue #993)
Michael R Sweet [Wed, 14 Aug 2024 00:46:47 +0000 (20:46 -0400)]
Merge pull request #1031 from RSilicon/f
common_name and credentials are swapped in tls-openssl
Michael R Sweet [Wed, 14 Aug 2024 00:31:48 +0000 (20:31 -0400)]
Make sure we duplicate strings returned by cgiGetTextField, just as we do for cgiGetVariable (Issue #999)
Michael R Sweet [Wed, 14 Aug 2024 00:26:09 +0000 (20:26 -0400)]
Fix device URI when adding or modifying a printer (Issue #998)
Michael R Sweet [Wed, 14 Aug 2024 00:17:40 +0000 (20:17 -0400)]
Drop 'device-class' from CUPS-Get-Devices request since it isn't supported (Issue #1006)
Michael R Sweet [Wed, 14 Aug 2024 00:11:43 +0000 (20:11 -0400)]
Fix printer-state-reasons/message in notifications (Issue #1013)