httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8572] - This URL is too long for mod_ssl to have as the name of a website
Date Tue, 30 Apr 2002 17:12:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8572>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8572

This URL is too long for mod_ssl to have as the name of a website





------- Additional Comments From jwoolley@apache.org  2002-04-30 17:12 -------
===================================================================  
RCS file: /home/cvspublic/httpd-2.0/modules/ssl/mod_ssl.c,v  
retrieving revision 1.63  
retrieving revision 1.64  
diff -u -r1.63 -r1.64  
--- httpd-2.0/modules/ssl/mod_ssl.c	2002/04/07 03:37:35	1.63  
+++ httpd-2.0/modules/ssl/mod_ssl.c	2002/04/30 17:10:12	1.64  
@@ -279,6 +279,7 @@  
     SSLSrvConfigRec *sc = mySrvConfig(c->base_server);  
     SSL *ssl;  
     SSLConnRec *sslconn = myConnConfig(c);  
+    char *vhost_md5;  
     modssl_ctx_t *mctx;  
  
     /*  
@@ -334,12 +335,13 @@  
         return DECLINED; /* XXX */  
     }  
  
-    if (!SSL_set_session_id_context(ssl,  
-                                    (unsigned char *)sc->vhost_id,  
-                                    sc->vhost_id_len))  
+    vhost_md5 = ap_md5_binary(c->pool, sc->vhost_id, sc->vhost_id_len);  
+  
+    if (!SSL_set_session_id_context(ssl, (unsigned char *)vhost_md5,  
+                                    MD5_DIGESTSIZE*2))  
     {  
         ssl_log(c->base_server, SSL_LOG_ERROR|SSL_ADD_SSLERR,  
-                "Unable to set session id context to `%s'", sc->vhost_id);  
+                "Unable to set session id context to `%s'", vhost_md5);  
  
         c->aborted = 1;

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message