2
* Copyright (C) 2000, 2002, 2003, 2004, 2005, 2008 Free Software Foundation
2
* Copyright (C) 2000, 2002, 2003, 2004, 2005, 2008, 2010 Free Software
4
5
* Author: Nikos Mavrogiannopoulos
34
35
#include <gnutls_datum.h>
37
* gnutls_db_set_retrieve_function - Set the function that will be used to get data
38
* @session: is a #gnutls_session_t structure.
39
* @retr_func: is the function.
41
* Sets the function that will be used to retrieve data from the
42
* resumed sessions database. This function must return a
43
* gnutls_datum_t containing the data on success, or a gnutls_datum_t
44
* containing null and 0 on failure.
46
* The datum's data must be allocated using the function
49
* The first argument to retr_func() will be null unless
50
* gnutls_db_set_ptr() has been called.
38
* gnutls_db_set_retrieve_function:
39
* @session: is a #gnutls_session_t structure.
40
* @retr_func: is the function.
42
* Sets the function that will be used to retrieve data from the
43
* resumed sessions database. This function must return a
44
* gnutls_datum_t containing the data on success, or a gnutls_datum_t
45
* containing null and 0 on failure.
47
* The datum's data must be allocated using the function
50
* The first argument to @retr_func will be null unless
51
* gnutls_db_set_ptr() has been called.
53
54
gnutls_db_set_retrieve_function (gnutls_session_t session,
54
55
gnutls_db_retr_func retr_func)
60
* gnutls_db_set_remove_function - Set the function that will be used to remove data
61
* @session: is a #gnutls_session_t structure.
62
* @rem_func: is the function.
64
* Sets the function that will be used to remove data from the
65
* resumed sessions database. This function must return 0 on success.
67
* The first argument to rem_func() will be null unless
68
* gnutls_db_set_ptr() has been called.
61
* gnutls_db_set_remove_function:
62
* @session: is a #gnutls_session_t structure.
63
* @rem_func: is the function.
65
* Sets the function that will be used to remove data from the
66
* resumed sessions database. This function must return 0 on success.
68
* The first argument to @rem_func will be null unless
69
* gnutls_db_set_ptr() has been called.
71
72
gnutls_db_set_remove_function (gnutls_session_t session,
72
73
gnutls_db_remove_func rem_func)
78
* gnutls_db_set_store_function - Set the function that will be used to put data
79
* @session: is a #gnutls_session_t structure.
80
* @store_func: is the function
82
* Sets the function that will be used to store data from the resumed
83
* sessions database. This function must remove 0 on success.
85
* The first argument to store_func() will be null unless
86
* gnutls_db_set_ptr() has been called.
79
* gnutls_db_set_store_function:
80
* @session: is a #gnutls_session_t structure.
81
* @store_func: is the function
83
* Sets the function that will be used to store data from the resumed
84
* sessions database. This function must remove 0 on success.
86
* The first argument to store_func() will be null unless
87
* gnutls_db_set_ptr() has been called.
89
90
gnutls_db_set_store_function (gnutls_session_t session,
90
91
gnutls_db_store_func store_func)
96
* gnutls_db_set_ptr - Set a pointer to be sent to db functions
97
* @session: is a #gnutls_session_t structure.
98
* @ptr: is the pointer
100
* Sets the pointer that will be provided to db store, retrieve and
101
* delete functions, as the first argument.
98
* @session: is a #gnutls_session_t structure.
99
* @ptr: is the pointer
101
* Sets the pointer that will be provided to db store, retrieve and
102
* delete functions, as the first argument.
105
105
gnutls_db_set_ptr (gnutls_session_t session, void *ptr)
111
* gnutls_db_get_ptr - Returns the pointer which is sent to db functions
112
* @session: is a #gnutls_session_t structure.
114
* Get db function pointer.
116
* Returns: the pointer that will be sent to db store, retrieve and
117
* delete functions, as the first argument.
112
* @session: is a #gnutls_session_t structure.
114
* Get db function pointer.
116
* Returns: the pointer that will be sent to db store, retrieve and
117
* delete functions, as the first argument.
120
120
gnutls_db_get_ptr (gnutls_session_t session)
365
* gnutls_db_remove_session - remove the current session data from the database
365
* gnutls_db_remove_session:
366
366
* @session: is a #gnutls_session_t structure.
368
368
* This function will remove the current session data from the