summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeck <>2014-07-13 10:27:22 +0000
committerbeck <>2014-07-13 10:27:22 +0000
commit266d9733cad3f22c7418e7ce1a02c7f52ccde55f (patch)
tree802446db9339b3a33348d2822608f6c84a64f829
parent2611981c7e016c2f3dcbe69051bc2dbf5d4a4d11 (diff)
downloadopenbsd-266d9733cad3f22c7418e7ce1a02c7f52ccde55f.tar.gz
openbsd-266d9733cad3f22c7418e7ce1a02c7f52ccde55f.tar.bz2
openbsd-266d9733cad3f22c7418e7ce1a02c7f52ccde55f.zip
Take out __bounded__ in the include files we use it in when not on OpenBSD.
while we can take it out in portable at compile time, it is still a problem when we install this header file on a system that doesn't support __bounded__ if this is unguarded. ok miod@ bcook@
-rw-r--r--src/lib/libcrypto/bio/bio.h6
-rw-r--r--src/lib/libcrypto/buffer/buffer.h5
-rw-r--r--src/lib/libcrypto/md5/md5.h5
-rw-r--r--src/lib/libcrypto/sha/sha.h5
-rw-r--r--src/lib/libssl/src/crypto/bio/bio.h6
-rw-r--r--src/lib/libssl/src/crypto/buffer/buffer.h5
-rw-r--r--src/lib/libssl/src/crypto/md5/md5.h5
-rw-r--r--src/lib/libssl/src/crypto/sha/sha.h5
8 files changed, 32 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h
index cc5ef618b5..59f916f085 100644
--- a/src/lib/libcrypto/bio/bio.h
+++ b/src/lib/libcrypto/bio/bio.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio.h,v 1.24 2014/06/22 14:41:10 jsing Exp $ */ 1/* $OpenBSD: bio.h,v 1.25 2014/07/13 10:27:22 beck 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 *
@@ -58,7 +58,9 @@
58 58
59#ifndef HEADER_BIO_H 59#ifndef HEADER_BIO_H
60#define HEADER_BIO_H 60#define HEADER_BIO_H
61 61#if !defined(HAVE_ATTRIBUTE__BOUNDED__) || !defined(__OpenBSD__)
62#define __bounded__(x, y, z)
63#endif
62#include <openssl/opensslconf.h> 64#include <openssl/opensslconf.h>
63 65
64# include <stdio.h> 66# include <stdio.h>
diff --git a/src/lib/libcrypto/buffer/buffer.h b/src/lib/libcrypto/buffer/buffer.h
index c3d140b392..00759cf857 100644
--- a/src/lib/libcrypto/buffer/buffer.h
+++ b/src/lib/libcrypto/buffer/buffer.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: buffer.h,v 1.11 2014/06/24 19:37:58 miod Exp $ */ 1/* $OpenBSD: buffer.h,v 1.12 2014/07/13 10:27:22 beck 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 *
@@ -58,6 +58,9 @@
58 58
59#ifndef HEADER_BUFFER_H 59#ifndef HEADER_BUFFER_H
60#define HEADER_BUFFER_H 60#define HEADER_BUFFER_H
61#if !defined(HAVE_ATTRIBUTE__BOUNDED__) || !defined(__OpenBSD__)
62#define __bounded__(x, y, z)
63#endif
61 64
62#include <openssl/ossl_typ.h> 65#include <openssl/ossl_typ.h>
63 66
diff --git a/src/lib/libcrypto/md5/md5.h b/src/lib/libcrypto/md5/md5.h
index 98bdbc7b25..6f50e7f0dd 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.17 2014/07/10 22:45:57 jsing Exp $ */ 1/* $OpenBSD: md5.h,v 1.18 2014/07/13 10:27:22 beck 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 *
@@ -60,6 +60,9 @@
60 60
61#ifndef HEADER_MD5_H 61#ifndef HEADER_MD5_H
62#define HEADER_MD5_H 62#define HEADER_MD5_H
63#if !defined(HAVE_ATTRIBUTE__BOUNDED__) || !defined(__OpenBSD__)
64#define __bounded__(x, y, z)
65#endif
63 66
64#include <openssl/opensslconf.h> 67#include <openssl/opensslconf.h>
65 68
diff --git a/src/lib/libcrypto/sha/sha.h b/src/lib/libcrypto/sha/sha.h
index c2e303fcc2..d227ae458a 100644
--- a/src/lib/libcrypto/sha/sha.h
+++ b/src/lib/libcrypto/sha/sha.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sha.h,v 1.17 2014/07/10 22:45:58 jsing Exp $ */ 1/* $OpenBSD: sha.h,v 1.18 2014/07/13 10:27:22 beck 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 *
@@ -60,6 +60,9 @@
60 60
61#ifndef HEADER_SHA_H 61#ifndef HEADER_SHA_H
62#define HEADER_SHA_H 62#define HEADER_SHA_H
63#if !defined(HAVE_ATTRIBUTE__BOUNDED__) || !defined(__OpenBSD__)
64#define __bounded__(x, y, z)
65#endif
63 66
64#include <openssl/opensslconf.h> 67#include <openssl/opensslconf.h>
65 68
diff --git a/src/lib/libssl/src/crypto/bio/bio.h b/src/lib/libssl/src/crypto/bio/bio.h
index cc5ef618b5..59f916f085 100644
--- a/src/lib/libssl/src/crypto/bio/bio.h
+++ b/src/lib/libssl/src/crypto/bio/bio.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio.h,v 1.24 2014/06/22 14:41:10 jsing Exp $ */ 1/* $OpenBSD: bio.h,v 1.25 2014/07/13 10:27:22 beck 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 *
@@ -58,7 +58,9 @@
58 58
59#ifndef HEADER_BIO_H 59#ifndef HEADER_BIO_H
60#define HEADER_BIO_H 60#define HEADER_BIO_H
61 61#if !defined(HAVE_ATTRIBUTE__BOUNDED__) || !defined(__OpenBSD__)
62#define __bounded__(x, y, z)
63#endif
62#include <openssl/opensslconf.h> 64#include <openssl/opensslconf.h>
63 65
64# include <stdio.h> 66# include <stdio.h>
diff --git a/src/lib/libssl/src/crypto/buffer/buffer.h b/src/lib/libssl/src/crypto/buffer/buffer.h
index c3d140b392..00759cf857 100644
--- a/src/lib/libssl/src/crypto/buffer/buffer.h
+++ b/src/lib/libssl/src/crypto/buffer/buffer.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: buffer.h,v 1.11 2014/06/24 19:37:58 miod Exp $ */ 1/* $OpenBSD: buffer.h,v 1.12 2014/07/13 10:27:22 beck 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 *
@@ -58,6 +58,9 @@
58 58
59#ifndef HEADER_BUFFER_H 59#ifndef HEADER_BUFFER_H
60#define HEADER_BUFFER_H 60#define HEADER_BUFFER_H
61#if !defined(HAVE_ATTRIBUTE__BOUNDED__) || !defined(__OpenBSD__)
62#define __bounded__(x, y, z)
63#endif
61 64
62#include <openssl/ossl_typ.h> 65#include <openssl/ossl_typ.h>
63 66
diff --git a/src/lib/libssl/src/crypto/md5/md5.h b/src/lib/libssl/src/crypto/md5/md5.h
index 98bdbc7b25..6f50e7f0dd 100644
--- a/src/lib/libssl/src/crypto/md5/md5.h
+++ b/src/lib/libssl/src/crypto/md5/md5.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: md5.h,v 1.17 2014/07/10 22:45:57 jsing Exp $ */ 1/* $OpenBSD: md5.h,v 1.18 2014/07/13 10:27:22 beck 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 *
@@ -60,6 +60,9 @@
60 60
61#ifndef HEADER_MD5_H 61#ifndef HEADER_MD5_H
62#define HEADER_MD5_H 62#define HEADER_MD5_H
63#if !defined(HAVE_ATTRIBUTE__BOUNDED__) || !defined(__OpenBSD__)
64#define __bounded__(x, y, z)
65#endif
63 66
64#include <openssl/opensslconf.h> 67#include <openssl/opensslconf.h>
65 68
diff --git a/src/lib/libssl/src/crypto/sha/sha.h b/src/lib/libssl/src/crypto/sha/sha.h
index c2e303fcc2..d227ae458a 100644
--- a/src/lib/libssl/src/crypto/sha/sha.h
+++ b/src/lib/libssl/src/crypto/sha/sha.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sha.h,v 1.17 2014/07/10 22:45:58 jsing Exp $ */ 1/* $OpenBSD: sha.h,v 1.18 2014/07/13 10:27:22 beck 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 *
@@ -60,6 +60,9 @@
60 60
61#ifndef HEADER_SHA_H 61#ifndef HEADER_SHA_H
62#define HEADER_SHA_H 62#define HEADER_SHA_H
63#if !defined(HAVE_ATTRIBUTE__BOUNDED__) || !defined(__OpenBSD__)
64#define __bounded__(x, y, z)
65#endif
63 66
64#include <openssl/opensslconf.h> 67#include <openssl/opensslconf.h>
65 68