Neuter the bounded attribute as was done elsewhere for portable
authortb <tb@openbsd.org>
Sat, 1 Jun 2024 17:56:44 +0000 (17:56 +0000)
committertb <tb@openbsd.org>
Sat, 1 Jun 2024 17:56:44 +0000 (17:56 +0000)
lib/libcrypto/chacha/chacha-merged.c
lib/libcrypto/md4/md4.h
lib/libcrypto/ripemd/ripemd.h
lib/libcrypto/whrlpool/whrlpool.h

index b405af8..3e17b93 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: chacha-merged.c,v 1.11 2023/07/07 19:37:53 beck Exp $ */
+/* $OpenBSD: chacha-merged.c,v 1.12 2024/06/01 17:56:44 tb Exp $ */
 /*
 chacha-merged.c version 20080118
 D. J. Bernstein
@@ -7,6 +7,10 @@ Public domain.
 
 #include <stdint.h>
 
+#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__OpenBSD__)
+#define __bounded__(x, y, z)
+#endif
+
 #define CHACHA_MINKEYLEN       16
 #define CHACHA_NONCELEN                8
 #define CHACHA_CTRLEN          8
index 64bcfef..f0a9dae 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: md4.h,v 1.19 2024/06/01 07:44:11 tb Exp $ */
+/* $OpenBSD: md4.h,v 1.20 2024/06/01 17:56:44 tb Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
 #ifndef HEADER_MD4_H
 #define HEADER_MD4_H
 
+#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__OpenBSD__)
+#define __bounded__(x, y, z)
+#endif
+
 #include <openssl/opensslconf.h>
 
 #ifdef  __cplusplus
index 98fd0f7..3dc6bd8 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ripemd.h,v 1.17 2024/06/01 07:44:11 tb Exp $ */
+/* $OpenBSD: ripemd.h,v 1.18 2024/06/01 17:56:44 tb Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
 #ifndef HEADER_RIPEMD_H
 #define HEADER_RIPEMD_H
 
+#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__OpenBSD__)
+#define __bounded__(x, y, z)
+#endif
+
 #include <openssl/opensslconf.h>
 
 #ifdef  __cplusplus
index 1670a81..d8e7eef 100644 (file)
@@ -1,10 +1,14 @@
-/* $OpenBSD: whrlpool.h,v 1.7 2024/06/01 07:44:11 tb Exp $ */
+/* $OpenBSD: whrlpool.h,v 1.8 2024/06/01 17:56:44 tb Exp $ */
 
 #include <stddef.h>
 
 #ifndef HEADER_WHRLPOOL_H
 #define HEADER_WHRLPOOL_H
 
+#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__OpenBSD__)
+#define __bounded__(x, y, z)
+#endif
+
 #include <openssl/opensslconf.h>
 
 #ifdef __cplusplus