mirror of
https://github.com/apache/httpd.git
synced 2025-07-30 20:03:10 +03:00
calculate VHostID length at startup rather than request time.
change ap_md5() call in ssl_hook_pre_connection() to ap_md5_binary() that uses the precalculated sc->nVHostID_length to avoid a strlen() call. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92216 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -477,6 +477,7 @@ void ssl_init_ConfigureServer(server_rec *s, apr_pool_t *p, SSLSrvConfigRec *sc)
|
||||
* Create the server host:port string because we need it a lot
|
||||
*/
|
||||
sc->szVHostID = cpVHostID = ssl_util_vhostid(p, s);
|
||||
sc->nVHostID_length = strlen(sc->szVHostID);
|
||||
|
||||
/*
|
||||
* Now check for important parameters and the
|
||||
|
Reference in New Issue
Block a user