MCPcopy Create free account
hub / github.com/apache/httpd / set_banner

Function set_banner

server/core.c:3636–3662  ·  view source on GitHub ↗

* This routine adds the real server base identity to the banner string, * and then locks out changes until the next reconfig. */

Source from the content-addressed store, hash-verified

3634 * and then locks out changes until the next reconfig.
3635 */
3636static void set_banner(apr_pool_t *pconf)
3637{
3638 if (ap_server_tokens == SrvTk_PRODUCT_ONLY) {
3639 ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT);
3640 }
3641 else if (ap_server_tokens == SrvTk_MINIMAL) {
3642 ap_add_version_component(pconf, AP_SERVER_BASEVERSION);
3643 }
3644 else if (ap_server_tokens == SrvTk_MINOR) {
3645 ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT "/" AP_SERVER_MINORREVISION);
3646 }
3647 else if (ap_server_tokens == SrvTk_MAJOR) {
3648 ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT "/" AP_SERVER_MAJORVERSION);
3649 }
3650 else {
3651 ap_add_version_component(pconf, AP_SERVER_BASEVERSION " (" PLATFORM ")");
3652 }
3653
3654 /*
3655 * Lock the server_banner string if we're not displaying
3656 * the full set of tokens
3657 */
3658 if (ap_server_tokens != SrvTk_FULL) {
3659 banner_locked++;
3660 }
3661 server_description = AP_SERVER_BASEVERSION " (" PLATFORM ")";
3662}
3663
3664static const char *set_serv_tokens(cmd_parms *cmd, void *dummy,
3665 const char *arg)

Callers 1

core_post_configFunction · 0.85

Calls 1

ap_add_version_componentFunction · 0.85

Tested by

no test coverage detected