Initial incomplete TLS v1.2 support. New ciphersuites added, new version
[openssl.git] / ssl / s3_enc.c
index 58386e1ba03cac59d74b1e75c9d84888c51b0a54..ac5ae40a7e5f7207c0be05b3b0bbdf6d114c10fa 100644 (file)
@@ -610,7 +610,7 @@ int ssl3_digest_cached_records(SSL *s)
        /* Loop through bitso of algorithm2 field and create MD_CTX-es */
        for (i=0;ssl_get_handshake_digest(i,&mask,&md); i++) 
                {
-               if ((mask & s->s3->tmp.new_cipher->algorithm2) && md) 
+               if ((mask & ssl_get_algorithm2(s)) && md) 
                        {
                        s->s3->handshake_dgst[i]=EVP_MD_CTX_create();
                        EVP_DigestInit_ex(s->s3->handshake_dgst[i],md,NULL);