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
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
10 #define NUM_DIRECTIVES 2 // Set to number of directives below
11 #define NUM_BOUND_VAL 2 // Set to maximum number of bound values
14 char name[MAX_DIRECTIVE_STRING];
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];
22 const directives_t directives[] = {
24 # define DIRECTIVE_AUTHTYPE 0 // defines make code more readable than enum
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
35 # define DIRECTIVE_SSL_ONLY 1 // Example only, not implemented in filter
39 "Controls whether Shibboleth will reject non-SSL requests for resources from clients.",