commit | c72ac7c3ef9b3012131e8a4a5d67aa8123364369 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Dec 17 10:17:08 2013 +0100 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Dec 17 10:18:25 2013 +0100 |
tree | e896d186bdcdb48408dacba754404f7caef57efb | |
parent | e1b665e1aab4acf04b3b3e6fd577602dc99d48b9 [diff] [blame] |
Fix SSLv3 handling of SHA-384 suites Fixes memory corruption, introduced in a5bdfcd (Relax some SHA2 ciphersuite's version requirements)
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index c1e3d37..a903b3e 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -941,6 +941,8 @@ padlen = 40; else if( md_type == POLARSSL_MD_SHA256 ) padlen = 32; + else if( md_type == POLARSSL_MD_SHA384 ) + padlen = 16; memcpy( header, ctr, 8 ); header[ 8] = (unsigned char) type;