]> git.ipfire.org Git - thirdparty/cups.git/commit
tls-gnutls.c: Use system crypto policy if available
authorzdohnal <zdohnal@redhat.com>
Fri, 6 Dec 2024 06:51:45 +0000 (07:51 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Dec 2024 06:51:45 +0000 (07:51 +0100)
commitec1b91e755541f23e338ffb06c091b07bf3c5664
tree3fe818a5bd793c1cedbc04dc14ccd9db532f3b0f
parent73bd9ce3440e3d83bf079b6f8cc707fa1d24f527
parentd3474cc120ec21f6b498401b7278d967cfb0cf59
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.