summaryrefslogtreecommitdiff
path: root/lib/gnutls_constate.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2004-04-15 14:04:47 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2004-04-15 14:04:47 +0000
commit826195fcec8b98b6e021315fbb60f36721e2f124 (patch)
treeab5b59e6b28259f540e4b0242b8ea72e364a5736 /lib/gnutls_constate.c
parentf72ace13f7340934bb02a72212ee6521fa7ab55c (diff)
downloadgnutls-826195fcec8b98b6e021315fbb60f36721e2f124.tar.gz
Some updates in order to compile with tcc.
Diffstat (limited to 'lib/gnutls_constate.c')
-rw-r--r--lib/gnutls_constate.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/gnutls_constate.c b/lib/gnutls_constate.c
index b951b1325d..c2859b947f 100644
--- a/lib/gnutls_constate.c
+++ b/lib/gnutls_constate.c
@@ -466,20 +466,20 @@ int _gnutls_read_connection_state_init(gnutls_session session)
if (session->internals.resumed == RESUME_FALSE) {
rc = _gnutls_set_read_cipher(session,
_gnutls_cipher_suite_get_cipher_algo
- (session->security_parameters.
+ (&session->security_parameters.
current_cipher_suite));
if (rc < 0)
return rc;
rc = _gnutls_set_read_mac(session,
_gnutls_cipher_suite_get_mac_algo
- (session->security_parameters.
+ (&session->security_parameters.
current_cipher_suite));
if (rc < 0)
return rc;
rc = _gnutls_set_kx(session,
_gnutls_cipher_suite_get_kx_algo
- (session->security_parameters.
+ (&session->security_parameters.
current_cipher_suite));
if (rc < 0)
return rc;
@@ -503,7 +503,7 @@ int _gnutls_read_connection_state_init(gnutls_session session)
return rc;
_gnutls_handshake_log("HSK[%x]: Cipher Suite: %s\n",
- session, _gnutls_cipher_suite_get_name(session->
+ session, _gnutls_cipher_suite_get_name(&session->
security_parameters.
current_cipher_suite));
@@ -648,20 +648,20 @@ int _gnutls_write_connection_state_init(gnutls_session session)
if (session->internals.resumed == RESUME_FALSE) {
rc = _gnutls_set_write_cipher(session,
_gnutls_cipher_suite_get_cipher_algo
- (session->security_parameters.
+ (&session->security_parameters.
current_cipher_suite));
if (rc < 0)
return rc;
rc = _gnutls_set_write_mac(session,
_gnutls_cipher_suite_get_mac_algo
- (session->security_parameters.
+ (&session->security_parameters.
current_cipher_suite));
if (rc < 0)
return rc;
rc = _gnutls_set_kx(session,
_gnutls_cipher_suite_get_kx_algo
- (session->security_parameters.
+ (&session->security_parameters.
current_cipher_suite));
if (rc < 0)
return rc;
@@ -684,7 +684,7 @@ int _gnutls_write_connection_state_init(gnutls_session session)
return rc;
_gnutls_handshake_log("HSK[%x]: Cipher Suite: %s\n", session,
- _gnutls_cipher_suite_get_name(session->
+ _gnutls_cipher_suite_get_name(&session->
security_parameters.
current_cipher_suite));