diff options
author | Steve <sb@npubs.com> | 2005-02-10 18:35:02 +0000 |
---|---|---|
committer | Steve <sb@npubs.com> | 2005-02-10 18:35:02 +0000 |
commit | af4dd91223f8d555fa8a0136108000c9b5c88de9 (patch) | |
tree | 1813f87af9efb35928a20abd3970818d9ed02a45 /daemon | |
parent | 9b07c675be5deba1bc7d419a4262a8dd70a503fc (diff) |
Added Dummy handler
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/Makefile.am | 22 | ||||
-rw-r--r-- | daemon/httpauthd.c | 2 |
2 files changed, 14 insertions, 10 deletions
diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 3c22d10..0e871fa 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -1,31 +1,33 @@ sbin_PROGRAMS = httpauthd -httpauthd_SOURCES = httpauthd.c httpauthd.h usuals.h bd.h bd.c misc.c basic.h basic.c \ - digest.h digest.c defaults.h simple.c \ - ../common/compat.h ../common/compat.c ../common/buffer.h ../common/buffer.c \ - ../common/hash.h ../common/hash.c ../common/md5.h ../common/md5.c \ - ../common/sha1.h ../common/sha1.c ../common/sock_any.c ../common/sock_any.h \ - ../common/stringx.c ../common/stringx.h - LDAP_SOURCES = ldap.c PGSQL_SOURCES = pgsql.c MYSQL_SOURCES = mysql.c +EXTRA_SRC = + if WITH_LDAP -httpauthd_SOURCES += $(LDAP_SOURCES) +EXTRA_SRC += $(LDAP_SOURCES) endif if WITH_PGSQL -httpauthd_SOURCES += $(PGSQL_SOURCES) +EXTRA_SRC += $(PGSQL_SOURCES) endif if WITH_MYSQL -httpauthd_SOURCES += $(MYSQL_SOURCES) +EXTRA_SRC += $(MYSQL_SOURCES) endif +httpauthd_SOURCES = httpauthd.c httpauthd.h usuals.h bd.h bd.c misc.c basic.h basic.c \ + digest.h digest.c defaults.h simple.c dummy.c \ + ../common/compat.h ../common/compat.c ../common/buffer.h ../common/buffer.c \ + ../common/hash.h ../common/hash.c ../common/md5.h ../common/md5.c \ + ../common/sha1.h ../common/sha1.c ../common/sock_any.c ../common/sock_any.h \ + ../common/stringx.c ../common/stringx.h $(EXTRA_SRC) + httpauthd_CFLAGS = -D_THREAD_SAFE -pthread -DLinux \ -I${top_srcdir}/common/ -I${top_srcdir} httpauthd_LDFLAGS = -pthread diff --git a/daemon/httpauthd.c b/daemon/httpauthd.c index f8c6071..6921ece 100644 --- a/daemon/httpauthd.c +++ b/daemon/httpauthd.c @@ -67,6 +67,7 @@ */ extern ha_handler_t simple_handler; +extern ha_handler_t dummy_handler; extern ha_handler_t ldap_handler; extern ha_handler_t pgsql_handler; extern ha_handler_t mysql_handler; @@ -84,6 +85,7 @@ ha_handler_t* g_handlerlist[] = &mysql_handler, #endif &simple_handler, + &dummy_handler }; typedef struct httpauth_loaded |