]> granicus.if.org Git - apache/commitdiff
minor performance enhancement: no need to use md5 of VHostID for the
authorDoug MacEachern <dougm@apache.org>
Tue, 12 Mar 2002 16:55:56 +0000 (16:55 +0000)
committerDoug MacEachern <dougm@apache.org>
Tue, 12 Mar 2002 16:55:56 +0000 (16:55 +0000)
session id, just use the VHostID itself.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93861 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/mod_ssl.c

index 9cd0d27c1f75c646a94576c525ea8e47f61937d1..6466d35b31857df5afe628a76ef33934dd935183 100644 (file)
@@ -230,7 +230,6 @@ static int ssl_hook_pre_connection(conn_rec *c, void *csd)
 {
     SSLSrvConfigRec *sc = mySrvConfig(c->base_server);
     SSL *ssl;
-    char *vhost_md5;
     SSLConnRec *sslconn;
 
     /*
@@ -276,13 +275,12 @@ static int ssl_hook_pre_connection(conn_rec *c, void *csd)
         return DECLINED; /* XXX */
     }
 
-    vhost_md5 = ap_md5_binary(c->pool, sc->szVHostID, sc->nVHostID_length);
-
-    if (!SSL_set_session_id_context(ssl, (unsigned char *)vhost_md5,
-                                    MD5_DIGESTSIZE*2))
+    if (!SSL_set_session_id_context(ssl,
+                                    (unsigned char *)sc->szVHostID,
+                                    sc->nVHostID_length))
     {
         ssl_log(c->base_server, SSL_LOG_ERROR|SSL_ADD_SSLERR,
-                "Unable to set session id context to `%s'", vhost_md5);
+                "Unable to set session id context to `%s'", sc->szVHostID);
 
         c->aborted = 1;