typedef int (*DB_REMOVE_FUNC)(void*, gnutls_datum key);
typedef gnutls_datum (*DB_RETR_FUNC)(void*, gnutls_datum key);
-void gnutls_set_lowat( GNUTLS_STATE state, int num);
-void gnutls_set_cache_expiration( GNUTLS_STATE state, int seconds);
+void gnutls_db_set_cache_expiration( GNUTLS_STATE state, int seconds);
int gnutls_db_set_name( GNUTLS_STATE state, char* filename);
int gnutls_db_clean( GNUTLS_STATE state);
void gnutls_transport_set_ptr(GNUTLS_STATE state, GNUTLS_SOCKET_PTR ptr);
GNUTLS_SOCKET_PTR gnutls_transport_get_ptr(GNUTLS_STATE state);
+void gnutls_transport_set_lowat( GNUTLS_STATE state, int num);
+
typedef void (*LOG_FUNC)( const char*);
void gnutls_transport_set_push_function( GNUTLS_STATE, GNUTLS_PUSH_FUNC push_func);
}
/**
- * gnutls_set_cache_expiration - Sets the expiration time for resumed sessions.
+ * gnutls_db_set_cache_expiration - Sets the expiration time for resumed sessions.
* @state: is a &GNUTLS_STATE structure.
* @seconds: is the number of seconds.
*
* Sets the expiration time for resumed sessions. The default is 3600 (one hour)
* at the time writing this.
**/
-void gnutls_set_cache_expiration( GNUTLS_STATE state, int seconds) {
+void gnutls_db_set_cache_expiration( GNUTLS_STATE state, int seconds) {
state->gnutls_internals.expire_time = seconds;
}
}
/**
- * gnutls_set_lowat - Used to set the lowat value in order for select to check for pending data.
+ * gnutls_transport_set_lowat - Used to set the lowat value in order for select to check for pending data.
* @state: is a &GNUTLS_STATE structure.
* @num: is the low water value.
*
* Otherwise it must be called and set lowat to zero.
*
**/
-void gnutls_set_lowat(GNUTLS_STATE state, int num) {
+void gnutls_transport_set_lowat(GNUTLS_STATE state, int num) {
state->gnutls_internals.lowat = num;
}