From: Doug MacEachern Date: Sun, 10 Mar 2002 00:29:49 +0000 (+0000) Subject: no need to call SSL_clear() after SSL_new() X-Git-Tag: CHANGES~156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05d83f393a516b974b3ba3624b74b332623ffd5b;p=apache no need to call SSL_clear() after SSL_new() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93824 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/mod_ssl.c b/modules/ssl/mod_ssl.c index 13209b30f3..57ac2a763b 100644 --- a/modules/ssl/mod_ssl.c +++ b/modules/ssl/mod_ssl.c @@ -264,7 +264,7 @@ static int ssl_hook_pre_connection(conn_rec *c, void *csd) c->aborted = 1; return DECLINED; /* XXX */ } - SSL_clear(ssl); + cpVHostMD5 = ap_md5_binary(c->pool, sc->szVHostID, sc->nVHostID_length); if (!SSL_set_session_id_context(ssl, (unsigned char *)cpVHostMD5, MD5_DIGESTSIZE*2)) { diff --git a/modules/ssl/ssl_engine_ext.c b/modules/ssl/ssl_engine_ext.c index 76aa63ff58..8a1bfbab3d 100644 --- a/modules/ssl/ssl_engine_ext.c +++ b/modules/ssl/ssl_engine_ext.c @@ -322,7 +322,7 @@ static char *ssl_ext_mp_new_connection(request_rec *r, BUFF *fb, char *peer) ap_ctx_set(fb->ctx, "ssl", NULL); return errmsg; } - SSL_clear(ssl); + cpVHostMD5 = ap_md5(r->pool, (unsigned char *)cpVHostID); if (!SSL_set_session_id_context(ssl, (unsigned char *)cpVHostMD5, strlen(cpVHostMD5))) { errmsg = ap_psprintf(r->pool, "Unable to set session id context to `%s': peer %s: %s",