diff options
author | avsm <avsm@openbsd.org> | 2003-08-01 17:38:33 +0000 |
---|---|---|
committer | avsm <avsm@openbsd.org> | 2003-08-01 17:38:33 +0000 |
commit | 89b95c1c6ce2753bf90589b3c2c7f8be8010fad2 (patch) | |
tree | 1bd89fd6b221da04e42bebc98d6b5cc15cd8e9ea /include/sha1.h | |
parent | when the -R option (read-only) is specified, there is no need to print (diff) | |
download | wireguard-openbsd-89b95c1c6ce2753bf90589b3c2c7f8be8010fad2.tar.xz wireguard-openbsd-89b95c1c6ce2753bf90589b3c2c7f8be8010fad2.zip |
add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@
Diffstat (limited to 'include/sha1.h')
-rw-r--r-- | include/sha1.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sha1.h b/include/sha1.h index 2ac214ed459..9df09a81b0d 100644 --- a/include/sha1.h +++ b/include/sha1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sha1.h,v 1.13 2003/06/26 19:34:17 avsm Exp $ */ +/* $OpenBSD: sha1.h,v 1.14 2003/08/01 17:38:33 avsm Exp $ */ /* * SHA-1 in C @@ -24,7 +24,8 @@ void SHA1Update(SHA1_CTX *context, const u_char *data, u_int len); void SHA1Final(u_char digest[20], SHA1_CTX *context); char *SHA1End(SHA1_CTX *, char *); char *SHA1File(char *, char *); -char *SHA1Data(const u_char *, size_t, char *); +char *SHA1Data(const u_char *, size_t, char *) + __attribute__((__bounded__ (__string__,3,2))); __END_DECLS #define SHA1_DIGESTSIZE 20 |