From: Howard Chu Date: Thu, 29 Oct 2015 20:19:00 +0000 (+0000) Subject: ITS#8294 avoid symbol clash with other crypto libs X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=01c27e134253b2dd3442b7a1844754737c9a8166;p=openldap ITS#8294 avoid symbol clash with other crypto libs --- diff --git a/contrib/slapd-modules/passwd/sha2/sha2.h b/contrib/slapd-modules/passwd/sha2/sha2.h index 6e53235956..008c70b339 100644 --- a/contrib/slapd-modules/passwd/sha2/sha2.h +++ b/contrib/slapd-modules/passwd/sha2/sha2.h @@ -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