summaryrefslogtreecommitdiff
path: root/lib/libssl
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2014-05-10 01:38:11 +0000
committerDamien Miller <djm@cvs.openbsd.org>2014-05-10 01:38:11 +0000
commitdfeb688a946a2b27fde19e82f8a8e80020a07e6c (patch)
tree560975ac7e034ebefc262a69ea7173376b41c68c /lib/libssl
parent0b4794c038c9e9197a108b639aea3f39e723a717 (diff)
__bounded => __attribute__((__bounded__
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/src/crypto/chacha/chacha-merged.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libssl/src/crypto/chacha/chacha-merged.c b/lib/libssl/src/crypto/chacha/chacha-merged.c
index a31d8a8301a..5ba813147a5 100644
--- a/lib/libssl/src/crypto/chacha/chacha-merged.c
+++ b/lib/libssl/src/crypto/chacha/chacha-merged.c
@@ -18,15 +18,15 @@ struct chacha_ctx {
static inline void chacha_keysetup(struct chacha_ctx *x, const u_char *k,
u_int kbits)
- __bounded((__minbytes__, 2, CHACHA_MINKEYLEN));
+ __attribute__((__bounded__(__minbytes__, 2, CHACHA_MINKEYLEN)));
static inline void chacha_ivsetup(struct chacha_ctx *x, const u_char *iv,
const u_char *ctr)
- __bounded((__minbytes__, 2, CHACHA_NONCELEN))
- __bounded((__minbytes__, 3, CHACHA_CTRLEN));
+ __attribute__((__bounded__(__minbytes__, 2, CHACHA_NONCELEN)))
+ __attribute__((__bounded__(__minbytes__, 3, CHACHA_CTRLEN)));
static inline void chacha_encrypt_bytes(struct chacha_ctx *x, const u_char *m,
u_char *c, u_int bytes)
- __bounded((__buffer__, 2, 4))
- __bounded((__buffer__, 3, 4));
+ __attribute__((__bounded__(__buffer__, 2, 4)))
+ __attribute__((__bounded__(__buffer__, 3, 4)));
typedef unsigned char u8;
typedef unsigned int u32;