Zero the premaster secret after deriving the master secret in DH
authorDr. Stephen Henson <steve@openssl.org>
Thu, 25 Jan 2001 13:15:01 +0000 (13:15 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 25 Jan 2001 13:15:01 +0000 (13:15 +0000)
ciphersuites.

CHANGES
ssl/s3_srvr.c

diff --git a/CHANGES b/CHANGES
index 52409a9..31f9a6e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,10 @@
 
  Changes between 0.9.6 and 0.9.7  [xx XXX 2000]
 
+  *) Zero the premaster secret after deriving the master secret in
+     DH ciphersuites.
+     [Steve Henson]
+
   *) In PKCS7_set_type() initialise content_type in PKCS7_ENC_CONTENT
      to data. This was previously part of the PKCS7 ASN1 code. This
      was causing problems with OpenSSL created PKCS#12 and PKCS#7 structures.
index 4704dfb..54e0a03 100644 (file)
@@ -1425,6 +1425,7 @@ static int ssl3_get_client_key_exchange(SSL *s)
                s->session->master_key_length=
                        s->method->ssl3_enc->generate_master_secret(s,
                                s->session->master_key,p,i);
+               memset(p,0,i);
                }
        else
 #endif