summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/ecdsa/ecdsatest.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/regress/lib/libcrypto/ecdsa/ecdsatest.c b/src/regress/lib/libcrypto/ecdsa/ecdsatest.c
index 6d6797ab39..683260aeee 100644
--- a/src/regress/lib/libcrypto/ecdsa/ecdsatest.c
+++ b/src/regress/lib/libcrypto/ecdsa/ecdsatest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecdsatest.c,v 1.8 2022/01/12 09:02:34 tb Exp $ */ 1/* $OpenBSD: ecdsatest.c,v 1.9 2022/03/31 09:36:09 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -103,9 +103,12 @@ x9_62_test_internal(BIO *out, int nid, const char *r_in, const char *s_in)
103 if ((md_ctx = EVP_MD_CTX_new()) == NULL) 103 if ((md_ctx = EVP_MD_CTX_new()) == NULL)
104 goto x962_int_err; 104 goto x962_int_err;
105 /* get the message digest */ 105 /* get the message digest */
106 EVP_DigestInit(md_ctx, EVP_sha1()); 106 if (!EVP_DigestInit(md_ctx, EVP_sha1()))
107 EVP_DigestUpdate(md_ctx, (const void*)message, 3); 107 goto x962_int_err;
108 EVP_DigestFinal(md_ctx, digest, &dgst_len); 108 if (!EVP_DigestUpdate(md_ctx, (const void*)message, 3))
109 goto x962_int_err;
110 if (!EVP_DigestFinal(md_ctx, digest, &dgst_len))
111 goto x962_int_err;
109 112
110 BIO_printf(out, "testing %s: ", OBJ_nid2sn(nid)); 113 BIO_printf(out, "testing %s: ", OBJ_nid2sn(nid));
111 /* create the key */ 114 /* create the key */