Changes with Apache 1.3.27
+ *) Added support for Berkeley-DB/4.x to mod_auth_db.
+ [Martin Kraemer]
+
*) PR 10993: add image/x-icon to default httpd.conf files
[Ian Holsman, Peter Bieringer <pb@bieringer.de>
#if (DB_VERSION_MAJOR == 3)
#define DB3
#endif
+#if (DB_VERSION_MAJOR == 4)
+#define DB4
+#endif
#endif
typedef struct {
q.data = user;
q.size = strlen(q.data);
-#if defined(DB3)
+#if defined(DB3) || defined(DB4)
if ( db_create(&f, NULL, 0) != 0
|| f->open(f, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0) {
#elif defined(DB2)
return NULL;
}
-#if defined(DB2) || defined(DB3)
+#if defined(DB2) || defined(DB3) || defined(DB4)
if (!((f->get) (f, NULL, &q, &d, 0))) {
#else
if (!((f->get) (f, &q, &d, 0))) {
pw[d.size] = '\0'; /* Terminate the string */
}
-#if defined(DB2) || defined(DB3)
+#if defined(DB2) || defined(DB3) || defined(DB4)
(f->close) (f, 0);
#else
(f->close) (f);