[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU gnutls branch, master, updated. gnutls_2_9_7-28-g6b4c3dc
From: |
Nikos Mavrogiannopoulos |
Subject: |
[SCM] GNU gnutls branch, master, updated. gnutls_2_9_7-28-g6b4c3dc |
Date: |
Wed, 28 Oct 2009 08:46:23 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".
http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=6b4c3dc567fb1435c8392ec2160fdffc236f6b37
The branch, master has been updated
via 6b4c3dc567fb1435c8392ec2160fdffc236f6b37 (commit)
from 1b98628dfbecc2b6ad6f4c04181956176506cd1e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6b4c3dc567fb1435c8392ec2160fdffc236f6b37
Author: Nikos Mavrogiannopoulos <address@hidden>
Date: Wed Oct 28 10:44:18 2009 +0200
When resuming a session do not overwrite the initial session data with
resumed
session data. Discovered on discussion at help-gnutls with Sebastien
Decugis.
-----------------------------------------------------------------------
Summary of changes:
NEWS | 3 +++
lib/gnutls_handshake.c | 13 ++++++++-----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/NEWS b/NEWS
index 223066e..644c2e9 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,9 @@ See the end for copying conditions.
* Version 2.9.8 (unreleased)
+** libgnutls: In server side when resuming a session do not overwrite the
+initial session data with the resumed session data.
+
** libgnutls: Added support for AES-128,AES-192 and AES-256 in PKCS #8
encryption. This affects also PKCS #12 encoded files.
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c
index 4183122..7423f27 100644
--- a/lib/gnutls_handshake.c
+++ b/lib/gnutls_handshake.c
@@ -2841,6 +2841,13 @@ _gnutls_handshake_common (gnutls_session_t session)
ret = _gnutls_send_handshake_final (session, FALSE);
IMED_RET ("send handshake final", ret, 0);
+
+ /* only store if we are not resuming */
+ if (session->security_parameters.entity == GNUTLS_SERVER)
+ {
+ /* in order to support session resuming */
+ _gnutls_server_register_current_session (session);
+ }
}
else
{ /* if we are a client not resuming - or we are
a server resuming */
@@ -2867,14 +2874,10 @@ _gnutls_handshake_common (gnutls_session_t session)
ret = _gnutls_recv_handshake_final (session, FALSE);
IMED_RET ("recv handshake final 2", ret, 1);
- }
- if (session->security_parameters.entity == GNUTLS_SERVER)
- {
- /* in order to support session resuming */
- _gnutls_server_register_current_session (session);
}
+
/* clear handshake buffer */
_gnutls_handshake_hash_buffers_clear (session);
return ret;
hooks/post-receive
--
GNU gnutls
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU gnutls branch, master, updated. gnutls_2_9_7-28-g6b4c3dc,
Nikos Mavrogiannopoulos <=