Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (42 sloc) 2.006 kb
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 /* Cherokee
4 *
5 * Authors:
6 * Alvaro Lopez Ortega <alvaro@alobbs.com>
7 *
920e20b @alobbs Happy new year!
alobbs authored
8 * Copyright (C) 2001-2011 Alvaro Lopez Ortega
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of version 2 of the GNU General Public
12 * License as published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
2c39092 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2660 5dc97367-97f1...
alobbs authored
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301, USA.
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
23 */
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
24
25 #ifndef CHEROKEE_VALIDATOR_HTPASSWD_H
26 #define CHEROKEE_VALIDATOR_HTPASSWD_H
27
116620d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2337 5dc97367-97f1...
alobbs authored
28 #include "validator_file.h"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
29 #include "connection.h"
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
30 #include "plugin_loader.h"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
31
32 typedef struct {
116620d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2337 5dc97367-97f1...
alobbs authored
33 cherokee_validator_file_props_t base;
3007777 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@330 5dc97367-97f1-...
alobbs authored
34 } cherokee_validator_htpasswd_props_t;
35
36 typedef struct {
116620d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2337 5dc97367-97f1...
alobbs authored
37 cherokee_validator_file_t validator;
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
38 } cherokee_validator_htpasswd_t;
39
4ec2fcc @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@360 5dc97367-97f1-...
alobbs authored
40 #define HTPASSWD(x) ((cherokee_validator_htpasswd_t *)(x))
3007777 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@330 5dc97367-97f1-...
alobbs authored
41 #define PROP_HTPASSWD(p) ((cherokee_validator_htpasswd_props_t *)(p))
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97f1-...
alobbs authored
42 #define VAL_HTPASSWD_PROP(x) (PROP_HTPASSWD (MODULE(x)->props))
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
43
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
44 void PLUGIN_INIT_NAME(htpasswd) (cherokee_plugin_loader_t *loader);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
45
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97f1-...
alobbs authored
46 ret_t cherokee_validator_htpasswd_new (cherokee_validator_htpasswd_t **htpasswd, cherokee_module_props_t *props);
47 ret_t cherokee_validator_htpasswd_free (cherokee_validator_htpasswd_t *htpasswd);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
48
49 ret_t cherokee_validator_htpasswd_check (cherokee_validator_htpasswd_t *htpasswd, cherokee_connection_t *conn);
50 ret_t cherokee_validator_htpasswd_add_headers (cherokee_validator_htpasswd_t *htpasswd, cherokee_connection_t *conn, cherokee_buffer_t *buf);
51
52 #endif /* CHEROKEE_VALIDATOR_HTPASSWD_H */
Something went wrong with that request. Please try again.