]> git.ipfire.org Git - thirdparty/cups.git/commit
tls-gnutls.c: Use system crypto policy if available
authorZdenek Dohnal <zdohnal@redhat.com>
Fri, 6 Dec 2024 06:59:16 +0000 (07:59 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Fri, 6 Dec 2024 06:59:16 +0000 (07:59 +0100)
commit331a202a87db30b5d1d5386ccc99de6843eef03e
tree0749f2b2039b44ba49f0ec985dd3d6cbdf4577b2
parent2e3f15832140454e2d21b327bfa4b05612b50b9a
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.
CHANGES.md
cups/tls-gnutls.c