Browse Source

[core] check ifdef WOLFSSL_SHA512 for SHA512 avail

master
Glenn Strauss 4 months ago
parent
commit
fdf45433c8
  1. 2
      src/sys-crypto-md.h

2
src/sys-crypto-md.h

@ -391,6 +391,7 @@ SHA256_Update(SHA256_CTX *ctx, const void *data, size_t length)
#endif
#ifndef NO_SHA512
#ifdef WOLFSSL_SHA512
#include <wolfssl/wolfcrypt/sha512.h>
#include <wolfssl/openssl/sha.h>
#undef SHA512_Init
@ -415,6 +416,7 @@ SHA512_Update(SHA512_CTX *ctx, const void *data, size_t length)
return 1;
}
#endif
#endif
#elif defined(USE_OPENSSL_CRYPTO)

Loading…
Cancel
Save