summaryrefslogtreecommitdiff
path: root/lib/gnutls_constate.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-07-15 11:51:51 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-07-15 11:51:51 +0200
commit98b6d3ecc833eaa8e21ee4ecc13e1f4d9a759ca0 (patch)
tree7d3a12cb32a68a82b2ffa552e6e8203662c95aca /lib/gnutls_constate.c
parentb1dab6d6387db3046bdc8a2b088d96015b3ccf3d (diff)
downloadgnutls-98b6d3ecc833eaa8e21ee4ecc13e1f4d9a759ca0.tar.gz
eliminated the need for the additional version variable.
Diffstat (limited to 'lib/gnutls_constate.c')
-rw-r--r--lib/gnutls_constate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_constate.c b/lib/gnutls_constate.c
index 717cacf716..569565eb59 100644
--- a/lib/gnutls_constate.c
+++ b/lib/gnutls_constate.c
@@ -92,7 +92,7 @@ _gnutls_set_keys (gnutls_session_t session, record_parameters_st * params,
memcpy (&rrnd[GNUTLS_RANDOM_SIZE],
session->security_parameters.server_random, GNUTLS_RANDOM_SIZE);
- if (session->security_parameters.version == GNUTLS_SSL3)
+ if (get_num_version(session) == GNUTLS_SSL3)
{ /* SSL 3 */
ret =
_gnutls_ssl3_generate_random
@@ -382,7 +382,7 @@ _gnutls_set_resumed_parameters (gnutls_session_t session)
security_parameters_st *dst = &session->security_parameters;
CPY_COMMON;
- _gnutls_set_current_version(session, src->version);
+ dst->pversion = src->pversion;
}
/* Sets the current connection session to conform with the