From 93cc44b19242819a32b29a381d220e96a3c0fc41 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 27 Jun 2018 13:41:13 +0200 Subject: gnutls_session_get_flags: introduced GNUTLS_SFLAGS_POST_HANDSHAKE_AUTH This allows a server application to detect whether the client would support post handshake authentication or not without initiating via gnutls_reauth(). Signed-off-by: Nikos Mavrogiannopoulos --- lib/state.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/state.c') diff --git a/lib/state.c b/lib/state.c index 7276c2c43f..d01475c84a 100644 --- a/lib/state.c +++ b/lib/state.c @@ -1355,6 +1355,8 @@ unsigned gnutls_session_get_flags(gnutls_session_t session) flags |= GNUTLS_SFLAGS_RFC7919; if (session->internals.hsk_flags & HSK_TICKET_RECEIVED) flags |= GNUTLS_SFLAGS_SESSION_TICKET; + if (session->security_parameters.post_handshake_auth) + flags |= GNUTLS_SFLAGS_POST_HANDSHAKE_AUTH; return flags; } -- cgit v1.2.1