summaryrefslogtreecommitdiff
path: root/lib/state.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-05-14 14:33:15 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-05-26 04:12:04 +0000
commit87ce20ec7f43a1f90bea8d931f77422ddd94b951 (patch)
tree4a7610ec52f824cce8f8e80f74c8ffa3211e48c2 /lib/state.c
parent4d2c44d049cd360d8cb925d8e40645d4c6b44cfc (diff)
downloadgnutls-87ce20ec7f43a1f90bea8d931f77422ddd94b951.tar.gz
tests: check various parameters on resumption
That is, check gnutls_session_is_resumed() is functional on server side, whether PRF is respected on resumption, whether gnutls_certificate_get_peers() and gnutls_certificate_get_ours() operate as expected, and whether session resumption fails with tickets after expiration time has passed. In addition improve function documentation by documenting the current semantics for the functions above. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/state.c')
-rw-r--r--lib/state.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/state.c b/lib/state.c
index bbba0ddb25..284214b87f 100644
--- a/lib/state.c
+++ b/lib/state.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2002-2016 Free Software Foundation, Inc.
* Copyright (C) 2014-2016 Nikos Mavrogiannopoulos
- * Copyright (C) 2015-2016 Red Hat, Inc.
+ * Copyright (C) 2015-2018 Red Hat, Inc.
*
* Author: Nikos Mavrogiannopoulos
*
@@ -726,7 +726,8 @@ gnutls_handshake_set_private_extensions(gnutls_session_t session,
* gnutls_session_is_resumed:
* @session: is a #gnutls_session_t type.
*
- * Check whether session is resumed or not.
+ * Checks whether session is resumed or not. This is functional
+ * for both server and client side.
*
* Returns: non zero if this session is resumed, or a zero if this is
* a new session.