提交 0850f118 编写于 作者: B Ben Laurie

Fix ignored return value warnings.

Not sure why I am getting these now and not before.
上级 975dfb1c
...@@ -1573,7 +1573,7 @@ engine_cipher_check: ...@@ -1573,7 +1573,7 @@ engine_cipher_check:
(unsigned int)ullLeft); (unsigned int)ullLeft);
} }
siglen = 4; siglen = 4;
EVP_DigestSignFinal(&mctx, bTest, &siglen); OPENSSL_assert(EVP_DigestSignFinal(&mctx, bTest, &siglen));
EVP_MD_CTX_cleanup(&mctx); EVP_MD_CTX_cleanup(&mctx);
enlu = (int)tcs[t].ullLen; enlu = (int)tcs[t].ullLen;
enlf = 0; enlf = 0;
......
...@@ -462,6 +462,7 @@ void ssl3_cbc_digest_record( ...@@ -462,6 +462,7 @@ void ssl3_cbc_digest_record(
* the hash. */ * the hash. */
unsigned md_length_size = 8; unsigned md_length_size = 8;
char length_is_big_endian = 1; char length_is_big_endian = 1;
int ret;
/* This is a, hopefully redundant, check that allows us to forget about /* This is a, hopefully redundant, check that allows us to forget about
* many possible overflows later in this function. */ * many possible overflows later in this function. */
...@@ -733,8 +734,8 @@ void ssl3_cbc_digest_record( ...@@ -733,8 +734,8 @@ void ssl3_cbc_digest_record(
EVP_DigestUpdate(&md_ctx, hmac_pad, md_block_size); EVP_DigestUpdate(&md_ctx, hmac_pad, md_block_size);
EVP_DigestUpdate(&md_ctx, mac_out, md_size); EVP_DigestUpdate(&md_ctx, mac_out, md_size);
} }
EVP_DigestFinal(&md_ctx, md_out, &md_out_size_u); ret = EVP_DigestFinal(&md_ctx, md_out, &md_out_size_u);
if (md_out_size) if (ret && md_out_size)
*md_out_size = md_out_size_u; *md_out_size = md_out_size_u;
EVP_MD_CTX_cleanup(&md_ctx); EVP_MD_CTX_cleanup(&md_ctx);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册