HomeClusterLabs Projects

Refactor: libcrmcommon: Use gnutls_transport_set_int()

Description

Refactor: libcrmcommon: Use gnutls_transport_set_int()

And gnutls_transport_get_int(). As of GnuTLS 3.1.9, we no longer have to
use the _ptr() functions. The _int() functions are a simpler
alternative, assuming TCP is the transport layer.

As of this commit, there's no longer any real benefit to keeping
pcmk__tls_get_client_sock(), except to provide a layer of abstraction so
that GnuTLS library functions are called in fewer places.

https://gnutls.org/manual/html_node/Setting-up-the-transport-layer.html

Ref T967

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Jan 8 2025, 5:20 PM
clumensCommitted on Tue, Aug 12, 1:32 PM
Parents
rP7d920049ba63: Merge pull request #3929 from clumens/cibsecret
Branches
Unknown
Tags
Unknown
Tasks
T967: Drop workarounds for GnuTLS <3.4.6