summaryrefslogtreecommitdiff
path: root/include/sha1.h
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-08-01 17:38:34 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-08-01 17:38:34 +0000
commitd68eb8fee6d53373bd6305628015b381d50e5a81 (patch)
tree1a024d606a1af2da709084dc790f2510d6665ae6 /include/sha1.h
parent594ac08ee4888800f45f3229059b0bcb5d56b45f (diff)
add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@
Diffstat (limited to 'include/sha1.h')
-rw-r--r--include/sha1.h5
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