summaryrefslogtreecommitdiff
path: root/lib/gnutls_cipher.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-07-28 09:47:23 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-07-28 09:51:50 +0200
commitb1fe3ce2d8c6b0a834429c8ff26ad01fcfa4005b (patch)
treebe861e9fd7f6c4ce1de6afc8f0b02439f570ec98 /lib/gnutls_cipher.c
parentc5ce9f782ba597ddbafd84648d4befaf14745146 (diff)
downloadgnutls-b1fe3ce2d8c6b0a834429c8ff26ad01fcfa4005b.tar.gz
The after handshake function is now called before epoch change.
This allows enabling certain features, such as the new record padding, prior to exchanging finished messages.
Diffstat (limited to 'lib/gnutls_cipher.c')
-rw-r--r--lib/gnutls_cipher.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c
index 3caa5aca9d..bc3af51f8b 100644
--- a/lib/gnutls_cipher.c
+++ b/lib/gnutls_cipher.c
@@ -131,7 +131,7 @@ _gnutls_encrypt (gnutls_session_t session,
comp.size = ret;
}
- if (session->security_parameters.new_record_padding != 0)
+ if (params->write.new_record_padding != 0)
ret = compressed_to_ciphertext_new (session, _mbuffer_get_udata_ptr(bufel),
_mbuffer_get_udata_size(bufel),
&comp, target_size, type, params);
@@ -176,7 +176,7 @@ _gnutls_decrypt (gnutls_session_t session,
if (is_read_comp_null (params) == 0)
{
- if (session->security_parameters.new_record_padding != 0)
+ if (params->read.new_record_padding != 0)
ret =
ciphertext_to_compressed_new (session, ciphertext, output,
type, params, sequence);
@@ -198,7 +198,7 @@ _gnutls_decrypt (gnutls_session_t session,
if (tmp.data == NULL)
return gnutls_assert_val(GNUTLS_E_MEMORY_ERROR);
- if (session->security_parameters.new_record_padding != 0)
+ if (params->read.new_record_padding != 0)
ret =
ciphertext_to_compressed_new (session, ciphertext, &tmp,
type, params, sequence);