s4:lib/tls: add tstream_tls_channel_bindings()
authorStefan Metzmacher <metze@samba.org>
Thu, 28 Sep 2023 10:34:35 +0000 (12:34 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Apr 2024 23:50:33 +0000 (23:50 +0000)
commitcbd7ce44121246167e0c8a6d905180d82df1a2ef
tree73bf60679d5f0a46033768947838fca079a6b4d3
parent2f2af3aa8a0366e6502751415a08413bf28ba0cb
s4:lib/tls: add tstream_tls_channel_bindings()

This is based on GNUTLS_CB_TLS_SERVER_END_POINT
and is the value that is required for channel bindings
in LDAP of active directory domain controllers.

For gnutls versions before 3.7.2 we basically
copied the code from the GNUTLS_CB_TLS_SERVER_END_POINT
implementation as it only uses public gnutls functions
and it was easy to re-implement.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15621

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/lib/tls/tls.h
source4/lib/tls/tls_tstream.c