ITS#8294 avoid symbol clash with other crypto libs

This commit is contained in:
Howard Chu 2015-10-29 20:19:00 +00:00
parent 597ce61000
commit 01c27e1342

View File

@ -144,6 +144,24 @@ typedef SHA512_CTX SHA384_CTX;
/*** SHA-256/384/512 Function Prototypes ******************************/
#define SHA256_Init pw_SHA256_Init
#define SHA256_Update pw_SHA256_Update
#define SHA256_Final pw_SHA256_Final
#define SHA256_End pw_SHA256_End
#define SHA256_Data pw_SHA256_Data
#define SHA384_Init pw_SHA384_Init
#define SHA384_Update pw_SHA384_Update
#define SHA384_Final pw_SHA384_Final
#define SHA384_End pw_SHA384_End
#define SHA384_Data pw_SHA384_Data
#define SHA512_Init pw_SHA512_Init
#define SHA512_Update pw_SHA512_Update
#define SHA512_Final pw_SHA512_Final
#define SHA512_End pw_SHA512_End
#define SHA512_Data pw_SHA512_Data
#ifndef NOPROTO
#ifdef SHA2_USE_INTTYPES_H