github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_4_58/include/ap_mmn.h (about)

     1  /* Licensed to the Apache Software Foundation (ASF) under one or more
     2   * contributor license agreements.  See the NOTICE file distributed with
     3   * this work for additional information regarding copyright ownership.
     4   * The ASF licenses this file to You under the Apache License, Version 2.0
     5   * (the "License"); you may not use this file except in compliance with
     6   * the License.  You may obtain a copy of the License at
     7   *
     8   *     http://www.apache.org/licenses/LICENSE-2.0
     9   *
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15   */
    16  
    17  /**
    18   * @file  ap_mmn.h
    19   * @brief Module Magic Number
    20   *
    21   * @defgroup APACHE_CORE_MMN Module Magic Number
    22   * @ingroup  APACHE_CORE
    23   * @{
    24   */
    25  
    26  #ifndef APACHE_AP_MMN_H
    27  #define APACHE_AP_MMN_H
    28  
    29  /*
    30   * MODULE_MAGIC_NUMBER_MAJOR
    31   * Major API changes that could cause compatibility problems for older modules
    32   * such as structure size changes.  No binary compatibility is possible across
    33   * a change in the major version.
    34   *
    35   * MODULE_MAGIC_NUMBER_MINOR
    36   * Minor API changes that do not cause binary compatibility problems.
    37   * Should be reset to 0 when upgrading MODULE_MAGIC_NUMBER_MAJOR.
    38   *
    39   * See the AP_MODULE_MAGIC_AT_LEAST macro below for an example.
    40   */
    41  
    42  /*
    43   * 20010224   (2.0.13-dev) MODULE_MAGIC_COOKIE reset to "AP20"
    44   * 20010523   (2.0.19-dev) bump for scoreboard structure reordering
    45   * 20010627   (2.0.19-dev) more API changes than I can count
    46   * 20010726   (2.0.22-dev) more big API changes
    47   * 20010808   (2.0.23-dev) dir d_is_absolute bit introduced, bucket changes, etc
    48   * 20010825   (2.0.25-dev) removed d_is_absolute, introduced map_to_storage hook
    49   * 20011002   (2.0.26-dev) removed 1.3-deprecated request_rec.content_language
    50   * 20011127   (2.0.29-dev) bump for postconfig hook change, and removal of
    51   *                         socket from connection record
    52   * 20011212   (2.0.30-dev) bump for new used_path_info member of request_rec
    53   * 20011218   (2.0.30-dev) bump for new sbh member of conn_rec, different
    54   *                         declarations for scoreboard, new parameter to
    55   *                         create_connection hook
    56   * 20020102   (2.0.30-dev) bump for changed type of limit_req_body in
    57   *                         core_dir_config
    58   * 20020109   (2.0.31-dev) bump for changed shm and scoreboard declarations
    59   * 20020111   (2.0.31-dev) bump for ETag fields added at end of cor_dir_config
    60   * 20020114   (2.0.31-dev) mod_dav changed how it asks its provider to fulfill
    61   *                         a GET request
    62   * 20020118   (2.0.31-dev) Input filtering split of blocking and mode
    63   * 20020127   (2.0.31-dev) bump for pre_mpm hook change
    64   * 20020128   (2.0.31-dev) bump for pre_config hook change
    65   * 20020218   (2.0.33-dev) bump for AddOutputFilterByType directive
    66   * 20020220   (2.0.33-dev) bump for scoreboard.h structure change
    67   * 20020302   (2.0.33-dev) bump for protocol_filter additions.
    68   * 20020306   (2.0.34-dev) bump for filter type renames.
    69   * 20020318   (2.0.34-dev) mod_dav's API for REPORT generation changed
    70   * 20020319   (2.0.34-dev) M_INVALID changed, plus new M_* methods for RFC 3253
    71   * 20020327   (2.0.35-dev) Add parameter to quick_handler hook
    72   * 20020329   (2.0.35-dev) bump for addition of freelists to bucket API
    73   * 20020329.1 (2.0.36)     minor bump for new arg to opt fn ap_cgi_build_command
    74   * 20020506   (2.0.37-dev) Removed r->boundary in request_rec.
    75   * 20020529   (2.0.37-dev) Standardized the names of some apr_pool_*_set funcs
    76   * 20020602   (2.0.37-dev) Bucket API change (metadata buckets)
    77   * 20020612   (2.0.38-dev) Changed server_rec->[keep_alive_]timeout to apr time
    78   * 20020625   (2.0.40-dev) Changed conn_rec->keepalive to an enumeration
    79   * 20020628   (2.0.40-dev) Added filter_init to filter registration functions
    80   * 20020903   (2.0.41-dev) APR's error constants changed
    81   * 20020903.1 (2.1.0-dev)  allow_encoded_slashes added to core_dir_config
    82   * 20020903.2 (2.0.46-dev) add ap_escape_logitem
    83   * 20030213.1 (2.1.0-dev)  changed log_writer optional fn's to return previous
    84   *                         handler
    85   * 20030821   (2.1.0-dev)  bumped mod_include's entire API
    86   * 20030821.1 (2.1.0-dev)  added XHTML doctypes
    87   * 20030821.2 (2.1.0-dev)  added ap_escape_errorlog_item
    88   * 20030821.3 (2.1.0-dev)  added ap_get_server_revision / ap_version_t
    89   * 20040425   (2.1.0-dev)  removed ap_add_named_module API
    90   *                         changed ap_add_module, ap_add_loaded_module,
    91   *                         ap_setup_prelinked_modules,
    92   *                         ap_process_resource_config
    93   * 20040425.1 (2.1.0-dev)  Added ap_module_symbol_t and
    94   *                         ap_prelinked_module_symbols
    95   * 20050101.0 (2.1.2-dev)  Axed misnamed http_method for http_scheme
    96   *                         (which it was!)
    97   * 20050127.0 (2.1.3-dev)  renamed regex_t->ap_regex_t,
    98   *                         regmatch_t->ap_regmatch_t, REG_*->AP_REG_*,
    99   *                         removed reg* in place of ap_reg*; added ap_regex.h
   100   * 20050217.0 (2.1.3-dev)  Axed find_child_by_pid, mpm_*_completion_context
   101   *                         (winnt mpm) symbols from the public sector, and
   102   *                         decorated real_exit_code with ap_ in the win32/os.h.
   103   * 20050305.0 (2.1.4-dev)  added pid and generation fields to worker_score
   104   * 20050305.1 (2.1.5-dev)  added ap_vhost_iterate_given_conn.
   105   * 20050305.2 (2.1.5-dev)  added AP_INIT_TAKE_ARGV.
   106   * 20050305.3 (2.1.5-dev)  added Protocol Framework.
   107   * 20050701.0 (2.1.7-dev)  Bump MODULE_MAGIC_COOKIE to "AP21"!
   108   * 20050701.1 (2.1.7-dev)  trace_enable member added to core server_config
   109   * 20050708.0 (2.1.7-dev)  Bump MODULE_MAGIC_COOKIE to "AP22"!
   110   * 20050708.1 (2.1.7-dev)  add proxy request_status hook (minor)
   111   * 20050919.0 (2.1.8-dev)  mod_ssl ssl_ext_list optional function added
   112   * 20051005.0 (2.1.8-dev)  NET_TIME filter eliminated
   113   * 20051005.0 (2.3.0-dev)  Bump MODULE_MAGIC_COOKIE to "AP24"!
   114   * 20051115.0 (2.3.0-dev)  Added use_canonical_phys_port to core_dir_config
   115   * 20060110.0 (2.3.0-dev)  Conversion of Authz to be provider based
   116   *                         addition of <SatisfyAll><SatisfyOne>
   117   *                         removal of Satisfy, Allow, Deny, Order
   118   * 20060110.1 (2.3.0-dev)  minex and minex_set members added to
   119   *                         cache_server_conf (minor)
   120   * 20060110.2 (2.3.0-dev)  flush_packets and flush_wait members added to
   121   *                         proxy_server (minor)
   122   * 20060110.3 (2.3.0-dev)  added inreslist member to proxy_conn_rec (minor)
   123   * 20060110.4 (2.3.0-dev)  Added server_scheme member to server_rec (minor)
   124   * 20060905.0 (2.3.0-dev)  Replaced ap_get_server_version() with
   125   *                         ap_get_server_banner() and ap_get_server_description()
   126   * 20060905.1 (2.3.0-dev)  Enable retry=0 for the worker (minor)
   127   * 20060905.2 (2.3.0-dev)  Added ap_all_available_mutexes_string,
   128   *                         ap_available_mutexes_string and
   129   *                         ap_parse_mutex()
   130   * 20060905.3 (2.3.0-dev)  Added conn_rec::clogging_input_filters.
   131   * 20060905.4 (2.3.0-dev)  Added proxy_balancer::sticky_path.
   132   * 20060905.5 (2.3.0-dev)  Added ap_mpm_safe_kill()
   133   * 20070823.0 (2.3.0-dev)  Removed ap_all_available_mutexes_string,
   134   *                         ap_available_mutexes_string for macros
   135   * 20070823.1 (2.3.0-dev)  add ap_send_interim_response()
   136   * 20071023.0 (2.3.0-dev)  add ap_get_scoreboard(sbh) split from the less
   137   *                         conventional ap_get_scoreboard(proc, thread)
   138   * 20071023.1 (2.3.0-dev)  Add flags field to struct proxy_alias
   139   * 20071023.2 (2.3.0-dev)  Add ap_mod_status_reqtail
   140   * 20071023.3 (2.3.0-dev)  Declare ap_time_process_request() as part of the
   141   *                         public scoreboard API.
   142   * 20071108.1 (2.3.0-dev)  Add the optional kept_body brigade to request_rec
   143   * 20071108.2 (2.3.0-dev)  Add st and keep fields to struct util_ldap_connection_t
   144   * 20071108.3 (2.3.0-dev)  Add API guarantee for adding connection filters
   145   *                         with non-NULL request_rec pointer (ap_add_*_filter*)
   146   * 20071108.4 (2.3.0-dev)  Add ap_proxy_ssl_connection_cleanup
   147   * 20071108.5 (2.3.0-dev)  Add *scpool to proxy_conn_rec structure
   148   * 20071108.6 (2.3.0-dev)  Add *r and need_flush to proxy_conn_rec structure
   149   * 20071108.7 (2.3.0-dev)  Add *ftp_directory_charset to proxy_dir_conf
   150   * 20071108.8 (2.3.0-dev)  Add optional function ap_logio_add_bytes_in() to mog_logio
   151   * 20071108.9 (2.3.0-dev)  Add chroot support to unixd_config
   152   * 20071108.10(2.3.0-dev)  Introduce new ap_expr API
   153   * 20071108.11(2.3.0-dev)  Revise/Expand new ap_expr API
   154   * 20071108.12(2.3.0-dev)  Remove ap_expr_clone from the API (same day it was added)
   155   * 20080403.0 (2.3.0-dev)  Add condition field to core dir config
   156   * 20080403.1 (2.3.0-dev)  Add authn/z hook and provider registration wrappers.
   157   * 20080403.2 (2.3.0-dev)  Add ap_escape_path_segment_buffer() and ap_unescape_all().
   158   * 20080407.0 (2.3.0-dev)  Remove ap_graceful_stop_signalled.
   159   * 20080407.1              Deprecate ap_cache_cacheable_hdrs_out and add two
   160   *                         generalized ap_cache_cacheable_headers_(in|out).
   161   * 20080528.0 (2.3.0-dev)  Switch order of ftp_directory_charset and
   162   *                         interpolate_env in proxy_dir_conf.
   163   *                         Rationale: see r661069.
   164   * 20080528.1 (2.3.0-dev)  add has_realm_hash() to authn_provider struct
   165   * 20080722.0 (2.3.0-dev)  remove has_realm_hash() from authn_provider struct
   166   * 20080722.1 (2.3.0-dev)  Add conn_timeout and conn_timeout_set to
   167   *                         proxy_worker struct.
   168   * 20080722.2 (2.3.0-dev)  Add scolonsep to proxy_balancer
   169   * 20080829.0 (2.3.0-dev)  Add cookie attributes when removing cookies
   170   * 20080830.0 (2.3.0-dev)  Cookies can be set on headers_out and err_headers_out
   171   * 20080920.0 (2.3.0-dev)  Add ap_mpm_register_timed_callback.
   172   * 20080920.1 (2.3.0-dev)  Export mod_rewrite.h in the public API.
   173   * 20080920.2 (2.3.0-dev)  Added ap_timeout_parameter_parse to util.c / httpd.h
   174   * 20081101.0 (2.3.0-dev)  Remove unused AUTHZ_GROUP_NOTE define.
   175   * 20081102.0 (2.3.0-dev)  Remove authz_provider_list, authz_request_state,
   176   *                         and AUTHZ_ACCESS_PASSED_NOTE.
   177   * 20081104.0 (2.3.0-dev)  Remove r and need_flush fields from proxy_conn_rec
   178   *                         as they are no longer used and add
   179   *                         ap_proxy_buckets_lifetime_transform to mod_proxy.h
   180   * 20081129.0 (2.3.0-dev)  Move AP_FILTER_ERROR and AP_NOBODY_READ|WROTE
   181   *                         from util_filter.h to httpd.h and change their
   182   *                         numeric values so they do not overlap with other
   183   *                         potential status codes
   184   * 20081201.0 (2.3.0-dev)  Rename several APIs to include ap_ prefix.
   185   * 20081201.1 (2.3.0-dev)  Added ap_args_to_table and ap_body_to_table.
   186   * 20081212.0 (2.3.0-dev)  Remove sb_type from process_score in scoreboard.h.
   187   * 20081231.0 (2.3.0-dev)  Switch ap_escape_html API: add ap_escape_html2,
   188   *                         and make ap_escape_html a macro for it.
   189   * 20090130.0 (2.3.2-dev)  Add ap_ prefix to unixd_setup_child().
   190   * 20090131.0 (2.3.2-dev)  Remove ap_default_type(), disable DefaultType
   191   * 20090208.0 (2.3.2-dev)  Add conn_rec::current_thread.
   192   * 20090208.1 (2.3.3-dev)  Add ap_retained_data_create()/ap_retained_data_get()
   193   * 20090401.0 (2.3.3-dev)  Remove ap_threads_per_child, ap_max_daemons_limit,
   194   *                         ap_my_generation, etc.  ap_mpm_query() can't be called
   195   *                         until after the register-hooks phase.
   196   * 20090401.1 (2.3.3-dev)  Protected log.c internals, http_log.h changes
   197   * 20090401.2 (2.3.3-dev)  Added tmp_flush_bb to core_output_filter_ctx_t
   198   * 20090401.3 (2.3.3-dev)  Added DAV options provider to mod_dav.h
   199   * 20090925.0 (2.3.3-dev)  Added server_rec::context and added *server_rec
   200   *                         param to ap_wait_or_timeout()
   201   * 20090925.1 (2.3.3-dev)  Add optional function ap_logio_get_last_bytes() to
   202   *                         mod_logio
   203   * 20091011.0 (2.3.3-dev)  Move preserve_host{,_set} from proxy_server_conf to
   204   *                         proxy_dir_conf
   205   * 20091011.1 (2.3.3-dev)  add debug_level to util_ldap_state_t
   206   * 20091031.0 (2.3.3-dev)  remove public LDAP referral-related macros
   207   * 20091119.0 (2.3.4-dev)  dav_error interface uses apr_status_t parm, not errno
   208   * 20091119.1 (2.3.4-dev)  ap_mutex_register(), ap_{proc,global}_mutex_create()
   209   * 20091229.0 (2.3.5-dev)  Move allowed_connect_ports from proxy_server_conf
   210   *                         to mod_proxy_connect
   211   * 20091230.0 (2.3.5-dev)  Move ftp_directory_charset from proxy_dir_conf
   212   *                         to proxy_ftp_dir_conf(mod_proxy_ftp)
   213   * 20091230.1 (2.3.5-dev)  add util_ldap_state_t.opTimeout
   214   * 20091230.2 (2.3.5-dev)  add ap_get_server_name_for_url()
   215   * 20091230.3 (2.3.6-dev)  add ap_parse_log_level()
   216   * 20091230.4 (2.3.6-dev)  export ap_process_request_after_handler() for mod_serf
   217   * 20100208.0 (2.3.6-dev)  ap_socache_provider_t API changes to store and iterate
   218   * 20100208.1 (2.3.6-dev)  Added forward member to proxy_conn_rec
   219   * 20100208.2 (2.3.6-dev)  Added ap_log_command_line().
   220   * 20100223.0 (2.3.6-dev)  LDAP client_certs per-server moved to per-dir
   221   * 20100223.1 (2.3.6-dev)  Added ap_process_fnmatch_configs().
   222   * 20100504.0 (2.3.6-dev)  Added name arg to ap_{proc,global}_mutex_create().
   223   * 20100604.0 (2.3.6-dev)  Remove unused core_dir_config::loglevel
   224   * 20100606.0 (2.3.6-dev)  Make ap_log_*error macro wrappers around
   225   *                         ap_log_*error_ to save argument preparation and
   226   *                         function call overhead.
   227   *                         Introduce per-module loglevels, including new APIs
   228   *                         APLOG_USE_MODULE() and AP_DECLARE_MODULE().
   229   * 20100606.1 (2.3.6-dev)  Added extended timestamp formatting via
   230   *                         ap_recent_ctime_ex().
   231   * 20100609.0 (2.3.6-dev)  Dropped ap_body_to_table due to missing constraints.
   232   * 20100609.1 (2.3.7-dev)  Introduce ap_log_cserror()
   233   * 20100609.2 (2.3.7-dev)  Add deferred write pool to core_output_filter_ctx
   234   * 20100625.0 (2.3.7-dev)  Add 'userctx' to socache iterator callback prototype
   235   * 20100630.0 (2.3.7-dev)  make module_levels vector of char instead of int
   236   * 20100701.0 (2.3.7-dev)  re-order struct members to improve alignment
   237   * 20100701.1 (2.3.7-dev)  add note_auth_failure hook
   238   * 20100701.2 (2.3.7-dev)  add ap_proxy_*_wid() functions
   239   * 20100714.0 (2.3.7-dev)  add access_checker_ex hook, add AUTHZ_DENIED_NO_USER
   240   *                         to authz_status, call authz providers twice to allow
   241   *                         authz without authenticated user
   242   * 20100719.0 (2.3.7-dev)  Add symbol name parameter to ap_add_module and
   243   *                         ap_add_loaded_module. Add ap_find_module_short_name
   244   * 20100723.0 (2.3.7-dev)  Remove ct_output_filters from core rec
   245   * 20100723.1 (2.3.7-dev)  Added ap_proxy_hashfunc() and hash elements to
   246   *                         proxy worker structs
   247   * 20100723.2 (2.3.7-dev)  Add ap_request_has_body()
   248   * 20100723.3 (2.3.8-dev)  Add ap_check_mpm()
   249   * 20100905.0 (2.3.9-dev)  Add log_id to conn and req recs. Add error log
   250   *                         format handlers. Support AP_CTIME_OPTION_COMPACT in
   251   *                         ap_recent_ctime_ex().
   252   * 20100905.1 (2.3.9-dev)  Add ap_cache_check_allowed()
   253   * 20100912.0 (2.3.9-dev)  Add an additional "out" brigade parameter to the
   254   *                         mod_cache store_body() provider function.
   255   * 20100916.0 (2.3.9-dev)  Add commit_entity() to the mod_cache provider
   256   *                         interface.
   257   * 20100918.0 (2.3.9-dev)  Move the request_rec within mod_include to be
   258   *                         exposed within include_ctx_t.
   259   * 20100919.0 (2.3.9-dev)  Authz providers: Add parsed_require_line parameter
   260   *                         to check_authorization() function. Add
   261   *                         parse_require_line() function.
   262   * 20100919.1 (2.3.9-dev)  Introduce ap_rxplus util/API
   263   * 20100921.0 (2.3.9-dev)  Add an apr_bucket_brigade to the create_entity
   264   *                         provider interface for mod_cache.h.
   265   * 20100922.0 (2.3.9-dev)  Move cache_* functions from mod_cache.h to a
   266   *                         private header file.
   267   * 20100923.0 (2.3.9-dev)  Remove MOD_CACHE_REQUEST_REC, remove deprecated
   268   *                         ap_cache_cacheable_hdrs_out, trim cache_object_t,
   269   *                         make ap_cache_accept_headers, ap_cache_accept_headers
   270   *                         ap_cache_try_lock, ap_cache_check_freshness,
   271   *                         cache_server_conf, cache_enable, cache_disable,
   272   *                         cache_request_rec and cache_provider_list private.
   273   * 20100923.1 (2.3.9-dev)  Add cache_status hook.
   274   * 20100923.2 (2.3.9-dev)  Add generate_log_id hook.
   275   *                         Make root parameter of ap_expr_eval() const.
   276   * 20100923.3 (2.3.9-dev)  Add "last" member to ap_directive_t
   277   * 20101012.0 (2.3.9-dev)  Add header to cache_status hook.
   278   * 20101016.0 (2.3.9-dev)  Remove ap_cache_check_allowed().
   279   * 20101017.0 (2.3.9-dev)  Make ap_cache_control() public, add cache_control_t
   280   *                         to mod_disk_cache format.
   281   * 20101106.0 (2.3.9-dev)  Replace the ap_expr parser derived from
   282   *                         mod_include's parser with one derived from
   283   *                         mod_ssl's parser. Clean up ap_expr's public
   284   *                         interface.
   285   * 20101106.1 (2.3.9-dev)  Add ap_pool_cleanup_set_null() generic cleanup
   286   * 20101106.2 (2.3.9-dev)  Add suexec_disabled_reason field to ap_unixd_config
   287   * 20101113.0 (2.3.9-dev)  Add source address to mod_proxy.h
   288   * 20101113.1 (2.3.9-dev)  Add ap_set_flag_slot_char()
   289   * 20101113.2 (2.3.9-dev)  Add ap_expr_exec_re()
   290   * 20101204.0 (2.3.10-dev) Add _t to ap_expr's typedef names
   291   * 20101223.0 (2.3.11-dev) Remove cleaned from proxy_conn_rec.
   292   * 20101223.1 (2.3.11-dev) Rework mod_proxy, et.al. Remove proxy_worker_stat
   293   *                         and replace w/ proxy_worker_shared; remove worker
   294   *                         info from scoreboard and use slotmem; Allow
   295   *                         dynamic growth of balancer members; Remove
   296   *                         BalancerNonce in favor of 'nonce' parameter.
   297   * 20110117.0 (2.3.11-dev) Merge <If> sections in separate step (ap_if_walk).
   298   *                         Add core_dir_config->sec_if. Add ap_add_if_conf().
   299   *                         Add pool argument to ap_add_file_conf().
   300   * 20110117.1 (2.3.11-dev) Add ap_pstr2_alnum() and ap_str2_alnum()
   301   * 20110203.0 (2.3.11-dev) Raise DYNAMIC_MODULE_LIMIT to 256
   302   * 20110203.1 (2.3.11-dev) Add ap_state_query()
   303   * 20110203.2 (2.3.11-dev) Add ap_run_pre_read_request() hook and
   304   *                         ap_parse_form_data() util
   305   * 20110312.0 (2.3.12-dev) remove uldap_connection_cleanup and add
   306                             util_ldap_state_t.connectionPoolTTL,
   307                             util_ldap_connection_t.freed, and
   308                             util_ldap_connection_t.rebind_pool.
   309   * 20110312.1 (2.3.12-dev) Add core_dir_config.decode_encoded_slashes.
   310   * 20110328.0 (2.3.12-dev) change type and name of connectionPoolTTL in util_ldap_state_t
   311                             connectionPoolTTL (connection_pool_ttl, int->apr_interval_t)
   312   * 20110329.0 (2.3.12-dev) Change single-bit signed fields to unsigned in
   313   *                         proxy and cache interfaces.
   314   *                         Change ap_configfile_t/ap_cfg_getline()/
   315   *                         ap_cfg_getc() API, add ap_pcfg_strerror()
   316   *                         Axe mpm_note_child_killed hook, change
   317   *                         ap_reclaim_child_process and ap_recover_child_process
   318   *                         interfaces.
   319   * 20110329.1 (2.3.12-dev) Add ap_reserve_module_slots()/ap_reserve_module_slots_directive()
   320   *                         change AP_CORE_DECLARE to AP_DECLARE: ap_create_request_config()
   321   *                         change AP_DECLARE to AP_CORE_DECLARE: ap_register_log_hooks()
   322   * 20110329.2 (2.3.12-dev) Add child_status and end_generation hooks.
   323   * 20110329.3 (2.3.12-dev) Add format field to ap_errorlog_info.
   324   * 20110329.4 (2.3.13-dev) bgrowth and max_balancers to proxy_server_conf.
   325   * 20110329.5 (2.3.13-dev) Add ap_regexec_len()
   326   * 20110329.6 (2.3.13-dev) Add AP_EXPR_FLAGS_RESTRICTED, ap_expr_eval_ctx_t->data,
   327   *                         ap_expr_exec_ctx()
   328   * 20110604.0 (2.3.13-dev) Make ap_rputs() inline
   329   * 20110605.0 (2.3.13-dev) add core_dir_config->condition_ifelse, change return
   330   *                         type of ap_add_if_conf().
   331   *                         Add members of core_request_config: document_root,
   332   *                         context_document_root, context_prefix.
   333   *                         Add ap_context_*(), ap_set_context_info(), ap_set_document_root()
   334   * 20110605.1 (2.3.13-dev) add ap_(get|set)_core_module_config()
   335   * 20110605.2 (2.3.13-dev) add ap_get_conn_socket()
   336   * 20110619.0 (2.3.13-dev) add async connection infos to process_score in scoreboard,
   337   *                         add ap_start_lingering_close(),
   338   *                         add conn_state_e:CONN_STATE_LINGER_NORMAL and CONN_STATE_LINGER_SHORT
   339   * 20110619.1 (2.3.13-dev) add ap_str_toupper()
   340   * 20110702.0 (2.3.14-dev) make ap_expr_parse_cmd() macro wrapper for new
   341   *                         ap_expr_parse_cmd_mi() function, add ap_expr_str_*() functions,
   342   *                         rename AP_EXPR_FLAGS_* -> AP_EXPR_FLAG_*
   343   * 20110702.1 (2.3.14-dev) Add ap_scan_script_header_err*_ex functions
   344   * 20110723.0 (2.3.14-dev) Revert addition of ap_ldap*
   345   * 20110724.0 (2.3.14-dev) Add override_list as parameter to ap_parse_htaccess
   346   *                         Add member override_list to cmd_parms_struct,
   347   *                         core_dir_config and htaccess_result
   348   * 20110724.1 (2.3.15-dev) add NOT_IN_HTACCESS
   349   * 20110724.2 (2.3.15-dev) retries and retry_delay in util_ldap_state_t
   350   * 20110724.3 (2.3.15-dev) add util_varbuf.h / ap_varbuf API
   351   * 20110724.4 (2.3.15-dev) add max_ranges to core_dir_config
   352   * 20110724.5 (2.3.15-dev) add ap_set_accept_ranges()
   353   * 20110724.6 (2.3.15-dev) add max_overlaps and max_reversals to core_dir_config
   354   * 20110724.7 (2.3.15-dev) add ap_random_insecure_bytes(), ap_random_pick()
   355   * 20110724.8 (2.3.15-dev) add ap_abort_on_oom(), ap_malloc(), ap_calloc(),
   356   *                         ap_realloc()
   357   * 20110724.9 (2.3.15-dev) add ap_varbuf_pdup() and ap_varbuf_regsub()
   358   * 20110724.10(2.3.15-dev) Export ap_max_mem_free
   359   * 20111009.0 (2.3.15-dev) Remove ap_proxy_removestr(),
   360   *                         add ap_unixd_config.group_name
   361   * 20111014.0 (2.3.15-dev) Remove cookie_path_str and cookie_domain_str from
   362   *                         proxy_dir_conf
   363   * 20111025.0 (2.3.15-dev) Add return value and maxlen to ap_varbuf_regsub(),
   364   *                         add ap_pregsub_ex()
   365   * 20111025.1 (2.3.15-dev) Add ap_escape_urlencoded(), ap_escape_urlencoded_buffer()
   366   *                         and ap_unescape_urlencoded().
   367   * 20111025.2 (2.3.15-dev) Add ap_lua_ssl_val to mod_lua
   368   * 20111025.3 (2.4.0-dev)  Add reclvl to ap_expr_eval_ctx_t
   369   * 20111122.0 (2.4.0-dev)  Remove parts of conn_state_t that are private to the MPM
   370   * 20111123.0 (2.4.0-dev)  Pass ap_errorlog_info struct to error_log hook,
   371   *                         add pool to ap_errorlog_info.
   372   * 20111130.0 (2.4.0-dev)  c->remote_ip becomes c->peer_ip and r->client_ip,
   373   *                         c->remote_addr becomes c->peer_addr and r->client_addr
   374   * 20111201.0 (2.4.0-dev)  Add invalidate_entity() to the cache provider.
   375   * 20111202.0 (2.4.0-dev)  Use apr_status_t across mod_session API.
   376   * 20111202.1 (2.4.0-dev)  add APLOGNO()
   377   * 20111203.0 (2.4.0-dev)  Optional ap_proxy_retry_worker(), remove
   378   *                         ap_proxy_string_read(), ap_cache_liststr(),
   379   *                         ap_proxy_buckets_lifetime_transform(),
   380   *                         ap_proxy_date_canon(), ap_proxy_is_ipaddr(),
   381   *                         ap_proxy_is_domainname(), ap_proxy_is_hostname(),
   382   *                         ap_proxy_is_word(), ap_proxy_hex2sec(),
   383   *                         ap_proxy_sec2hex(), ap_proxy_make_fake_req(),
   384   *                         ap_proxy_strmatch_path, ap_proxy_strmatch_domain,
   385   *                         ap_proxy_table_unmerge(), proxy_lb_workers.
   386   * 20120109.0 (2.4.1-dev)  Changes sizeof(overrides_t) in core config.
   387   * 20120109.1 (2.4.1-dev)  remove sb_type in global_score.
   388   * 20120109.2 (2.4.1-dev)  Make core_output_filter_ctx_t and core_ctx_t
   389   *                         private;
   390   *                         move core_net rec definition to http_core.h;
   391   *                         add insert_network_bucket hook, AP_DECLINED
   392   * 20120211.0 (2.4.1-dev)  Change re_nsub in ap_regex_t from apr_size_t to int.
   393   * 20120211.1 (2.4.2-dev)  Add AP_HAVE_C99
   394   * 20120211.2 (2.4.2-dev)  Add ap_runtime_dir_relative
   395   * 20120211.3 (2.4.2-dev)  Add forcerecovery to proxy_balancer_shared struct
   396   * 20120211.4 (2.4.3-dev)  Add ap_list_provider_groups()
   397   * 20120211.5 (2.4.3-dev)  Add missing HTTP status codes registered with IANA.
   398   * 20120211.6 (2.4.3-dev)  Add ap_proxy_checkproxyblock2.
   399   * 20120211.7 (2.4.3-dev)  Add ap_get_loadavg()
   400   * 20120211.8 (2.4.3-dev)  Add sticky_separator to proxy_balancer_shared struct.
   401   * 20120211.9 (2.4.4-dev)  Add fgrab() to ap_slotmem_provider_t.
   402   * 20120211.10 (2.4.4-dev) Add in bal_persist field to proxy_server_conf
   403   * 20120211.11 (2.4.4-dev) Add ap_bin2hex()
   404   * 20120211.12 (2.4.5-dev) Add ap_remove_input|output_filter_byhandle()
   405   * 20120211.13 (2.4.5-dev) Add ap_get_exec_line
   406   * 20120211.14 (2.4.5-dev) Add ppinherit and inherit to proxy_server_conf
   407   * 20120211.15 (2.4.5-dev) Add dav_join_error()
   408   * 20120211.16 (2.4.5-dev) Add cache_control_t.invalidated
   409   * 20120211.17 (2.4.5-dev) Add ap_find_etag_weak(), ap_find_etag_strong()
   410   * 20120211.18 (2.4.5-dev) Add ap_condition_e, ap_condition_if_match(),
   411   *                         ap_condition_if_unmodified_since(),
   412   *                         ap_condition_if_none_match(),
   413   *                         ap_condition_if_modified_since(),
   414   *                         ap_condition_if_range()
   415   * 20120211.19 (2.4.5-dev) Add post_perdir_config hook.
   416   * 20120211.20 (2.4.5-dev) Add dirwalk_stat hook.
   417   * 20120211.21 (2.4.5-dev) Add in ap_proxy_create_hdrbrgd() and
   418   *                         ap_proxy_pass_brigade()
   419   * 20120211.22 (2.4.5-dev) No longer prevent usage of strtoul()
   420   * 20120211.23 (2.4.5-dev) Add ap_proxy_clear_connection()
   421   * 20120211.24 (2.4.7-dev) add open_htaccess hook.
   422   * 20120211.25 (2.4.7-dev) Add conn_sense_e
   423   * 20120211.26 (2.4.7-dev) Add util_fcgi.h, FastCGI protocol support
   424   * 20120211.27 (2.4.7-dev) Add ap_podx_restart_t and ap_mpm_podx_*
   425   * 20120211.28 (2.4.7-dev) Add ap_regname
   426   * 20120211.29 (2.4.7-dev) Add uds_path to proxy_conn_rec and proxy_worker_shared.
   427   *                         The change to proxy_worker_shared is an
   428   *                         unintended API break, especially for balancer
   429   *                         lbmethod modules.
   430   * 20120211.30 (2.4.7-dev) REWRITE_REDIRECT_HANDLER_NAME in mod_rewrite.h
   431   * 20120211.31 (2.4.7-dev) Add ap_proxy_port_of_scheme()
   432   * 20120211.32 (2.4.10-dev) Add SSL reusable SNI to mod_proxy.h's proxy_conn_rec
   433   * 20120211.33 (2.4.10-dev) Add suspend_connection and resume_connection hooks
   434   * 20120211.34 (2.4.10-dev) AP_DEFAULT_HANDLER_NAME/AP_IS_DEFAULT_HANDLER_NAME
   435   * 20120211.35 (2.4.10-dev) Add "r", "must_rebind", and last_backend_conn
   436                              to util_ldap_connection_t
   437   * 20120211.36 (2.4.10-dev) Add ap_copy_scoreboard_worker()
   438   * 20120211.37 (2.4.11-dev) Add r->trailers_{in,out}
   439   * 20120211.38 (2.4.11-dev) Added ap_shutdown_conn().
   440   * 20120211.39 (2.4.11-dev) Add ap_proxy_connect_uds().
   441   * 20120211.40 (2.4.11-dev) Add ap_log_data(), ap_log_rdata(), etc.
   442   * 20120211.41 (2.4.11-dev) Add ap_proxy_de_socketfy to mod_proxy.h
   443   * 20120211.42 (2.4.13-dev) Add response_code_exprs to http_core.h
   444   * 20120211.43 (2.4.13-dev) Add keep_alive_timeout_set to server_rec
   445   * 20120211.44 (2.4.13-dev) Add cgi_pass_auth and AP_CGI_PASS_AUTH_* to
   446   *                          core_dir_config
   447   * 20120211.45 (2.4.13-dev) Add ap_proxy_connection_reusable()
   448   * 20120211.46 (2.4.13-dev) Add ap_map_http_request_error()
   449   * 20120211.47 (2.4.13-dev) Add ap_some_authn_required, ap_force_authn hook.
   450   *                          Deprecate broken ap_some_auth_required.
   451   * 20120211.48 (2.4.17-dev) Added ap_log_mpm_common().
   452   * 20120211.49 (2.4.17-dev) Add listener bucket in scoreboard.h's process_score.
   453   * 20120211.50 (2.4.17-dev) Add ap_set_listencbratio(), ap_close_listeners_ex(),
   454   *                          ap_duplicate_listeners(), ap_num_listen_buckets and
   455   *                          ap_have_so_reuseport to ap_listen.h.
   456   * 20120211.51 (2.4.17-dev) Add protocols and protocols_honor_order to
   457   *                          core_server_config. Add hooks protocol_propose
   458   *                          protocol_switch and protocol_get. Add
   459   *                          ap_select_protocol(), ap_switch_protocol(),
   460   *                          ap_get_protocol(). Add HTTP_MISDIRECTED_REQUEST.
   461   *                          Added ap_parse_token_list_strict() to httpd.h
   462   * 20120211.52 (2.4.17-dev) Add master conn_rec* member in conn_rec.
   463   * 20120211.53 (2.4.19-dev) Add expr_handler to core_dir_config.
   464   * 20120211.54 (2.4.19-dev) Add ap_proxy_buckets_lifetime_transform and
   465   *                          ap_proxy_transfer_between_connections to
   466   *                          mod_proxy.h
   467   * 20120211.55 (2.4.19-dev) Add new ap_update_child_status...() methods,
   468   *                          add protocol to worker_score in scoreboard.h,
   469   *                          Add pre_close connection hook and
   470   *                          ap_prep_lingering_close().
   471   * 20120211.56 (2.4.19-dev) Split useragent_host from the conn_rec into
   472   *                          the request_rec, with ap_get_useragent_host()
   473   * 20120211.57 (2.4.19-dev) Add mod_ssl_openssl.h and OpenSSL-specific hooks
   474   * 20120211.58 (2.4.21-dev) Add cgi_var_rules to core_dir_config.
   475   * 20120211.59 (2.4.21-dev) Add ap_getword_conf2[_nc](),
   476   *                          ap_proxy_is_socket_connected() and
   477   *                          extended proxy_worker_shared.
   478   * 20120211.60 (2.4.21-dev) Add dav_get_provider_name.
   479   * 20120211.61 (2.4.21-dev) Add ap_cstr_casecmp[n]() - placeholder of apr_ fns
   480   * 20120211.62 (2.4.24-dev) Add childtags to dav_error.
   481   * 20120211.63 (2.4.24-dev) Add dav_begin_multistatus, dav_send_one_response,
   482   *                          dav_finish_multistatus, dav_send_multistatus,
   483   *                          dav_handle_err, dav_failed_proppatch,
   484   *                          dav_success_proppatch.
   485   * 20120211.64 (2.4.24-dev) Add ap_proxy_check_backend(), and tmp_bb to struct
   486   *                          proxy_conn_rec.
   487   * 20120211.65 (2.4.24-dev) Add ap_check_pipeline().
   488   * 20120211.66 (2.4.24-dev) Rename ap_proxy_check_backend() to
   489   *                          ap_proxy_check_connection().
   490   * 20120211.67 (2.4.24-dev) Add http09_enable, http_conformance, and
   491   *                          http_methods to core_server_config
   492   *                          Add ap_scan_http_field_token(),
   493   *                          ap_scan_http_field_content(),
   494   *                          and ap_scan_vchar_obstext()
   495   *                          Replaced fold boolean with with multiple bit flags
   496   *                          to ap_[r]getline()
   497   * 20120211.68 (2.4.26-dev) Add ap_get_basic_auth_components() and deprecate
   498   *                          ap_get_basic_auth_pw()
   499   * 20120211.69 (2.4.30-dev) Add ap_update_sb_handle()
   500   * 20120211.70 (2.4.30-dev) Add flags field to module_struct and function
   501   *                          ap_get_module_flags()
   502   * 20120211.71 (2.4.30-dev) Add optional proxy_{hook,run}_section_post_config(),
   503   *                          ap_proxy_connection_create_ex() and section_config
   504   *                          to struct proxy_{worker,balancer} in mod_proxy.h,
   505   *                          and optional ssl_engine_set() to mod_ssl.h.
   506   * 20120211.72 (2.4.30-dev) Add NOT_IN_DIR_CONTEXT replacing NOT_IN_DIR_LOC_FILE
   507   *                          semantics
   508   * 20120211.73 (2.4.30-dev) Add failontimeout_set, growth_set and lbmethod_set
   509   *                          to proxy_balancer struct
   510   * 20120211.74 (2.4.30-dev) Add AP_REG_DOLLAR_ENDONLY, ap_regcomp_get_default_cflags
   511   *                          ap_regcomp_set_default_cflags and
   512   *                          ap_regcomp_default_cflag_by_name
   513   * 20120211.75 (2.4.30-dev) Add hostname_ex to proxy_worker_shared
   514   * 20120211.76 (2.4.30-dev) Add CONN_STATE_NUM to enum conn_state_e
   515   * 20120211.77 (2.4.34-dev) Add ap_exists_directive()
   516   * 20120211.78 (2.4.34-dev) Add response_field_size to proxy_worker_shared 
   517   * 20120211.79 (2.4.34-dev) Add AP_GETLINE_NOSPC_EOL flag to http_protocol.h
   518   * 20120211.80 (2.4.35-dev) Add new ap_update_global_status() method and
   519   *                          times field in the global_score structure in
   520   *                          scoreboard.h.
   521   * 20120211.81 (2.4.35-dev) Add new duration field to worker_score struct in
   522   *                          scoreboard.h
   523   * 20120211.82 (2.4.35-dev) Add optional function declaration for
   524   *                          ap_proxy_balancer_get_best_worker to mod_proxy.h.
   525   * 20120211.83 (2.4.35-dev) Add client64 field to worker_score struct
   526   * 20120211.84 (2.4.35-dev) Add ap_no2slash_ex() and merge_slashes to 
   527   *                          core_server_conf.
   528   * 20120211.85 (2.4.40-dev) add ap_set_conn_count().
   529   * 20120211.86 (2.4.40-dev) Add forward_100_continue{,_set} to proxy_dir_conf
   530   * 20120211.87 (2.4.40-dev) Add dav_popen_propdb
   531   * 20120211.88 (2.4.40-dev) Add ap_dir_nofnmatch() and ap_dir_fnmatch().
   532   * 20120211.89 (2.4.42-dev) Add add dns_pool to proxy_conn_pool and define
   533   *                          AP_VOLATILIZE_T.
   534   * 20120211.90 (2.4.42-dev) AP_REG_DEFAULT macro in ap_regex.h
   535   * 20120211.91 (2.4.42-dev) Add ap_is_chunked() in httpd.h
   536   * 20120211.92 (2.4.42-dev) AP_REG_NO_DEFAULT macro in ap_regex.h
   537   * 20120211.93 (2.4.44-dev) Add ap_parse_strict_length()
   538   * 20120211.94 (2.4.47-dev) Add ap_proxy_define_match_worker()
   539   * 20120211.95 (2.4.47-dev) Add proxy check_trans hook
   540   * 20120211.96 (2.4.47-dev) Add ap_get_status_line_ex()
   541   * 20120211.97 (2.4.47-dev) Add read_buf_size member to core_dir_config,
   542   *                          flush_max_threshold and flush_max_pipelined to
   543   *                          core_server_config, and ap_get_read_buf_size().
   544   * 20120211.98 (2.4.47-dev) Add ap_proxy_should_override to mod_proxy.h
   545   * 20120211.99 (2.4.47-dev) Add proxy_tunnel_rec, ap_proxy_tunnel_create()
   546   *                          and ap_proxy_tunnel_run() to proxy_util.
   547   * 20120211.99 (2.4.47-dev) Add ap_proxy_worker_can_upgrade()
   548   * 20120211.100 (2.4.47-dev) Add ap_proxy_prefetch_input(),
   549   *                           ap_proxy_spool_input() and
   550   *                           ap_proxy_read_input().
   551   * 20120211.101 (2.4.47-dev) ETAG_DIGEST in http_core.h. struct etag_rec,
   552   *                           ap_make_etag_ex() and ap_set_etag_fd() in
   553   *                           http_protocol.h. ap_request_bnotes_t,
   554   *                           AP_REQUEST_STRONG_ETAG, AP_REQUEST_GET_BNOTE,
   555   *                           AP_REQUEST_SET_BNOTE and AP_REQUEST_IS_STRONG_ETAG
   556   *                           in httpd.h.
   557   * 20120211.102 (2.4.47-dev) Add ap_ssl_conn_is_ssl()/ap_ssl_var_lookup() and hooks
   558   * 20120211.103 (2.4.47-dev) Add ap_ssl_add_cert_files, ap_ssl_add_fallback_cert_files
   559   *                           and ap_ssl_answer_challenge and hooks.
   560   * 20120211.104 (2.4.47-dev) Move ap_ssl_* into new http_ssl.h header file
   561   * 20120211.105 (2.4.47-dev) Add ap_ssl_ocsp* hooks and functions to http_ssl.h.
   562   * 20120211.106 (2.4.49-dev) Add ap_create_request().
   563   * 20120211.107 (2.4.49-dev) Add ap_parse_request_line() and
   564   *                           ap_check_request_header()
   565   * 20120211.108 (2.4.49-dev) Add ajp_handle_cping_cpong
   566   * 20120211.109 (2.4.49-dev) Add ap_normalize_path(),
   567   *                           pre_translate_name hook and
   568   *                           Add map_encoded_one and map_encoded_all bits to
   569   *                           proxy_server_conf.
   570   * 20120211.110 (2.4.49-dev) Add hook child_stopping to get informed that a child
   571   *                           is being shut down.
   572   * 20120211.111 (2.4.49-dev) Add dav_get_provider(), dav_open_lockdb(),
   573   *                           dav_close_lockdb() and dav_get_resource() to
   574   *                           mod_dav.h.
   575   * 20120211.112 (2.4.49-dev) Add deliver_report and gather_reports hooks.
   576   * 20120211.113 (2.4.49-dev) Add method_precondition hook.
   577   * 20120211.114 (2.4.49-dev) Add optional balancer_manage function.
   578   * 20120211.115 (2.4.49-dev) Add ap_proxy_get_worker_ex() and
   579   *                           ap_proxy_define_worker_ex() to mod_proxy.h
   580   * 20120211.116 (2.4.49-dev) add conn_rec->outgoing and ap_ssl_bind_outgoing()
   581   * 20120211.117 (2.4.50-dev) Add ap_pre_connection
   582   * 20120211.118 (2.4.51-dev) Add ap_unescape_url_ex() and deprecate
   583   *                           AP_NORMALIZE_DROP_PARAMETERS
   584   * 20120211.119 (2.4.51-dev) Add dav_validate_root_ns(), dav_find_child_ns(),
   585   *                           dav_find_next_ns(), dav_find_attr_ns() and
   586   *                           dav_find_attr().
   587   * 20120211.120 (2.4.51-dev) Add dav_liveprop_elem structure and
   588   *                           dav_get_liveprop_element().
   589   * 20120211.121 (2.4.51-dev) Add ap_post_read_request()
   590   * 20120211.122 (2.4.51-dev) Add ap_thread_create(), ap_thread_main_create()
   591   *                           and ap_thread_current()
   592   * 20120211.123 (2.4.51-dev) Added ap_pcre_version_string(), AP_REG_PCRE_COMPILED
   593   *                           and AP_REG_PCRE_LOADED to ap_regex.h.
   594   * 20120211.124 (2.4.51-dev) Add name_ex to struct proxy_worker_shared
   595   * 20120211.125 (2.4.55-dev) Export mod_http2.h as public header
   596   * 20120211.126 (2.4.55-dev) Add additional hcmethod_t enums and PROXY_WORKER_IS_ERROR
   597   * 20120211.127 (2.4.56-dev) Add ap_proxy_canonenc_ex
   598   * 20120211.128 (2.4.55-dev) Add AP_CTIME_OPTION_GMTOFF to util_time.h
   599   * 20120211.129 (2.4.58-dev) Add ap_get_pollfd_from_conn()
   600   */
   601  
   602  #define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */
   603  
   604  #ifndef MODULE_MAGIC_NUMBER_MAJOR
   605  #define MODULE_MAGIC_NUMBER_MAJOR 20120211
   606  #endif
   607  #define MODULE_MAGIC_NUMBER_MINOR 129                 /* 0...n */
   608  
   609  /**
   610   * Determine if the server's current MODULE_MAGIC_NUMBER is at least a
   611   * specified value.
   612   *
   613   * Useful for testing for features.
   614   * For example, suppose you wish to use the apr_table_overlap
   615   *    function.  You can do this:
   616   *
   617   * \code
   618   * #if AP_MODULE_MAGIC_AT_LEAST(19980812,2)
   619   *     ... use apr_table_overlap()
   620   * #else
   621   *     ... alternative code which doesn't use apr_table_overlap()
   622   * #endif
   623   * \endcode
   624   *
   625   * @param major The major module magic number
   626   * @param minor The minor module magic number
   627   * @def AP_MODULE_MAGIC_AT_LEAST(int major, int minor)
   628   */
   629  #define AP_MODULE_MAGIC_AT_LEAST(major,minor)           \
   630      ((major) < MODULE_MAGIC_NUMBER_MAJOR                \
   631       || ((major) == MODULE_MAGIC_NUMBER_MAJOR           \
   632           && (minor) <= MODULE_MAGIC_NUMBER_MINOR))
   633  
   634  /** @deprecated present for backwards compatibility */
   635  #define MODULE_MAGIC_NUMBER MODULE_MAGIC_NUMBER_MAJOR
   636  #define MODULE_MAGIC_AT_LEAST old_broken_macro_we_hope_you_are_not_using
   637  
   638  #endif /* !APACHE_AP_MMN_H */
   639  /** @} */