remove patchlist things, and more generated and commited things.
[apps/madmutt.git] / sha1.h
diff --git a/sha1.h b/sha1.h
index 8381955..33eebbf 100644 (file)
--- a/sha1.h
+++ b/sha1.h
@@ -9,24 +9,7 @@
 #ifndef _SHA1_H
 # define _SHA1_H
 
-#include "config.h"
-
-#include <sys/types.h>
-#if HAVE_INTTYPES_H
-# include <inttypes.h>
-#else
-# if HAVE_STDINT_H
-#  include <stdint.h>
-# endif
-#endif
-
-#ifndef HAVE_UINT32_T
-#  if SIZEOF_INT == 4
-typedef unsigned int uint32_t;
-#  elif SIZEOF_LONG == 4
-typedef unsigned long uint32_t;
-#  endif
-#endif
+#include "crypthash.h"
 
 typedef struct {
   uint32_t state[5];
@@ -34,10 +17,10 @@ typedef struct {
   unsigned char buffer[64];
 } SHA1_CTX;
 
-void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]);
-void SHA1Init(SHA1_CTX* context);
-void SHA1Update(SHA1_CTX* context, const unsigned char* data, uint32_t len);
-void SHA1Final(unsigned char digest[20], SHA1_CTX* context);
+void SHA1Transform (uint32_t state[5], const unsigned char buffer[64]);
+void SHA1Init (SHA1_CTX * context);
+void SHA1Update (SHA1_CTX * context, const unsigned char *data, uint32_t len);
+void SHA1Final (unsigned char digest[20], SHA1_CTX * context);
 
 # define SHA1_Transform SHA1Transform
 # define SHA1_Init SHA1Init
@@ -47,4 +30,3 @@ void SHA1Final(unsigned char digest[20], SHA1_CTX* context);
 # define SHA_DIGEST_LENGTH 20
 
 #endif
-