diff options
author | Ben Laurie <ben@openssl.org> | 2011-11-14 00:36:10 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2011-11-14 00:36:10 +0000 |
commit | ae551760917614647ad6fbacec6e4c1b495a94cf (patch) | |
tree | 34a1985c9beb2aa0a43904de8e733796c40df48c /crypto/ecdsa/ecdsatest.c | |
parent | fe0686483621d420705e881cd9187788a0691583 (diff) |
Fix some warnings caused by __owur. Temporarily (I hope) remove the more
aspirational __owur annotations.
Diffstat (limited to 'crypto/ecdsa/ecdsatest.c')
-rw-r--r-- | crypto/ecdsa/ecdsatest.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/ecdsa/ecdsatest.c b/crypto/ecdsa/ecdsatest.c index c5b6ed2b87..42852ce6e8 100644 --- a/crypto/ecdsa/ecdsatest.c +++ b/crypto/ecdsa/ecdsatest.c @@ -196,9 +196,10 @@ int x9_62_test_internal(BIO *out, int nid, const char *r_in, const char *s_in) EVP_MD_CTX_init(&md_ctx); /* get the message digest */ - EVP_DigestInit(&md_ctx, EVP_ecdsa()); - EVP_DigestUpdate(&md_ctx, (const void*)message, 3); - EVP_DigestFinal(&md_ctx, digest, &dgst_len); + if (!EVP_DigestInit(&md_ctx, EVP_ecdsa()) + || !EVP_DigestUpdate(&md_ctx, (const void*)message, 3) + || !EVP_DigestFinal(&md_ctx, digest, &dgst_len)) + goto x962_int_err; BIO_printf(out, "testing %s: ", OBJ_nid2sn(nid)); /* create the key */ |