diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-04-29 15:51:17 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-04-29 15:51:17 +0000 |
commit | c082379018832e72c95068e938deaf79530a9458 (patch) | |
tree | 6e16bfb642f94adfe14efc18774aaa5d0ae628d0 /include/md5.h | |
parent | bd5f9653f2399919b0aefeb32085ba80116ed969 (diff) |
Undo some recent prototype changes; it is legal to pass the helper
functions can take a NULL buf pointer. They will malloc memory as
needed in this case.
Diffstat (limited to 'include/md5.h')
-rw-r--r-- | include/md5.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/md5.h b/include/md5.h index 533db75a421..cc4a2d93652 100644 --- a/include/md5.h +++ b/include/md5.h @@ -1,4 +1,4 @@ -/* $OpenBSD: md5.h,v 1.13 2004/04/28 16:52:08 millert Exp $ */ +/* $OpenBSD: md5.h,v 1.14 2004/04/29 15:51:16 millert Exp $ */ /* * This code implements the MD5 message-digest algorithm. @@ -36,11 +36,11 @@ void MD5Final(u_int8_t [MD5_DIGEST_LENGTH], MD5_CTX *) void MD5Transform(u_int32_t [4], const u_int8_t [MD5_BLOCK_LENGTH]) __attribute__((__bounded__(__minbytes__,1,4))) __attribute__((__bounded__(__minbytes__,2,MD5_BLOCK_LENGTH))); -char *MD5End(MD5_CTX *, char [MD5_DIGEST_STRING_LENGTH]) +char *MD5End(MD5_CTX *, char *) __attribute__((__bounded__(__minbytes__,2,MD5_DIGEST_STRING_LENGTH))); -char *MD5File(char *, char [MD5_DIGEST_STRING_LENGTH]) +char *MD5File(char *, char *) __attribute__((__bounded__(__minbytes__,2,MD5_DIGEST_STRING_LENGTH))); -char *MD5Data(const u_int8_t *, size_t, char [MD5_DIGEST_STRING_LENGTH]) +char *MD5Data(const u_int8_t *, size_t, char *) __attribute__((__bounded__(__string__,1,2))) __attribute__((__bounded__(__minbytes__,3,MD5_DIGEST_STRING_LENGTH))); __END_DECLS |