Imported Upstream version 2.4+dfsg
[shibboleth/sp.git] / apache / mod_shib_20.cpp
1 /*
2  *  Copyright 2001-2010 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_20.cpp -- a wrapper around the apache module code to
18  *                    build for Apache 2.0
19  *
20  * Created by:  Derek Atkins <derek@ihtfp.com>
21  *
22  */
23
24 #define SHIB_APACHE_20 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 #define SH_AP_AUTH_TYPE(r) r->ap_auth_type
35
36 #define SERVER_ERROR HTTP_INTERNAL_SERVER_ERROR
37 #define REDIRECT HTTP_MOVED_TEMPORARILY
38 #define ap_pcalloc apr_pcalloc
39 #define ap_pstrdup apr_pstrdup
40 #define ap_pstrcat apr_pstrcat
41 #define ap_psprintf apr_psprintf
42 #define ap_table_get apr_table_get
43 #define ap_table_add apr_table_add
44 #define ap_table_addn apr_table_addn
45 #define ap_table_setn apr_table_setn
46 #define ap_table_unset apr_table_unset
47 #define ap_table_set apr_table_set
48 #define ap_table_do apr_table_do
49 #define ap_clear_pool apr_pool_clear
50 #define ap_destroy_pool apr_pool_destroy
51 #define ap_make_table apr_table_make
52 #define ap_copy_table apr_table_copy
53 #define ap_overlay_tables apr_table_overlay
54 #define ap_overlap_tables apr_table_overlap
55 #define ap_table_elts apr_table_elts
56 #define ap_is_empty_table apr_is_empty_table
57 #define AP_OVERLAP_TABLES_SET APR_OVERLAP_TABLES_SET
58
59 #define ap_send_http_header(r)
60 #define ap_hard_timeout(str,r)
61 #define ap_reset_timeout(r)
62 #define ap_kill_timeout(r)
63
64 #include "mod_apache.cpp"