Browse Source

[core] check ifdef WOLFSSL_SHA512 for SHA512 avail

master
Glenn Strauss 1 month ago
parent
commit
fdf45433c8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/sys-crypto-md.h

+ 2
- 0
src/sys-crypto-md.h View File

@ -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