Fix backslashes in SHIBSP_PREFIX variable by manually creating it during the script...
[shibboleth/sp.git] / apache / mod_shib_22.cpp
1 /*
2  *  Copyright 2001-2007 Internet2
3  * 
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /* mod_shib_22.cpp -- a wrapper around the apache module code to
18  *                    build for Apache 2.2
19  *
20  * Created by:  Scott Cantor
21  *
22  */
23
24 #define SHIB_APACHE_22 1
25
26 #define MODULE_VAR_EXPORT AP_MODULE_DECLARE_DATA
27 #define SH_AP_POOL apr_pool_t
28 #define SH_AP_TABLE apr_table_t
29 #define SH_AP_CONFIGFILE ap_configfile_t
30 #define array_header apr_array_header_t
31
32 #define SH_AP_R(r) 0,r
33 #define SH_AP_USER(r) r->user
34
35 #define SERVER_ERROR HTTP_INTERNAL_SERVER_ERROR
36 #define REDIRECT HTTP_MOVED_TEMPORARILY
37 #define ap_pcalloc apr_pcalloc
38 #define ap_pstrdup apr_pstrdup
39 #define ap_pstrcat apr_pstrcat
40 #define ap_psprintf apr_psprintf
41 #define ap_table_get apr_table_get
42 #define ap_table_add apr_table_add
43 #define ap_table_addn apr_table_addn
44 #define ap_table_setn apr_table_setn
45 #define ap_table_unset apr_table_unset
46 #define ap_table_set apr_table_set
47 #define ap_copy_table apr_table_copy
48 #define ap_overlay_tables apr_table_overlay
49 #define ap_overlap_tables apr_table_overlap
50 #define ap_table_elts apr_table_elts
51 #define ap_is_empty_table apr_is_empty_table
52 #define ap_clear_pool apr_pool_clear
53 #define ap_destroy_pool apr_pool_destroy
54 #define ap_make_table apr_table_make
55 #define AP_OVERLAP_TABLES_SET APR_OVERLAP_TABLES_SET
56
57 #define ap_send_http_header(r)
58 #define ap_hard_timeout(str,r)
59 #define ap_reset_timeout(r)
60 #define ap_kill_timeout(r)
61
62 #define ap_http_method ap_http_scheme
63
64 #include "mod_apache.cpp"