Skip to content

Commit 6fd8f66

Browse files
committed
Fix ECDSA-related compilation errors.
1 parent 418e6bb commit 6fd8f66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/we_internal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ static int we_digests(ENGINE *e, const EVP_MD **digest, const int **nids,
398398
*digest = we_sha3_512_md;
399399
break;
400400
#endif
401-
#if defined(WE_HAVE_ECC) && defined(WE_HAVE_SHA1)
401+
#if defined(WE_HAVE_ECDSA) && defined(WE_HAVE_SHA1)
402402
case NID_ecdsa_with_SHA1:
403403
*digest = we_ecdsa_sha1_md;
404404
break;
@@ -1044,7 +1044,7 @@ static int wolfengine_destroy(ENGINE *e)
10441044
EVP_MD_meth_free(we_sha3_512_md);
10451045
we_sha3_512_md = NULL;
10461046
#endif
1047-
#if defined(WE_HAVE_ECC) && defined(WE_HAVE_SHA1)
1047+
#if defined(WE_HAVE_ECDSA) && defined(WE_HAVE_SHA1)
10481048
EVP_MD_meth_free(we_ecdsa_sha1_md);
10491049
we_ecdsa_sha1_md = NULL;
10501050
#endif

0 commit comments

Comments
 (0)