aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd/sha.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libmd/sha.h')
-rw-r--r--lib/libmd/sha.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/libmd/sha.h b/lib/libmd/sha.h
index 502f1ae32c6f..c608c5ba85b3 100644
--- a/lib/libmd/sha.h
+++ b/lib/libmd/sha.h
@@ -82,29 +82,69 @@ __BEGIN_DECLS
/* Ensure libmd symbols do not clash with libcrypto */
+#ifndef SHA_Init
#define SHA_Init _libmd_SHA_Init
+#endif
+#ifndef SHA_Update
#define SHA_Update _libmd_SHA_Update
+#endif
+#ifndef SHA_Final
#define SHA_Final _libmd_SHA_Final
+#endif
+#ifndef SHA_End
#define SHA_End _libmd_SHA_End
+#endif
+#ifndef SHA_File
#define SHA_File _libmd_SHA_File
+#endif
+#ifndef SHA_FileChunk
#define SHA_FileChunk _libmd_SHA_FileChunk
+#endif
+#ifndef SHA_Data
#define SHA_Data _libmd_SHA_Data
+#endif
+#ifndef SHA_Transform
#define SHA_Transform _libmd_SHA_Transform
+#endif
+#ifndef SHA_version
#define SHA_version _libmd_SHA_version
+#endif
+#ifndef sha_block
#define sha_block _libmd_sha_block
+#endif
+#ifndef SHA1_Init
#define SHA1_Init _libmd_SHA1_Init
+#endif
+#ifndef SHA1_Update
#define SHA1_Update _libmd_SHA1_Update
+#endif
+#ifndef SHA1_Final
#define SHA1_Final _libmd_SHA1_Final
+#endif
+#ifndef SHA1_End
#define SHA1_End _libmd_SHA1_End
+#endif
+#ifndef SHA1_File
#define SHA1_File _libmd_SHA1_File
+#endif
+#ifndef SHA1_FileChunk
#define SHA1_FileChunk _libmd_SHA1_FileChunk
+#endif
+#ifndef SHA1_Data
#define SHA1_Data _libmd_SHA1_Data
+#endif
+#ifndef SHA1_Transform
#define SHA1_Transform _libmd_SHA1_Transform
+#endif
+#ifndef SHA1_version
#define SHA1_version _libmd_SHA1_version
+#endif
+#ifndef sha1_block
#define sha1_block _libmd_sha1_block
+#endif
void SHA_Init(SHA_CTX *c);
void SHA_Update(SHA_CTX *c, const void *data, size_t len);