Return-Path: Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 53976 invoked by uid 500); 30 Apr 2002 17:12:18 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Apache HTTPD Bugs Notification List" Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 53965 invoked from network); 30 Apr 2002 17:12:18 -0000 Date: 30 Apr 2002 17:12:22 -0000 Message-ID: <20020430171222.23246.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: bugs@httpd.apache.org Cc: Subject: DO NOT REPLY [Bug 8572] - This URL is too long for mod_ssl to have as the name of a website X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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