summaryrefslogtreecommitdiff
path: root/lib/auth.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-05-15 10:10:20 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-05-26 04:12:04 +0000
commit9e197e0cc1ffe9186bcdf1aff925316d93f232a2 (patch)
tree5535b6f9d34ede2345e148fc73c7358eb70e752a /lib/auth.c
parent34620f5b9291f5afb56012e04302df6006b7faf5 (diff)
downloadgnutls-9e197e0cc1ffe9186bcdf1aff925316d93f232a2.tar.gz
handshake: store session parameters in TLS1.3 ticket
This allows a TLS1.3 server to obtain certificate or other information from the client on a resumed session. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/auth.c')
-rw-r--r--lib/auth.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/auth.c b/lib/auth.c
index 1ee2d72476..4bdedda38b 100644
--- a/lib/auth.c
+++ b/lib/auth.c
@@ -193,6 +193,9 @@ gnutls_credentials_get(gnutls_session_t session,
* %GNUTLS_KX_RSA, %GNUTLS_KX_DHE_RSA), the same function are to be
* used to access the authentication data.
*
+ * Note that on resumed sessions, this function returns the schema
+ * used in the original session authentication.
+ *
* Returns: The type of credentials for the current authentication
* schema, a #gnutls_credentials_type_t type.
**/
@@ -212,6 +215,9 @@ gnutls_credentials_type_t gnutls_auth_get_type(gnutls_session_t session)
* The returned information is to be used to distinguish the function used
* to access authentication data.
*
+ * Note that on resumed sessions, this function returns the schema
+ * used in the original session authentication.
+ *
* Returns: The type of credentials for the server authentication
* schema, a #gnutls_credentials_type_t type.
**/
@@ -229,6 +235,9 @@ gnutls_auth_server_get_type(gnutls_session_t session)
* The returned information is to be used to distinguish the function used
* to access authentication data.
*
+ * Note that on resumed sessions, this function returns the schema
+ * used in the original session authentication.
+ *
* Returns: The type of credentials for the client authentication
* schema, a #gnutls_credentials_type_t type.
**/