blob: 03e92b1823e671880026523c3b113432ab8b7adf [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 8b0ed668703021224ed6a58d16b78fd63685dd1c Mon Sep 17 00:00:00 2001
2From: xhtan <xianhutan@asrmicro.com>
3Date: Tue, 28 Mar 2023 03:02:39 -0400
4Subject: [PATCH] fix sha256 build error
5
6---
7 src/sys-crypto-md.h | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10diff --git a/src/sys-crypto-md.h b/src/sys-crypto-md.h
11index db83548..9b68bd4 100644
12--- a/src/sys-crypto-md.h
13+++ b/src/sys-crypto-md.h
14@@ -347,7 +347,7 @@ MD5_Update(MD5_CTX *ctx, const void *data, size_t length)
15 #undef SHA1_Final
16 #undef SHA1_Update
17 #define USE_LIB_CRYPTO_SHA1
18-/*typedef wc_Sha SHA_CTX;*/
19+typedef wc_Sha SHA_CTX;
20 static inline int
21 SHA1_Init(SHA_CTX *ctx)
22 {
23@@ -373,7 +373,7 @@ SHA1_Update(SHA_CTX *ctx, const void *data, size_t length)
24 #undef SHA256_Final
25 #undef SHA256_Update
26 #define USE_LIB_CRYPTO_SHA256
27-/*typedef wc_Sha256 SHA256_CTX;*/
28+typedef wc_Sha256 SHA256_CTX;
29 static inline int
30 SHA256_Init(SHA256_CTX *ctx)
31 {
32--
332.17.1
34