PR: 2089
authorDr. Stephen Henson <steve@openssl.org>
Wed, 4 Nov 2009 12:58:54 +0000 (12:58 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 4 Nov 2009 12:58:54 +0000 (12:58 +0000)
Submitted by: David Woodhouse <dwmw2@infradead.org>
Approved by: steve@openssl.org

Use EVP_MD_size() in OpenSSL 0.9.8.

ssl/d1_both.c

index b7ead8ad228eb18f363c61d8a19c081a67432b42..1d271c1bfaf72bed80c3b96a8ecbc974f5c3fd6b 100644 (file)
@@ -226,7 +226,7 @@ int dtls1_do_write(SSL *s, int type)
                        (int)s->d1->w_msg_hdr.msg_len + DTLS1_HM_HEADER_LENGTH);
 
        if (s->write_hash)
-               mac_size = EVP_MD_CTX_size(s->write_hash);
+               mac_size = EVP_MD_size(s->write_hash);
        else
                mac_size = 0;