Update ssl code to support digests other than MD5+SHA1 in handshake.
[openssl.git] / ssl / ssl3.h
index 71ba3068b1387590929f1b34e92f25dd1e25bc72..0543cb287ebc5a7b41875069ce310c114cbb669f 100644 (file)
@@ -419,9 +419,11 @@ typedef struct ssl3_state_st
        const unsigned char *wpend_buf;
 
        /* used during startup, digest all incoming/outgoing packets */
-       EVP_MD_CTX finish_dgst1;
-       EVP_MD_CTX finish_dgst2;
-
+       BIO *handshake_buffer;
+       /* When set of handshake digests is determined, buffer is hashed
+        * and freed and MD_CTX-es for all required digests are stored in
+        * this array */
+       EVP_MD_CTX **handshake_dgst;
        /* this is set whenerver we see a change_cipher_spec message
         * come in when we are not looking for one */
        int change_cipher_spec;