Code

Build: add NO_UINTMAX_T to support ancient systems
[git.git] / mozilla-sha1 / sha1.h
index 16f2d3d43ca8bee1eeb306308277bef8c707a972..aa48a46cf708eaef61fc5856310063a2ce87b93b 100644 (file)
@@ -38,8 +38,13 @@ typedef struct {
   unsigned int W[80];
   int lenW;
   unsigned int sizeHi,sizeLo;
-} SHA_CTX;
+} moz_SHA_CTX;
 
-void SHA1_Init(SHA_CTX *ctx);
-void SHA1_Update(SHA_CTX *ctx, const void *dataIn, int len);
-void SHA1_Final(unsigned char hashout[20], SHA_CTX *ctx);
+void moz_SHA1_Init(moz_SHA_CTX *ctx);
+void moz_SHA1_Update(moz_SHA_CTX *ctx, const void *dataIn, int len);
+void moz_SHA1_Final(unsigned char hashout[20], moz_SHA_CTX *ctx);
+
+#define git_SHA_CTX    moz_SHA_CTX
+#define git_SHA1_Init  moz_SHA1_Init
+#define git_SHA1_Update        moz_SHA1_Update
+#define git_SHA1_Final moz_SHA1_Final