Revert "Fixed incorrect return code handling in ssl3_final_finish_mac"
authorMatt Caswell <matt@openssl.org>
Fri, 13 Jun 2014 14:55:57 +0000 (15:55 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 13 Jun 2014 14:55:57 +0000 (15:55 +0100)
This reverts commit e05282f8b0b6c6ea063267eb86c4d6b4702c41a1.

Missing attribution.

ssl/s3_enc.c

index c44cc9298ab638a6039bfb8c2074f8c208622cab..6bc08121622025af6ba46fabaa99467592d9895f 100644 (file)
@@ -631,18 +631,10 @@ int ssl3_cert_verify_mac(SSL *s, int md_nid, unsigned char *p)
 int ssl3_final_finish_mac(SSL *s, 
             const char *sender, int len, unsigned char *p)
        {
-       int ret, sha1len;
+       int ret;
        ret=ssl3_handshake_mac(s,NID_md5,sender,len,p);
-       if(ret == 0)
-               return 0;
-
        p+=ret;
-
-       sha1len=ssl3_handshake_mac(s,NID_sha1,sender,len,p);
-       if(sha1len == 0)
-               return 0;
-
-       ret+=sha1len;
+       ret+=ssl3_handshake_mac(s,NID_sha1,sender,len,p);
        return(ret);
        }
 static int ssl3_handshake_mac(SSL *s, int md_nid,