summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2024-06-01 17:56:44 +0000
committertb <>2024-06-01 17:56:44 +0000
commite8fd0aebd3bba5eeb4eb38d2c9640450f3634294 (patch)
tree0a26c44a0bab65c293fab130f1a5f31bf58a17a0
parent9f06266b4010c7eb85fbf0583880673c481fe104 (diff)
downloadopenbsd-e8fd0aebd3bba5eeb4eb38d2c9640450f3634294.tar.gz
openbsd-e8fd0aebd3bba5eeb4eb38d2c9640450f3634294.tar.bz2
openbsd-e8fd0aebd3bba5eeb4eb38d2c9640450f3634294.zip
Neuter the bounded attribute as was done elsewhere for portable
-rw-r--r--src/lib/libcrypto/chacha/chacha-merged.c6
-rw-r--r--src/lib/libcrypto/md4/md4.h6
-rw-r--r--src/lib/libcrypto/ripemd/ripemd.h6
-rw-r--r--src/lib/libcrypto/whrlpool/whrlpool.h6
4 files changed, 20 insertions, 4 deletions
diff --git a/src/lib/libcrypto/chacha/chacha-merged.c b/src/lib/libcrypto/chacha/chacha-merged.c
index b405af84ee..3e17b9354b 100644
--- a/src/lib/libcrypto/chacha/chacha-merged.c
+++ b/src/lib/libcrypto/chacha/chacha-merged.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: chacha-merged.c,v 1.11 2023/07/07 19:37:53 beck Exp $ */ 1/* $OpenBSD: chacha-merged.c,v 1.12 2024/06/01 17:56:44 tb Exp $ */
2/* 2/*
3chacha-merged.c version 20080118 3chacha-merged.c version 20080118
4D. J. Bernstein 4D. J. Bernstein
@@ -7,6 +7,10 @@ Public domain.
7 7
8#include <stdint.h> 8#include <stdint.h>
9 9
10#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__OpenBSD__)
11#define __bounded__(x, y, z)
12#endif
13
10#define CHACHA_MINKEYLEN 16 14#define CHACHA_MINKEYLEN 16
11#define CHACHA_NONCELEN 8 15#define CHACHA_NONCELEN 8
12#define CHACHA_CTRLEN 8 16#define CHACHA_CTRLEN 8
diff --git a/src/lib/libcrypto/md4/md4.h b/src/lib/libcrypto/md4/md4.h
index 64bcfefeec..f0a9daeb50 100644
--- a/src/lib/libcrypto/md4/md4.h
+++ b/src/lib/libcrypto/md4/md4.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: md4.h,v 1.19 2024/06/01 07:44:11 tb Exp $ */ 1/* $OpenBSD: md4.h,v 1.20 2024/06/01 17:56:44 tb 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 *
@@ -61,6 +61,10 @@
61#ifndef HEADER_MD4_H 61#ifndef HEADER_MD4_H
62#define HEADER_MD4_H 62#define HEADER_MD4_H
63 63
64#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__OpenBSD__)
65#define __bounded__(x, y, z)
66#endif
67
64#include <openssl/opensslconf.h> 68#include <openssl/opensslconf.h>
65 69
66#ifdef __cplusplus 70#ifdef __cplusplus
diff --git a/src/lib/libcrypto/ripemd/ripemd.h b/src/lib/libcrypto/ripemd/ripemd.h
index 98fd0f71ec..3dc6bd8b25 100644
--- a/src/lib/libcrypto/ripemd/ripemd.h
+++ b/src/lib/libcrypto/ripemd/ripemd.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ripemd.h,v 1.17 2024/06/01 07:44:11 tb Exp $ */ 1/* $OpenBSD: ripemd.h,v 1.18 2024/06/01 17:56:44 tb 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 *
@@ -61,6 +61,10 @@
61#ifndef HEADER_RIPEMD_H 61#ifndef HEADER_RIPEMD_H
62#define HEADER_RIPEMD_H 62#define HEADER_RIPEMD_H
63 63
64#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__OpenBSD__)
65#define __bounded__(x, y, z)
66#endif
67
64#include <openssl/opensslconf.h> 68#include <openssl/opensslconf.h>
65 69
66#ifdef __cplusplus 70#ifdef __cplusplus
diff --git a/src/lib/libcrypto/whrlpool/whrlpool.h b/src/lib/libcrypto/whrlpool/whrlpool.h
index 1670a81b37..d8e7eef141 100644
--- a/src/lib/libcrypto/whrlpool/whrlpool.h
+++ b/src/lib/libcrypto/whrlpool/whrlpool.h
@@ -1,10 +1,14 @@
1/* $OpenBSD: whrlpool.h,v 1.7 2024/06/01 07:44:11 tb Exp $ */ 1/* $OpenBSD: whrlpool.h,v 1.8 2024/06/01 17:56:44 tb Exp $ */
2 2
3#include <stddef.h> 3#include <stddef.h>
4 4
5#ifndef HEADER_WHRLPOOL_H 5#ifndef HEADER_WHRLPOOL_H
6#define HEADER_WHRLPOOL_H 6#define HEADER_WHRLPOOL_H
7 7
8#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__OpenBSD__)
9#define __bounded__(x, y, z)
10#endif
11
8#include <openssl/opensslconf.h> 12#include <openssl/opensslconf.h>
9 13
10#ifdef __cplusplus 14#ifdef __cplusplus