mod_authn_anon.c revision 6f91c7fcf8560db0511863137c784c2b502e2a96
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding/* ====================================================================
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding * The Apache Software License, Version 1.1
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding * Copyright (c) 2000-2003 The Apache Software Foundation. All rights
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding * reserved.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * Redistribution and use in source and binary forms, with or without
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * modification, are permitted provided that the following conditions
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * are met:
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * 1. Redistributions of source code must retain the above copyright
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * notice, this list of conditions and the following disclaimer.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * 2. Redistributions in binary form must reproduce the above copyright
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * notice, this list of conditions and the following disclaimer in
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * the documentation and/or other materials provided with the
d472f67198d6b15dd1270136f180cca9c9263243trawick * distribution.
d472f67198d6b15dd1270136f180cca9c9263243trawick * 3. The end-user documentation included with the redistribution,
d472f67198d6b15dd1270136f180cca9c9263243trawick * if any, must include the following acknowledgment:
fe67b1c1fb2c5cb8905564eaa5650d4986ebac65sf * "This product includes software developed by the
fe67b1c1fb2c5cb8905564eaa5650d4986ebac65sf * Apache Software Foundation (http://www.apache.org/)."
fe67b1c1fb2c5cb8905564eaa5650d4986ebac65sf * Alternately, this acknowledgment may appear in the software itself,
fe67b1c1fb2c5cb8905564eaa5650d4986ebac65sf * if and wherever such third-party acknowledgments normally appear.
b068b71651c802cc4e0b835495ad0e41c65e1174trawick * 4. The names "Apache" and "Apache Software Foundation" must
d472f67198d6b15dd1270136f180cca9c9263243trawick * not be used to endorse or promote products derived from this
d472f67198d6b15dd1270136f180cca9c9263243trawick * software without prior written permission. For written
* Dirk.vanGulik@jrc.it; http://ewse.ceo.org; http://me-www.jrc.it/~dirkx
#include "apr_strings.h"
#define APR_WANT_STRFUNC
#include "apr_want.h"
#include "ap_provider.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "http_request.h"
#include "http_protocol.h"
#include "mod_auth.h"
typedef struct anon_auth_user {
char *user;
int nouserid;
int logemail;
int verifyemail;
int mustemail;
int anyuserid;
return conf;
if (!*arg) {
return NULL;
{NULL}
const char *sent_pw)
return AUTH_USER_NOT_FOUND;
if (!*user) {
p = p->next;
return AUTH_GRANTED;