}
retval = apr_dbm_open_ex(&f,
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_db_name_create(r, m->cookie_db_dir),
APR_DBM_RWCREATE,
APR_OS_DEFAULT,
ERR(r, "%s:%d could not open dbm (type %s) auth file: %s(%d:%s)",
__FILE__,
__LINE__,
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_db_name_create(r,m->cookie_db_dir),
retval,
apr_strerror(retval, errstr, 255));
retval = apr_dbm_store(f, dbmkey, dbmval);
if (retval != APR_SUCCESS) {
char errstr[256];
- ERR(r, "%s:%d Cannot store Cookie data to DBM file `%s' (%d:%s)",
+ ERR(r, "%s:%d Cannot store Cookie data to DBM file `%s' tye:[%s] (%d:%s) key:[%s] val:[%s]",
__FILE__,
__LINE__,
chxj_cookie_db_name_create(r, m->cookie_db_dir),
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
retval,
- apr_strerror(retval, errstr, 255));
+ apr_strerror(retval, errstr, 255),
+ dbmkey.dptr,
+ dbmval.dptr);
apr_dbm_close(f);
chxj_cookie_db_unlock(r, file);
DBG(r, "REQ[%X] end chxj_save_cookie_dbm() cookie_id:[%s]", TO_ADDR(r), cookie_id);
chxj_cookie_db_lock_name_create(request_rec *r, const char *dir)
{
char *dst;
- DBG(r, "start chxj_cookie_db_lock_name_create()");
+ DBG(r, "REQ[%X] start chxj_cookie_db_lock_name_create()", TO_ADDR(r));
if (!dir) {
- DBG(r, " ");
dst = apr_pstrdup(r->pool, DEFAULT_COOKIE_DB_DIR);
- DBG(r, " ");
}
else {
dst = apr_pstrdup(r->pool, dir);
- DBG(r, " ");
}
- DBG(r, "dst[strlen(dst)-1]=[%c]", dst[strlen(dst)-1]);
if (dst[strlen(dst)-1] != '/') {
dst = apr_pstrcat(r->pool, dst, "/", COOKIE_DB_LOCK_NAME, NULL);
}
else {
dst = apr_pstrcat(r->pool, dst, COOKIE_DB_LOCK_NAME, NULL);
}
- DBG(r, "end chxj_cookie_db_lock_name_create()");
+ DBG(r, "REQ[%X] end chxj_cookie_db_lock_name_create()", TO_ADDR(r));
return dst;
}
}
retval = apr_dbm_open_ex(&f,
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_db_name_create(r, m->cookie_db_dir),
APR_DBM_RWCREATE,
APR_OS_DEFAULT,
r->pool);
if (retval != APR_SUCCESS) {
ERR(r, "could not open dbm (type %s) auth file: %s",
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_db_name_create(r,m->cookie_db_dir));
chxj_cookie_db_unlock(r, file);
DBG(r, "end chxj_update_cookie_dbm() cookie_id:[%s]", cookie_id);
*/
retval = apr_dbm_store(f, dbmkey, dbmval);
if (retval != APR_SUCCESS) {
- ERR(r, "Cannot store Cookie data to DBM file `%s'",
- chxj_cookie_db_name_create(r, m->cookie_db_dir));
+ char errstr[256];
+ ERR(r, "%s:%d Cannot store Cookie data to DBM file `%s' tye:[%s] (%d:%s) key:[%s] val:[%s]",
+ __FILE__,
+ __LINE__,
+ chxj_cookie_db_name_create(r, m->cookie_db_dir),
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
+ retval,
+ apr_strerror(retval, errstr, 255),
+ dbmkey.dptr,
+ dbmval.dptr);
apr_dbm_close(f);
chxj_cookie_db_unlock(r, file);
DBG(r, "end chxj_update_cookie_dbm() cookie_id:[%s]", cookie_id);
}
retval = apr_dbm_open_ex(&f,
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_db_name_create(r, m->cookie_db_dir),
APR_DBM_RWCREATE,
APR_OS_DEFAULT,
"%s:%d could not open dbm (type %s) auth file: %s (%d:%s)",
__FILE__,
__LINE__,
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_db_name_create(r, m->cookie_db_dir),
retval,
apr_strerror(retval, errstr, 255));
"%s:%d could not fetch dbm (type %s) auth file: %s(%d:%s)",
__FILE__,
__LINE__,
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_db_name_create(r, m->cookie_db_dir),
retval,
apr_strerror(retval, errstr, 255));
}
retval = apr_dbm_open_ex(&f,
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_db_name_create(r, m->cookie_db_dir),
APR_DBM_RWCREATE,
APR_OS_DEFAULT,
if (retval != APR_SUCCESS) {
ERR(r,
"could not open dbm (type %s) auth file: %s",
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_db_name_create(r,m->cookie_db_dir));
chxj_cookie_db_unlock(r, file);
DBG(r, "end chxj_delete_cookie_dbm() cookie_id:[%s]", cookie_id);
}
retval = apr_dbm_open_ex(&f,
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_expire_db_name_create(r, m->cookie_db_dir),
APR_DBM_RWCREATE,
APR_OS_DEFAULT,
r->pool);
if (retval != APR_SUCCESS) {
ERR(r, "could not open dbm (type %s) auth file: %s",
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_expire_db_name_create(r,m->cookie_db_dir));
chxj_cookie_expire_db_unlock(r, file);
DBG(r, "end chxj_save_cookie_expire_dbm() cookie_id:[%s]", cookie_id);
return CHXJ_FALSE;
}
retval = apr_dbm_open_ex(&f,
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_expire_db_name_create(r, m->cookie_db_dir),
APR_DBM_RWCREATE,
APR_OS_DEFAULT,
if (retval != APR_SUCCESS) {
ERR(r,
"could not open dbm (type %s) auth file: %s",
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_expire_db_name_create(r,m->cookie_db_dir));
chxj_cookie_expire_db_unlock(r, file);
DBG(r, "end chxj_delete_cookie_expire_dbm() cookie_id:[%s]", cookie_id);
}
retval = apr_dbm_open_ex(&f,
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_expire_db_name_create(r, m->cookie_db_dir),
APR_DBM_RWCREATE,
APR_OS_DEFAULT,
if (retval != APR_SUCCESS) {
ERR(r,
"could not open dbm (type %s) auth file: %s",
- "default",
+ (m->cookie_dbm_type) ? m->cookie_dbm_type : "default",
chxj_cookie_expire_db_name_create(r,m->cookie_db_dir));
chxj_cookie_expire_db_unlock(r, file);
DBG(r, "end chxj_cookie_expire_gc_dbm()");