summaryrefslogtreecommitdiff
path: root/lib/state.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-06-27 13:41:13 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-07-02 08:39:50 +0000
commit93cc44b19242819a32b29a381d220e96a3c0fc41 (patch)
tree7253224be2f64c77a686e784aacdd2443e2de15d /lib/state.c
parenta8dc7ba3c19dca4db30f336c54e2f9191b0beae6 (diff)
downloadgnutls-93cc44b19242819a32b29a381d220e96a3c0fc41.tar.gz
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 <nmav@redhat.com>
Diffstat (limited to 'lib/state.c')
-rw-r--r--lib/state.c2
1 files changed, 2 insertions, 0 deletions
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;
}