]> git.sur5r.net Git - openldap/blobdiff - contrib/slapd-modules/passwd/sha2/sha2.h
ITS#8294 avoid symbol clash with other crypto libs
[openldap] / contrib / slapd-modules / passwd / sha2 / sha2.h
index 6e5323595695d5e081afd6cc1b1af934717f4b3f..008c70b339afcdc3ccff0393e6fbc11a221fb324 100644 (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