summaryrefslogtreecommitdiffstats
path: root/lib/libmd/sha.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2006-01-17 15:35:57 +0000
committerphk <phk@FreeBSD.org>2006-01-17 15:35:57 +0000
commit7a469c93bd0237caf5ea853e39af9aae0641ee9a (patch)
tree101d4be37f349e17f665a23b1aa8744624569973 /lib/libmd/sha.h
parent0918b5cf25de7142e1ae5fd30873e51040664a87 (diff)
downloadFreeBSD-src-7a469c93bd0237caf5ea853e39af9aae0641ee9a.zip
FreeBSD-src-7a469c93bd0237caf5ea853e39af9aae0641ee9a.tar.gz
Fix an 11 year old mistake: Let the hash functions take a void* instead
of unsigned char* argument.
Diffstat (limited to 'lib/libmd/sha.h')
-rw-r--r--lib/libmd/sha.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libmd/sha.h b/lib/libmd/sha.h
index 7e5f2b6..8a0b7c2 100644
--- a/lib/libmd/sha.h
+++ b/lib/libmd/sha.h
@@ -80,19 +80,19 @@ typedef struct SHAstate_st {
__BEGIN_DECLS
void SHA_Init(SHA_CTX *c);
-void SHA_Update(SHA_CTX *c, const unsigned char *data, size_t len);
+void SHA_Update(SHA_CTX *c, const void *data, size_t len);
void SHA_Final(unsigned char *md, SHA_CTX *c);
char *SHA_End(SHA_CTX *, char *);
char *SHA_File(const char *, char *);
char *SHA_FileChunk(const char *, char *, off_t, off_t);
-char *SHA_Data(const unsigned char *, unsigned int, char *);
+char *SHA_Data(const void *, unsigned int, char *);
void SHA1_Init(SHA_CTX *c);
-void SHA1_Update(SHA_CTX *c, const unsigned char *data, size_t len);
+void SHA1_Update(SHA_CTX *c, const void *data, size_t len);
void SHA1_Final(unsigned char *md, SHA_CTX *c);
char *SHA1_End(SHA_CTX *, char *);
char *SHA1_File(const char *, char *);
char *SHA1_FileChunk(const char *, char *, off_t, off_t);
-char *SHA1_Data(const unsigned char *, unsigned int, char *);
+char *SHA1_Data(const void *, unsigned int, char *);
__END_DECLS
#endif /* !_SHA_H_ */
OpenPOWER on IntegriCloud