ap_mmn.h 35 KB

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