Revert "sha1: code cleanup and use modern C syntax"
This reverts commit 0dd8c79bc4c33b3772ce3baff3a7e8723dd89c18.
diff --git a/libc/include/sha1.h b/libc/include/sha1.h
index adfa1fc..f7ada46 100644
--- a/libc/include/sha1.h
+++ b/libc/include/sha1.h
@@ -18,14 +18,14 @@
typedef struct {
uint32_t state[5];
uint32_t count[2];
- uint8_t buffer[64];
+ u_char buffer[64];
} SHA1_CTX;
__BEGIN_DECLS
-void SHA1Transform(uint32_t[5], const uint8_t[64]);
+void SHA1Transform(uint32_t[5], const u_char[64]);
void SHA1Init(SHA1_CTX *);
-void SHA1Update(SHA1_CTX *, const uint8_t *, unsigned int);
-void SHA1Final(uint8_t[SHA1_DIGEST_LENGTH], SHA1_CTX *);
+void SHA1Update(SHA1_CTX *, const u_char *, u_int);
+void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
__END_DECLS
#endif /* _SYS_SHA1_H_ */