summaryrefslogtreecommitdiff
path: root/lib/libcrypto/rsa
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-07-10 22:45:59 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-07-10 22:45:59 +0000
commit03bd4af8b64912d28ecf5845fced13e4926fe5a1 (patch)
treeebcea9269eef6832b649e7fc5f08dc626d79f4b1 /lib/libcrypto/rsa
parentc91dd69f085de982c70898116e3538397e189678 (diff)
Explicitly include <openssl/opensslconf.h> in every file that references
an OPENSSL_NO_* define. This avoids relying on something else pulling it in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is never going to do anything, since OPENSSL_NO_XYZ will never defined, due to the fact that opensslconf.h has not been included. This also includes some miscellaneous sorting/tidying of headers.
Diffstat (limited to 'lib/libcrypto/rsa')
-rw-r--r--lib/libcrypto/rsa/rsa.h4
-rw-r--r--lib/libcrypto/rsa/rsa_ameth.c5
-rw-r--r--lib/libcrypto/rsa/rsa_crpt.c5
-rw-r--r--lib/libcrypto/rsa/rsa_depr.c5
-rw-r--r--lib/libcrypto/rsa/rsa_eay.c5
-rw-r--r--lib/libcrypto/rsa/rsa_err.c5
-rw-r--r--lib/libcrypto/rsa/rsa_lib.c5
-rw-r--r--lib/libcrypto/rsa/rsa_oaep.c4
-rw-r--r--lib/libcrypto/rsa/rsa_pmeth.c4
9 files changed, 33 insertions, 9 deletions
diff --git a/lib/libcrypto/rsa/rsa.h b/lib/libcrypto/rsa/rsa.h
index b84ab4c6d75..d15d1f1c97d 100644
--- a/lib/libcrypto/rsa/rsa.h
+++ b/lib/libcrypto/rsa/rsa.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa.h,v 1.24 2014/07/10 12:08:22 jsing Exp $ */
+/* $OpenBSD: rsa.h,v 1.25 2014/07/10 22:45:57 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -59,6 +59,8 @@
#ifndef HEADER_RSA_H
#define HEADER_RSA_H
+#include <openssl/opensslconf.h>
+
#include <openssl/asn1.h>
#ifndef OPENSSL_NO_BIO
diff --git a/lib/libcrypto/rsa/rsa_ameth.c b/lib/libcrypto/rsa/rsa_ameth.c
index 679fe7b3188..1eeb58ed9bb 100644
--- a/lib/libcrypto/rsa/rsa_ameth.c
+++ b/lib/libcrypto/rsa/rsa_ameth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_ameth.c,v 1.9 2014/07/09 22:55:17 tedu Exp $ */
+/* $OpenBSD: rsa_ameth.c,v 1.10 2014/07/10 22:45:57 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -57,6 +57,9 @@
*/
#include <stdio.h>
+
+#include <openssl/opensslconf.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
diff --git a/lib/libcrypto/rsa/rsa_crpt.c b/lib/libcrypto/rsa/rsa_crpt.c
index 5de69a6fb5e..220ce9497ab 100644
--- a/lib/libcrypto/rsa/rsa_crpt.c
+++ b/lib/libcrypto/rsa/rsa_crpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_crpt.c,v 1.9 2014/07/10 12:36:58 miod Exp $ */
+/* $OpenBSD: rsa_crpt.c,v 1.10 2014/07/10 22:45:57 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,9 @@
*/
#include <stdio.h>
+
+#include <openssl/opensslconf.h>
+
#include <openssl/crypto.h>
#include "cryptlib.h"
#include <openssl/lhash.h>
diff --git a/lib/libcrypto/rsa/rsa_depr.c b/lib/libcrypto/rsa/rsa_depr.c
index f66c832b2ac..547f9a491e3 100644
--- a/lib/libcrypto/rsa/rsa_depr.c
+++ b/lib/libcrypto/rsa/rsa_depr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_depr.c,v 1.6 2014/07/10 07:43:11 jsing Exp $ */
+/* $OpenBSD: rsa_depr.c,v 1.7 2014/07/10 22:45:57 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
*
@@ -58,6 +58,9 @@
#include <stdio.h>
#include <time.h>
+
+#include <openssl/opensslconf.h>
+
#include "cryptlib.h"
#include <openssl/bn.h>
#include <openssl/rsa.h>
diff --git a/lib/libcrypto/rsa/rsa_eay.c b/lib/libcrypto/rsa/rsa_eay.c
index 9b390fb8c0e..3cc8f6c5cfa 100644
--- a/lib/libcrypto/rsa/rsa_eay.c
+++ b/lib/libcrypto/rsa/rsa_eay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_eay.c,v 1.32 2014/07/10 07:43:11 jsing Exp $ */
+/* $OpenBSD: rsa_eay.c,v 1.33 2014/07/10 22:45:57 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -110,6 +110,9 @@
*/
#include <stdio.h>
+
+#include <openssl/opensslconf.h>
+
#include "cryptlib.h"
#include <openssl/bn.h>
#include <openssl/rsa.h>
diff --git a/lib/libcrypto/rsa/rsa_err.c b/lib/libcrypto/rsa/rsa_err.c
index 893069a8921..4c4a3551c5b 100644
--- a/lib/libcrypto/rsa/rsa_err.c
+++ b/lib/libcrypto/rsa/rsa_err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_err.c,v 1.14 2014/07/09 19:51:38 jsing Exp $ */
+/* $OpenBSD: rsa_err.c,v 1.15 2014/07/10 22:45:57 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
*
@@ -59,6 +59,9 @@
*/
#include <stdio.h>
+
+#include <openssl/opensslconf.h>
+
#include <openssl/err.h>
#include <openssl/rsa.h>
diff --git a/lib/libcrypto/rsa/rsa_lib.c b/lib/libcrypto/rsa/rsa_lib.c
index 6f378ba0c07..d7a51c7b05c 100644
--- a/lib/libcrypto/rsa/rsa_lib.c
+++ b/lib/libcrypto/rsa/rsa_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_lib.c,v 1.26 2014/07/10 07:43:11 jsing Exp $ */
+/* $OpenBSD: rsa_lib.c,v 1.27 2014/07/10 22:45:57 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,9 @@
*/
#include <stdio.h>
+
+#include <openssl/opensslconf.h>
+
#include <openssl/crypto.h>
#include "cryptlib.h"
#include <openssl/lhash.h>
diff --git a/lib/libcrypto/rsa/rsa_oaep.c b/lib/libcrypto/rsa/rsa_oaep.c
index 893fbc04b89..09799818d36 100644
--- a/lib/libcrypto/rsa/rsa_oaep.c
+++ b/lib/libcrypto/rsa/rsa_oaep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_oaep.c,v 1.21 2014/07/10 13:58:23 jsing Exp $ */
+/* $OpenBSD: rsa_oaep.c,v 1.22 2014/07/10 22:45:57 jsing Exp $ */
/* Written by Ulf Moeller. This software is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. */
@@ -21,6 +21,8 @@
#include <stdio.h>
#include <string.h>
+#include <openssl/opensslconf.h>
+
#if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1)
#include "cryptlib.h"
#include <openssl/bn.h>
diff --git a/lib/libcrypto/rsa/rsa_pmeth.c b/lib/libcrypto/rsa/rsa_pmeth.c
index f9ebd9babac..0b2d680eedd 100644
--- a/lib/libcrypto/rsa/rsa_pmeth.c
+++ b/lib/libcrypto/rsa/rsa_pmeth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_pmeth.c,v 1.12 2014/07/10 13:58:23 jsing Exp $ */
+/* $OpenBSD: rsa_pmeth.c,v 1.13 2014/07/10 22:45:57 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -60,6 +60,8 @@
#include <stdio.h>
#include <string.h>
+#include <openssl/opensslconf.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>