summaryrefslogtreecommitdiffstats
path: root/auth_mellon.h
diff options
context:
space:
mode:
authormanu@netbsd.org <manu@netbsd.org@a716ebb1-153a-0410-b759-cfb97c6a1b53>2011-03-22 17:19:24 +0000
committermanu@netbsd.org <manu@netbsd.org@a716ebb1-153a-0410-b759-cfb97c6a1b53>2011-03-22 17:19:24 +0000
commit30133d867b8513dbee8253c369d6d58d750eda54 (patch)
tree211e04450ffdbb9280050ff51435659b971571ad /auth_mellon.h
parentabc099c732785fcaf7df757f1a263a219a690549 (diff)
downloadmod_auth_mellon-30133d867b8513dbee8253c369d6d58d750eda54.tar.gz
mod_auth_mellon-30133d867b8513dbee8253c369d6d58d750eda54.tar.xz
mod_auth_mellon-30133d867b8513dbee8253c369d6d58d750eda54.zip
Regexp backreference substitution in MellonCond
git-svn-id: https://modmellon.googlecode.com/svn/trunk@116 a716ebb1-153a-0410-b759-cfb97c6a1b53
Diffstat (limited to 'auth_mellon.h')
-rw-r--r--auth_mellon.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/auth_mellon.h b/auth_mellon.h
index 8219853..c0b9186 100644
--- a/auth_mellon.h
+++ b/auth_mellon.h
@@ -125,19 +125,21 @@ typedef enum {
} am_decoder_t;
typedef enum {
- AM_COND_FLAG_NULL = 0x00, /* No flags */
- AM_COND_FLAG_OR = 0x01, /* Or with next condition */
- AM_COND_FLAG_NOT = 0x02, /* Negate this condition */
- AM_COND_FLAG_REG = 0x04, /* Condition is regex */
- AM_COND_FLAG_NC = 0x08, /* Case insensitive match */
- AM_COND_FLAG_MAP = 0x10, /* Try to use attribute name from MellonSetEnv */
- AM_COND_FLAG_IGN = 0x20, /* Condition is to be ignored */
- AM_COND_FLAG_REQ = 0x40, /* Condition was configure using MellonRequire */
+ AM_COND_FLAG_NULL = 0x000, /* No flags */
+ AM_COND_FLAG_OR = 0x001, /* Or with next condition */
+ AM_COND_FLAG_NOT = 0x002, /* Negate this condition */
+ AM_COND_FLAG_REG = 0x004, /* Condition is regex */
+ AM_COND_FLAG_NC = 0x008, /* Case insensitive match */
+ AM_COND_FLAG_MAP = 0x010, /* Try to use attribute name from MellonSetEnv */
+ AM_COND_FLAG_REF = 0x020, /* Set regex backreferences */
+ AM_COND_FLAG_SUB = 0x040, /* Substring match */
+
+ /* The other options are internally used */
+ AM_COND_FLAG_IGN = 0x1000, /* Condition is to be ignored */
+ AM_COND_FLAG_REQ = 0x2000, /* Condition was set using MellonRequire */
+ AM_COND_FLAG_FSTR = 0x4000, /* Value contains a format string */
} am_cond_flag_t;
-/* Not counting AM_COND_FLAG_NULL */
-#define AM_COND_FLAG_COUNT 7
-
extern const char *am_cond_options[];
typedef struct {