diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-12-08 22:54:34 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-12-08 22:54:34 +0000 |
commit | 745b110197d9a1af0354a5607bdbe49eda4012a7 (patch) | |
tree | a9cc171d45cea9f579d8ac1c1dae752a9aa35215 /lib/gnutls_db.c | |
parent | 51c5be488bae246ab8bb33b50a377aaf554feca8 (diff) | |
download | gnutls-745b110197d9a1af0354a5607bdbe49eda4012a7.tar.gz |
added gnutls_transport_get_ptr() and gnutls_db_get_ptr() functions.
Diffstat (limited to 'lib/gnutls_db.c')
-rw-r--r-- | lib/gnutls_db.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gnutls_db.c b/lib/gnutls_db.c index 5815a67dbb..becb38287d 100644 --- a/lib/gnutls_db.c +++ b/lib/gnutls_db.c @@ -106,6 +106,18 @@ void gnutls_db_set_ptr( GNUTLS_STATE state, void* ptr) { } /** + * gnutls_db_get_ptr - Returns the pointer which is sent to db functions + * @state: is a &GNUTLS_STATE structure. + * + * Returns the pointer that will be sent to db store, retrieve and delete functions, as + * the first argument. Should only be used if not using the default (gdbm) backend. + * + **/ +void* gnutls_db_get_ptr( GNUTLS_STATE state) { + return state->gnutls_internals.db_ptr; +} + +/** * gnutls_set_cache_expiration - Sets the expiration time for resumed sessions. * @state: is a &GNUTLS_STATE structure. * @seconds: is the number of seconds. |