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

Function ap_add_version_component

server/core.c:3606–3630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3604}
3605
3606AP_DECLARE(void) ap_add_version_component(apr_pool_t *pconf, const char *component)
3607{
3608 if (! banner_locked) {
3609 /*
3610 * If the version string is null, register our cleanup to reset the
3611 * pointer on pool destruction. We also know that, if NULL,
3612 * we are adding the original SERVER_BASEVERSION string.
3613 */
3614 if (server_banner == NULL) {
3615 apr_pool_cleanup_register(pconf, NULL, reset_banner,
3616 apr_pool_cleanup_null);
3617 server_banner = apr_pstrdup(pconf, component);
3618 }
3619 else {
3620 /*
3621 * Tack the given component identifier to the end of
3622 * the existing string.
3623 */
3624 server_banner = apr_pstrcat(pconf, server_banner, " ",
3625 component, NULL);
3626 }
3627 }
3628 server_description = apr_pstrcat(pconf, server_description, " ",
3629 component, NULL);
3630}
3631
3632/*
3633 * This routine adds the real server base identity to the banner string,

Callers 2

set_bannerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected