diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-04 12:52:32 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-04 12:52:32 +0000 |
commit | 4b04282504153b2d33ebd039c6422b7f2666f182 (patch) | |
tree | 9a8ad39c966b4d03a8b995e0e6081fb0e796c966 /lib/gnutls_db.c | |
parent | f6c3f96897a61ff9553d73da4643149fba7019fa (diff) | |
download | gnutls-4b04282504153b2d33ebd039c6422b7f2666f182.tar.gz |
some type fixes. Based on build logs sent by Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>.
Diffstat (limited to 'lib/gnutls_db.c')
-rw-r--r-- | lib/gnutls_db.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/gnutls_db.c b/lib/gnutls_db.c index 0076c1f513..4cb0b20394 100644 --- a/lib/gnutls_db.c +++ b/lib/gnutls_db.c @@ -147,10 +147,13 @@ time_t timestamp; */ int _gnutls_server_register_current_session( gnutls_session session) { -gnutls_datum key = { session->security_parameters.session_id, session->security_parameters.session_id_size }; +gnutls_datum key; gnutls_datum content; int ret = 0; + key.data = session->security_parameters.session_id; + key.size = session->security_parameters.session_id_size; + if (session->internals.resumable==RESUME_FALSE) { gnutls_assert(); return GNUTLS_E_INVALID_SESSION; @@ -204,9 +207,12 @@ static int _gnutls_db_func_is_ok( gnutls_session session) { int _gnutls_server_restore_session( gnutls_session session, uint8* session_id, int session_id_size) { gnutls_datum data; -gnutls_datum key = { session_id, session_id_size }; +gnutls_datum key; int ret; + key.data = session_id; + key.size = session_id_size; + if (_gnutls_db_func_is_ok(session)!=0) { gnutls_assert(); return GNUTLS_E_INVALID_SESSION; @@ -233,7 +239,10 @@ int ret; int _gnutls_db_remove_session( gnutls_session session, uint8* session_id, int session_id_size) { -gnutls_datum key = { session_id, session_id_size }; +gnutls_datum key; + + key.data = session_id; + key.size = session_id_size; return _gnutls_remove_session( session, key); } |