Use shibboleth-sp as package name for compatibility.
[shibboleth/cpp-sp.git] / apache / mod_shib_20.cpp
1 /**
2  * Licensed to the University Corporation for Advanced Internet
3  * Development, Inc. (UCAID) under one or more contributor license
4  * agreements. See the NOTICE file distributed with this work for
5  * additional information regarding copyright ownership.
6  *
7  * UCAID licenses this file to you under the Apache License,
8  * Version 2.0 (the "License"); you may not use this file except
9  * in compliance with the License. You may obtain a copy of the
10  * License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing,
15  * software distributed under the License is distributed on an
16  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
17  * either express or implied. See the License for the specific
18  * language governing permissions and limitations under the License.
19  */
20
21 /* mod_shib_20.cpp -- a wrapper around the apache module code to
22  *                    build for Apache 2.0
23  *
24  * Created by:  Derek Atkins <derek@ihtfp.com>
25  *
26  */
27
28 #define SHIB_APACHE_20 1
29
30 #define MODULE_VAR_EXPORT AP_MODULE_DECLARE_DATA
31 #define SH_AP_POOL apr_pool_t
32 #define SH_AP_TABLE apr_table_t
33 #define SH_AP_CONFIGFILE ap_configfile_t
34 #define array_header apr_array_header_t
35
36 #define SH_AP_R(r) 0,r
37 #define SH_AP_USER(r) r->user
38 #define SH_AP_AUTH_TYPE(r) r->ap_auth_type
39
40 #define SERVER_ERROR HTTP_INTERNAL_SERVER_ERROR
41 #define REDIRECT HTTP_MOVED_TEMPORARILY
42 #define ap_pcalloc apr_pcalloc
43 #define ap_pstrdup apr_pstrdup
44 #define ap_pstrcat apr_pstrcat
45 #define ap_psprintf apr_psprintf
46 #define ap_table_get apr_table_get
47 #define ap_table_add apr_table_add
48 #define ap_table_addn apr_table_addn
49 #define ap_table_setn apr_table_setn
50 #define ap_table_unset apr_table_unset
51 #define ap_table_set apr_table_set
52 #define ap_table_do apr_table_do
53 #define ap_clear_pool apr_pool_clear
54 #define ap_destroy_pool apr_pool_destroy
55 #define ap_make_table apr_table_make
56 #define ap_copy_table apr_table_copy
57 #define ap_overlay_tables apr_table_overlay
58 #define ap_overlap_tables apr_table_overlap
59 #define ap_table_elts apr_table_elts
60 #define ap_is_empty_table apr_is_empty_table
61 #define AP_OVERLAP_TABLES_SET APR_OVERLAP_TABLES_SET
62
63 #define ap_send_http_header(r)
64 #define ap_hard_timeout(str,r)
65 #define ap_reset_timeout(r)
66 #define ap_kill_timeout(r)
67
68 #include "mod_shib.cpp"