提交 043fd646 编写于 作者: M Matt Caswell

Revert "Fixed incorrect return code handling in ssl3_final_finish_mac"

This reverts commit 2f1dffa8.

Missing attribution.
上级 a09e4d24
......@@ -663,18 +663,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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册