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
12 * http://www.apache.org/licenses/LICENSE-2.0
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
20 * ====================================================================
23 * @file mod_authz_svn.h
24 * @brief Subversion authorization extensions for mod_dav_svn
27 #ifndef MOD_AUTHZ_SVN_H
28 #define MOD_AUTHZ_SVN_H
34 #endif /* __cplusplus */
37 * mod_dav_svn to mod_authz_svn bypass mechanism
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".
48 * Uses @a r @a repos_path and @a repos_name to determine if the user
49 * making the request is authorized.
51 * If the access is allowed returns @c OK or @c HTTP_FORBIDDEN if it is not.
53 typedef int (*authz_svn__subreq_bypass_func_t)(request_rec *r,
54 const char *repos_path,
55 const char *repos_name);
59 #endif /* __cplusplus */