[core] check ifdef WOLFSSL_SHA512 for SHA512 avail
This commit is contained in:
parent
2d94d56fe5
commit
fdf45433c8
|
@ -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…
Reference in New Issue