Checkout
ghudson
committed
on 03 Jul 05
Move authz routines from mod_authz_svn to libsvn_repos; rework authz
code to fit in with libsvn_repos; update mod_authz_svn to reflect
the m… Show more
Move authz routines from mod_authz_svn to libsvn_repos; rework authz

code to fit in with libsvn_repos; update mod_authz_svn to reflect

the move.

Patch by: David Anderson <david.anderson@calixo.net>

* subversion/mod_authz_svn/mod_authz_svn.c: Add includes, remove

    nameless enum. Update copyright notice.

  (parse_authz_baton, group_contains_user_internal,

   group_contains_user, parse_authz_line,

   parse_authz_lines, parse_authz_section,

   parse_authz_sections, check_access): Remove, functionality

    moves to libsvn_repos.

  (req_check_access): Use the authz routines in libsvn_repos and wrap

    any errors reported by the authz layer. Test for a NULL repos_path

    here rather than in check_access.

* subversion/include/svn_repos.h: Add include. Update copyright notice.

  (svn_repos_authz_access_t): New enum type.

  (svn_repos_authz_check_access): New public API.

* subversion/libsvn_repos/authz.c: New file. Contains the functionality

    moved from mod_authz_svn. Rename functions and variable names to

    better fit libsvn_repos. Add internal API and in-function

    documentation.

  (authz_access_is_granted, authz_access_is_determined): New functions

    that refactor and document obfuscated tests that were previously in

    authz_parse_section and authz_get_path_access.

* subversion/tests/libsvn_repos/repos-test.c: Add include. Update

    copyright notice.

  (authz): New test.

* build.conf: Add dependancy on libsvn_repos to mod_authz_svn build

    rules.

Show less