* 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.
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 */
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;