File: mod_shib_22.cpp

package info (click to toggle)
shibboleth-sp 3.5.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,184 kB
  • sloc: cpp: 42,718; sh: 5,860; makefile: 969; xml: 539; ansic: 90
file content (71 lines) | stat: -rw-r--r-- 2,356 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**
 * Licensed to the University Corporation for Advanced Internet
 * Development, Inc. (UCAID) under one or more contributor license
 * agreements. See the NOTICE file distributed with this work for
 * additional information regarding copyright ownership.
 *
 * UCAID licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the
 * License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific
 * language governing permissions and limitations under the License.
 */

/* mod_shib_22.cpp -- a wrapper around the apache module code to
 * 		      build for Apache 2.2
 *
 * Created by:  Scott Cantor
 *
 */

#define SHIB_APACHE_22 1

#define MODULE_VAR_EXPORT AP_MODULE_DECLARE_DATA
#define SH_AP_POOL apr_pool_t
#define SH_AP_TABLE apr_table_t
#define SH_AP_CONFIGFILE ap_configfile_t
#define array_header apr_array_header_t
#define table_entry apr_table_entry_t

#define SH_AP_R(r) 0,r
#define SH_AP_USER(r) r->user
#define SH_AP_AUTH_TYPE(r) r->ap_auth_type

#define SERVER_ERROR HTTP_INTERNAL_SERVER_ERROR
#define REDIRECT HTTP_MOVED_TEMPORARILY
#define ap_pcalloc apr_pcalloc
#define ap_pstrdup apr_pstrdup
#define ap_pstrcat apr_pstrcat
#define ap_psprintf apr_psprintf
#define ap_table_get apr_table_get
#define ap_table_add apr_table_add
#define ap_table_addn apr_table_addn
#define ap_table_setn apr_table_setn
#define ap_table_unset apr_table_unset
#define ap_table_set apr_table_set
#define ap_table_do apr_table_do
#define ap_copy_table apr_table_copy
#define ap_overlay_tables apr_table_overlay
#define ap_overlap_tables apr_table_overlap
#define ap_table_elts apr_table_elts
#define ap_is_empty_table apr_is_empty_table
#define ap_clear_pool apr_pool_clear
#define ap_destroy_pool apr_pool_destroy
#define ap_make_table apr_table_make
#define AP_OVERLAP_TABLES_SET APR_OVERLAP_TABLES_SET

#define ap_send_http_header(r)
#define ap_hard_timeout(str,r)
#define ap_reset_timeout(r)
#define ap_kill_timeout(r)

#define ap_http_method ap_http_scheme

#include "mod_shib.cpp"