2 * Copyright (C) 2000 Nikos Mavroyanopoulos
4 * This file is part of GNUTLS.
6 * GNUTLS is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * GNUTLS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
21 void gnutls_set_cache_expiration( GNUTLS_STATE state
, int seconds
);
22 int gnutls_db_set_name( GNUTLS_STATE state
, const char* filename
);
23 int _gnutls_server_register_current_session( GNUTLS_STATE state
);
24 int _gnutls_server_restore_session( GNUTLS_STATE state
, uint8
* session_id
, int session_id_size
);
25 int gnutls_db_clean( GNUTLS_STATE state
);
26 int _gnutls_db_remove_session( GNUTLS_STATE state
, uint8
* session_id
, int session_id_size
);
27 int _gnutls_store_session( GNUTLS_STATE state
, gnutls_datum session_id
, gnutls_datum session_data
);
28 gnutls_datum
_gnutls_retrieve_session( GNUTLS_STATE state
, gnutls_datum session_id
);
29 int _gnutls_remove_session( GNUTLS_STATE state
, gnutls_datum session_id
);