Fix backslashes in SHIBSP_PREFIX variable by manually creating it during the script...
[shibboleth/sp.git] / isapi_shib / directives.h
1 #define SHIB_REG_KEY "Software\\Internet2\\Shibboleth"
2 #define SHIB_DEFAULT_WEB_KEY "Software\\Internet 2\\Shibboleth\\Webs\\default"
3 #define D_FREE_STRING 0
4 #define D_FREE_INT 1
5 #define D_BOUND_INT 2
6 #define D_BOUND_STRING 3
7 #define MAX_REG_BUFF 4096 // Using a fixed size saves a registy lookup and malloc 
8 #define MAX_DIRECTIVE_STRING 256 // Set to lagest size of default strings below
9
10 #define NUM_DIRECTIVES 2  // Set to number of directives below
11 #define NUM_BOUND_VAL 2   // Set to maximum number of bound values 
12
13 struct directives_t {
14         char name[MAX_DIRECTIVE_STRING];
15         unsigned short type;
16         char value[MAX_DIRECTIVE_STRING];
17         char description[MAX_DIRECTIVE_STRING];
18         char defined_in[MAX_DIRECTIVE_STRING];
19         char bound_val[NUM_BOUND_VAL][MAX_DIRECTIVE_STRING];
20 };
21
22 const directives_t directives[] = {
23         {
24 #       define DIRECTIVE_AUTHTYPE 0                             // defines make code more readable than enum 
25                 "AuthType",                                                             // name
26                 D_FREE_STRING,                                                  // type
27                 "None",                                                                 // default value.  Case insensitive.
28                 "Use Shibboleth to enable Shibboleth. Any other value disables Shibboleth.\nIf no value specified," \
29                 " the MustContain string will be searched for in the target URL.", // description
30                 "(Program Default)",                                    // default value for defined_in
31                 "",                                                                             // possible bound value 
32                 ""                                      // possible bound value
33         },
34         {
35 #       define DIRECTIVE_SSL_ONLY 1             // Example only, not implemented in filter
36                 "ShibSSLOnly",
37                 D_BOUND_STRING,
38                 "Off",
39                 "Controls whether Shibboleth will reject non-SSL requests for resources from clients.",
40                 "(Program Default)",
41                 "On",
42                 "Off"
43
44         }
45 };