=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/sha1.h,v retrieving revision 1.18 retrieving revision 1.19 diff -c -r1.18 -r1.19 *** src/include/sha1.h 2004/04/27 15:54:56 1.18 --- src/include/sha1.h 2004/04/29 15:51:16 1.19 *************** *** 1,4 **** ! /* $OpenBSD: sha1.h,v 1.18 2004/04/27 15:54:56 millert Exp $ */ /* * SHA-1 in C --- 1,4 ---- ! /* $OpenBSD: sha1.h,v 1.19 2004/04/29 15:51:16 millert Exp $ */ /* * SHA-1 in C *************** *** 24,42 **** __BEGIN_DECLS void SHA1Init(SHA1_CTX *); void SHA1Transform(u_int32_t [5], const u_int8_t [SHA1_BLOCK_LENGTH]) ! __attribute__((__bounded__(__minbytes__,1,5))) ! __attribute__((__bounded__(__minbytes__,2,SHA1_BLOCK_LENGTH))); void SHA1Update(SHA1_CTX *, const u_int8_t *, unsigned int) ! __attribute__((__bounded__(__string__,2,3))); void SHA1Final(u_int8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *) ! __attribute__((__bounded__(__minbytes__,1,SHA1_DIGEST_LENGTH))); ! char *SHA1End(SHA1_CTX *, char [SHA1_DIGEST_STRING_LENGTH]) ! __attribute__((__bounded__(__minbytes__,2,SHA1_DIGEST_STRING_LENGTH))); ! char *SHA1File(char *, char [SHA1_DIGEST_STRING_LENGTH]) ! __attribute__((__bounded__(__minbytes__,2,SHA1_DIGEST_STRING_LENGTH))); ! char *SHA1Data(const u_int8_t *, size_t, char [SHA1_DIGEST_STRING_LENGTH]) ! __attribute__((__bounded__(__string__,1,2))) ! __attribute__((__bounded__(__minbytes__,3,SHA1_DIGEST_STRING_LENGTH))); __END_DECLS #define HTONDIGEST(x) do { \ --- 24,42 ---- __BEGIN_DECLS void SHA1Init(SHA1_CTX *); void SHA1Transform(u_int32_t [5], const u_int8_t [SHA1_BLOCK_LENGTH]) ! __attribute__((__bounded__(__minbytes__,1,5))) ! __attribute__((__bounded__(__minbytes__,2,SHA1_BLOCK_LENGTH))); void SHA1Update(SHA1_CTX *, const u_int8_t *, unsigned int) ! __attribute__((__bounded__(__string__,2,3))); void SHA1Final(u_int8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *) ! __attribute__((__bounded__(__minbytes__,1,SHA1_DIGEST_LENGTH))); ! char *SHA1End(SHA1_CTX *, char *) ! __attribute__((__bounded__(__minbytes__,2,SHA1_DIGEST_STRING_LENGTH))); ! char *SHA1File(char *, char *) ! __attribute__((__bounded__(__minbytes__,2,SHA1_DIGEST_STRING_LENGTH))); ! char *SHA1Data(const u_int8_t *, size_t, char *) ! __attribute__((__bounded__(__string__,1,2))) ! __attribute__((__bounded__(__minbytes__,3,SHA1_DIGEST_STRING_LENGTH))); __END_DECLS #define HTONDIGEST(x) do { \