blob: 03e92b1823e671880026523c3b113432ab8b7adf [file] [log] [blame]
From 8b0ed668703021224ed6a58d16b78fd63685dd1c Mon Sep 17 00:00:00 2001
From: xhtan <xianhutan@asrmicro.com>
Date: Tue, 28 Mar 2023 03:02:39 -0400
Subject: [PATCH] fix sha256 build error
---
src/sys-crypto-md.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sys-crypto-md.h b/src/sys-crypto-md.h
index db83548..9b68bd4 100644
--- a/src/sys-crypto-md.h
+++ b/src/sys-crypto-md.h
@@ -347,7 +347,7 @@ MD5_Update(MD5_CTX *ctx, const void *data, size_t length)
#undef SHA1_Final
#undef SHA1_Update
#define USE_LIB_CRYPTO_SHA1
-/*typedef wc_Sha SHA_CTX;*/
+typedef wc_Sha SHA_CTX;
static inline int
SHA1_Init(SHA_CTX *ctx)
{
@@ -373,7 +373,7 @@ SHA1_Update(SHA_CTX *ctx, const void *data, size_t length)
#undef SHA256_Final
#undef SHA256_Update
#define USE_LIB_CRYPTO_SHA256
-/*typedef wc_Sha256 SHA256_CTX;*/
+typedef wc_Sha256 SHA256_CTX;
static inline int
SHA256_Init(SHA256_CTX *ctx)
{
--
2.17.1