From 8b2630a82fbecfd57fa38aebb397a755936690e5 Mon Sep 17 00:00:00 2001 From: stbuehler Date: Fri, 18 Sep 2015 15:15:18 +0000 Subject: add README to point to lighttpd-1.4.x as stable git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@3041 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/http_auth.h | 81 --------------------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 src/http_auth.h (limited to 'src/http_auth.h') diff --git a/src/http_auth.h b/src/http_auth.h deleted file mode 100644 index 84674fdb..00000000 --- a/src/http_auth.h +++ /dev/null @@ -1,81 +0,0 @@ -#ifndef _HTTP_AUTH_H_ -#define _HTTP_AUTH_H_ - -#include "server.h" -#include "plugin.h" - -#if defined(HAVE_LDAP_H) && defined(HAVE_LBER_H) && defined(HAVE_LIBLDAP) && defined(HAVE_LIBLBER) -# define USE_LDAP -# include -#endif - -typedef enum { - AUTH_BACKEND_UNSET, - AUTH_BACKEND_PLAIN, - AUTH_BACKEND_LDAP, - AUTH_BACKEND_HTPASSWD, - AUTH_BACKEND_HTDIGEST -} auth_backend_t; - -#ifdef USE_LDAP -typedef struct { - LDAP *ldap; - - buffer *ldap_filter_pre; - buffer *ldap_filter_post; -} ldap_plugin_config; -#endif - -typedef struct { - /* auth */ - array *auth_require; - - buffer *auth_plain_groupfile; - buffer *auth_plain_userfile; - - buffer *auth_htdigest_userfile; - buffer *auth_htpasswd_userfile; - - buffer *auth_backend_conf; - - buffer *auth_ldap_url; - buffer *auth_ldap_basedn; - buffer *auth_ldap_binddn; - buffer *auth_ldap_bindpw; - buffer *auth_ldap_filter; - buffer *auth_ldap_cafile; - buffer *auth_ldap_cert; - buffer *auth_ldap_key; - unsigned short auth_ldap_starttls; - unsigned short auth_ldap_allow_empty_pw; - - unsigned short auth_debug; - - /* generated */ - auth_backend_t auth_backend; - -#ifdef USE_LDAP - ldap_plugin_config *ldap; -#endif -} mod_auth_plugin_config; - -typedef struct { - PLUGIN_DATA; - buffer *tmp_buf; - - buffer *auth_user; - -#ifdef USE_LDAP - buffer *ldap_filter; -#endif - - mod_auth_plugin_config **config_storage; - - mod_auth_plugin_config conf; /* this is only used as long as no handler_ctx is setup */ -} mod_auth_plugin_data; - -int http_auth_basic_check(server *srv, connection *con, mod_auth_plugin_data *p, array *req, buffer *url, const char *realm_str); -int http_auth_digest_check(server *srv, connection *con, mod_auth_plugin_data *p, array *req, buffer *url, const char *realm_str); -int http_auth_digest_generate_nonce(server *srv, mod_auth_plugin_data *p, buffer *fn, char hh[33]); - -#endif -- cgit v1.2.1