We can only trust a tls connection if at connection setup we checked
the certificates
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
bool tstream_tls_params_quic_enabled(struct tstream_tls_params *params);
enum tls_verify_peer_state tstream_tls_params_verify_peer(
struct tstream_tls_params *tls_params);
+bool tstream_tls_verify_peer_trusted(enum tls_verify_peer_state verify_peer);
const char *tstream_tls_params_peer_name(
const struct tstream_tls_params *params);
#endif /* HAVE_LIBQUIC */
}
+bool tstream_tls_verify_peer_trusted(enum tls_verify_peer_state verify_peer)
+{
+ return (verify_peer >= TLS_VERIFY_PEER_CA_AND_NAME);
+}
+
const char *tstream_tls_params_peer_name(
const struct tstream_tls_params *params)
{