diff options
author | avsm <> | 2014-06-14 10:28:31 +0000 |
---|---|---|
committer | avsm <> | 2014-06-14 10:28:31 +0000 |
commit | 49d9bfe1c1e2d2b68738838188970b60c82b7cfd (patch) | |
tree | 5f7634247ad913bd0f5da399c9c160b9d343dae7 /src/lib/libcrypto/md5 | |
parent | d70ac8aa3aff0d5162f505665af4d31896b6bcde (diff) | |
download | openbsd-49d9bfe1c1e2d2b68738838188970b60c82b7cfd.tar.gz openbsd-49d9bfe1c1e2d2b68738838188970b60c82b7cfd.tar.bz2 openbsd-49d9bfe1c1e2d2b68738838188970b60c82b7cfd.zip |
Add more bounded attributes to the buffer and md5/sha headers in libssl
ok miod@
Diffstat (limited to 'src/lib/libcrypto/md5')
-rw-r--r-- | src/lib/libcrypto/md5/md5.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libcrypto/md5/md5.h b/src/lib/libcrypto/md5/md5.h index 7cc703ac11..66e52ce227 100644 --- a/src/lib/libcrypto/md5/md5.h +++ b/src/lib/libcrypto/md5/md5.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md5.h,v 1.14 2014/06/12 15:49:29 deraadt Exp $ */ | 1 | /* $OpenBSD: md5.h,v 1.15 2014/06/14 10:28:31 avsm Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -100,9 +100,11 @@ typedef struct MD5state_st | |||
100 | } MD5_CTX; | 100 | } MD5_CTX; |
101 | 101 | ||
102 | int MD5_Init(MD5_CTX *c); | 102 | int MD5_Init(MD5_CTX *c); |
103 | int MD5_Update(MD5_CTX *c, const void *data, size_t len); | 103 | int MD5_Update(MD5_CTX *c, const void *data, size_t len) |
104 | __attribute__ ((__bounded__(__buffer__,2,3))); | ||
104 | int MD5_Final(unsigned char *md, MD5_CTX *c); | 105 | int MD5_Final(unsigned char *md, MD5_CTX *c); |
105 | unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); | 106 | unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md) |
107 | __attribute__ ((__bounded__(__buffer__,1,2))); | ||
106 | void MD5_Transform(MD5_CTX *c, const unsigned char *b); | 108 | void MD5_Transform(MD5_CTX *c, const unsigned char *b); |
107 | #ifdef __cplusplus | 109 | #ifdef __cplusplus |
108 | } | 110 | } |