Subversion
mod_authz_svn.h
Go to the documentation of this file.
1 /**
2  * @copyright
3  * ====================================================================
4  * Licensed to the Apache Software Foundation (ASF) under one
5  * or more contributor license agreements. See the NOTICE file
6  * distributed with this work for additional information
7  * regarding copyright ownership. The ASF licenses this file
8  * to you under the Apache License, Version 2.0 (the
9  * "License"); you may not use this file except in compliance
10  * with the License. You may obtain a copy of the 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
17  * KIND, either express or implied. See the License for the
18  * specific language governing permissions and limitations
19  * under the License.
20  * ====================================================================
21  * @endcopyright
22  *
23  * @file mod_authz_svn.h
24  * @brief Subversion authorization extensions for mod_dav_svn
25  */
26 
27 #ifndef MOD_AUTHZ_SVN_H
28 #define MOD_AUTHZ_SVN_H
29 
30 #include <httpd.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif /* __cplusplus */
35 
36 /*
37  * mod_dav_svn to mod_authz_svn bypass mechanism
38  */
39 /** Provider group for subrequest bypass */
40 #define AUTHZ_SVN__SUBREQ_BYPASS_PROV_GRP "dav2authz_subreq_bypass"
41 /** Provider name for subrequest bypass */
42 #define AUTHZ_SVN__SUBREQ_BYPASS_PROV_NAME "mod_authz_svn_subreq_bypass"
43 /** Provider version for subrequest bypass */
44 #define AUTHZ_SVN__SUBREQ_BYPASS_PROV_VER "00.00a"
45 /** Provider to allow mod_dav_svn to bypass the generation of an apache
46  * request when checking GET access from "mod_dav_svn/auth.c".
47  *
48  * Uses @a r @a repos_path and @a repos_name to determine if the user
49  * making the request is authorized.
50  *
51  * If the access is allowed returns @c OK or @c HTTP_FORBIDDEN if it is not.
52  */
53 typedef int (*authz_svn__subreq_bypass_func_t)(request_rec *r,
54  const char *repos_path,
55  const char *repos_name);
56 
57 #ifdef __cplusplus
58 }
59 #endif /* __cplusplus */
60 
61 #endif
authz_svn__subreq_bypass_func_t
int(* authz_svn__subreq_bypass_func_t)(request_rec *r, const char *repos_path, const char *repos_name)
Provider to allow mod_dav_svn to bypass the generation of an apache request when checking GET access ...
Definition: mod_authz_svn.h:53