Skip to content

Commit cbaf9c1

Browse files
committed
cryptocb: don't declare wc_Sha256Trasnform under ONLY_SHA256
1 parent 6c2040a commit cbaf9c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wolfssl/wolfcrypt/sha256.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ WOLFSSL_API int wc_Sha256FinalRaw(wc_Sha256* sha256, byte* hash);
269269
WOLFSSL_API int wc_Sha256Final(wc_Sha256* sha256, byte* hash);
270270
WOLFSSL_API void wc_Sha256Free(wc_Sha256* sha256);
271271
#if (defined(OPENSSL_EXTRA) || defined(HAVE_CURL)) && \
272-
!defined(WOLFSSL_KCAPI_HASH) && !defined(WOLFSSL_AFALG_HASH)
272+
!defined(WOLFSSL_KCAPI_HASH) && !defined(WOLFSSL_AFALG_HASH) && \
273+
!defined(WOLF_CRYPTO_CB_ONLY_SHA256)
273274
WOLFSSL_API int wc_Sha256Transform(wc_Sha256* sha, const unsigned char* data);
274275
#endif
275276
#if defined(WOLFSSL_HAVE_LMS) && !defined(WOLFSSL_LMS_FULL_HASH)

0 commit comments

Comments
 (0)