diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-02-24 10:28:26 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-02-24 10:28:26 +0100 |
commit | ed0f118bbe9d747b0775fb35a210a12f37dbf728 (patch) | |
tree | c1b2e6ee730a7f8607ce805e830b9d6a4a1b46b3 /lib/gnutls_session.c | |
parent | ef7cc00d41e7579aca4239bab734d80a6bf64091 (diff) | |
download | gnutls-ed0f118bbe9d747b0775fb35a210a12f37dbf728.tar.gz |
doc update: document that session_get_data() must be used in non-resumed sessions
Diffstat (limited to 'lib/gnutls_session.c')
-rw-r--r-- | lib/gnutls_session.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/gnutls_session.c b/lib/gnutls_session.c index 5eda798e17..f9f57242f4 100644 --- a/lib/gnutls_session.c +++ b/lib/gnutls_session.c @@ -34,7 +34,8 @@ * Returns all session parameters needed to be stored to support resumption. * The client should call this, and store the returned session data. A session * may be resumed later by calling gnutls_session_set_data(). - * This function must be called after a successful handshake. + * This function must be called after a successful (full) handshake. It should + * not be used in resumed sessions --see gnutls_session_is_resumed(). * * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise * an error code is returned. @@ -83,7 +84,9 @@ gnutls_session_get_data(gnutls_session_t session, * Returns all session parameters needed to be stored to support resumption. * The client should call this, and store the returned session data. A session * may be resumed later by calling gnutls_session_set_data(). - * This function must be called after a successful handshake. + * This function must be called after a successful (full) handshake. It should + * not be used in resumed sessions --see gnutls_session_is_resumed(). + * * The returned @data are allocated and must be released using gnutls_free(). * * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise |