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 *) 400 401const 402 MODULE_MAGIC_COOKIE = $41503234; {* "AP24" *} 403 404 MODULE_MAGIC_NUMBER_MAJOR = 20120211; 405 406 MODULE_MAGIC_NUMBER_MINOR = 6; {* 0...n *} 407 408{** 409 * Determine if the server's current MODULE_MAGIC_NUMBER is at least a 410 * specified value. 411 * 412 * Useful for testing for features. 413 * For example, suppose you wish to use the apr_table_overlap 414 * function. You can do this: 415 * 416 * \code 417 * #if AP_MODULE_MAGIC_AT_LEAST(19980812,2) 418 * ... use apr_table_overlap() 419 * #else 420 * ... alternative code which doesn't use apr_table_overlap() 421 * #endif 422 * \endcode 423 * 424 * @param major The major module magic number 425 * @param minor The minor module magic number 426 * @def AP_MODULE_MAGIC_AT_LEAST(int major, int minor) 427 *} 428//#define AP_MODULE_MAGIC_AT_LEAST(major,minor) \ 429// ((major) < MODULE_MAGIC_NUMBER_MAJOR \ 430// || ((major) == MODULE_MAGIC_NUMBER_MAJOR \ 431// && (minor) <= MODULE_MAGIC_NUMBER_MINOR)) 432 433{** @deprecated present for backwards compatibility *} 434 MODULE_MAGIC_NUMBER = MODULE_MAGIC_NUMBER_MAJOR; 435//#define MODULE_MAGIC_AT_LEAST old_broken_macro_we_hope_you_are_not_using 436 437//#endif /* !APACHE_AP_MMN_H */ 438(** @} *) 439