diff options
| author | jsing <> | 2014-07-10 22:45:58 +0000 |
|---|---|---|
| committer | jsing <> | 2014-07-10 22:45:58 +0000 |
| commit | 62348213609ef233110561d1a6ed67ad66df1c7e (patch) | |
| tree | 9101caa8789c6a2612e96fe7996efbe84f28f5a9 /src/lib/libcrypto/rsa | |
| parent | f76256c97c28f5c9dcc36c7dfc7e20cc91200130 (diff) | |
| download | openbsd-62348213609ef233110561d1a6ed67ad66df1c7e.tar.gz openbsd-62348213609ef233110561d1a6ed67ad66df1c7e.tar.bz2 openbsd-62348213609ef233110561d1a6ed67ad66df1c7e.zip | |
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 'src/lib/libcrypto/rsa')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa.h | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_ameth.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_crpt.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_depr.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_eay.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_err.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_lib.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_oaep.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_pmeth.c | 4 |
9 files changed, 33 insertions, 9 deletions
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h index b84ab4c6d7..d15d1f1c97 100644 --- a/src/lib/libcrypto/rsa/rsa.h +++ b/src/lib/libcrypto/rsa/rsa.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa.h,v 1.24 2014/07/10 12:08:22 jsing Exp $ */ | 1 | /* $OpenBSD: rsa.h,v 1.25 2014/07/10 22:45:57 jsing 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 | * |
| @@ -59,6 +59,8 @@ | |||
| 59 | #ifndef HEADER_RSA_H | 59 | #ifndef HEADER_RSA_H |
| 60 | #define HEADER_RSA_H | 60 | #define HEADER_RSA_H |
| 61 | 61 | ||
| 62 | #include <openssl/opensslconf.h> | ||
| 63 | |||
| 62 | #include <openssl/asn1.h> | 64 | #include <openssl/asn1.h> |
| 63 | 65 | ||
| 64 | #ifndef OPENSSL_NO_BIO | 66 | #ifndef OPENSSL_NO_BIO |
diff --git a/src/lib/libcrypto/rsa/rsa_ameth.c b/src/lib/libcrypto/rsa/rsa_ameth.c index 679fe7b318..1eeb58ed9b 100644 --- a/src/lib/libcrypto/rsa/rsa_ameth.c +++ b/src/lib/libcrypto/rsa/rsa_ameth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_ameth.c,v 1.9 2014/07/09 22:55:17 tedu Exp $ */ | 1 | /* $OpenBSD: rsa_ameth.c,v 1.10 2014/07/10 22:45:57 jsing Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -57,6 +57,9 @@ | |||
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | |||
| 61 | #include <openssl/opensslconf.h> | ||
| 62 | |||
| 60 | #include "cryptlib.h" | 63 | #include "cryptlib.h" |
| 61 | #include <openssl/asn1t.h> | 64 | #include <openssl/asn1t.h> |
| 62 | #include <openssl/x509.h> | 65 | #include <openssl/x509.h> |
diff --git a/src/lib/libcrypto/rsa/rsa_crpt.c b/src/lib/libcrypto/rsa/rsa_crpt.c index 5de69a6fb5..220ce9497a 100644 --- a/src/lib/libcrypto/rsa/rsa_crpt.c +++ b/src/lib/libcrypto/rsa/rsa_crpt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_crpt.c,v 1.9 2014/07/10 12:36:58 miod Exp $ */ | 1 | /* $OpenBSD: rsa_crpt.c,v 1.10 2014/07/10 22:45:57 jsing 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 | * |
| @@ -57,6 +57,9 @@ | |||
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | |||
| 61 | #include <openssl/opensslconf.h> | ||
| 62 | |||
| 60 | #include <openssl/crypto.h> | 63 | #include <openssl/crypto.h> |
| 61 | #include "cryptlib.h" | 64 | #include "cryptlib.h" |
| 62 | #include <openssl/lhash.h> | 65 | #include <openssl/lhash.h> |
diff --git a/src/lib/libcrypto/rsa/rsa_depr.c b/src/lib/libcrypto/rsa/rsa_depr.c index f66c832b2a..547f9a491e 100644 --- a/src/lib/libcrypto/rsa/rsa_depr.c +++ b/src/lib/libcrypto/rsa/rsa_depr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_depr.c,v 1.6 2014/07/10 07:43:11 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_depr.c,v 1.7 2014/07/10 22:45:57 jsing Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -58,6 +58,9 @@ | |||
| 58 | 58 | ||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <time.h> | 60 | #include <time.h> |
| 61 | |||
| 62 | #include <openssl/opensslconf.h> | ||
| 63 | |||
| 61 | #include "cryptlib.h" | 64 | #include "cryptlib.h" |
| 62 | #include <openssl/bn.h> | 65 | #include <openssl/bn.h> |
| 63 | #include <openssl/rsa.h> | 66 | #include <openssl/rsa.h> |
diff --git a/src/lib/libcrypto/rsa/rsa_eay.c b/src/lib/libcrypto/rsa/rsa_eay.c index 9b390fb8c0..3cc8f6c5cf 100644 --- a/src/lib/libcrypto/rsa/rsa_eay.c +++ b/src/lib/libcrypto/rsa/rsa_eay.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_eay.c,v 1.32 2014/07/10 07:43:11 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_eay.c,v 1.33 2014/07/10 22:45:57 jsing 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 | * |
| @@ -110,6 +110,9 @@ | |||
| 110 | */ | 110 | */ |
| 111 | 111 | ||
| 112 | #include <stdio.h> | 112 | #include <stdio.h> |
| 113 | |||
| 114 | #include <openssl/opensslconf.h> | ||
| 115 | |||
| 113 | #include "cryptlib.h" | 116 | #include "cryptlib.h" |
| 114 | #include <openssl/bn.h> | 117 | #include <openssl/bn.h> |
| 115 | #include <openssl/rsa.h> | 118 | #include <openssl/rsa.h> |
diff --git a/src/lib/libcrypto/rsa/rsa_err.c b/src/lib/libcrypto/rsa/rsa_err.c index 893069a892..4c4a3551c5 100644 --- a/src/lib/libcrypto/rsa/rsa_err.c +++ b/src/lib/libcrypto/rsa/rsa_err.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_err.c,v 1.14 2014/07/09 19:51:38 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_err.c,v 1.15 2014/07/10 22:45:57 jsing Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -59,6 +59,9 @@ | |||
| 59 | */ | 59 | */ |
| 60 | 60 | ||
| 61 | #include <stdio.h> | 61 | #include <stdio.h> |
| 62 | |||
| 63 | #include <openssl/opensslconf.h> | ||
| 64 | |||
| 62 | #include <openssl/err.h> | 65 | #include <openssl/err.h> |
| 63 | #include <openssl/rsa.h> | 66 | #include <openssl/rsa.h> |
| 64 | 67 | ||
diff --git a/src/lib/libcrypto/rsa/rsa_lib.c b/src/lib/libcrypto/rsa/rsa_lib.c index 6f378ba0c0..d7a51c7b05 100644 --- a/src/lib/libcrypto/rsa/rsa_lib.c +++ b/src/lib/libcrypto/rsa/rsa_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_lib.c,v 1.26 2014/07/10 07:43:11 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_lib.c,v 1.27 2014/07/10 22:45:57 jsing 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 | * |
| @@ -57,6 +57,9 @@ | |||
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | |||
| 61 | #include <openssl/opensslconf.h> | ||
| 62 | |||
| 60 | #include <openssl/crypto.h> | 63 | #include <openssl/crypto.h> |
| 61 | #include "cryptlib.h" | 64 | #include "cryptlib.h" |
| 62 | #include <openssl/lhash.h> | 65 | #include <openssl/lhash.h> |
diff --git a/src/lib/libcrypto/rsa/rsa_oaep.c b/src/lib/libcrypto/rsa/rsa_oaep.c index 893fbc04b8..09799818d3 100644 --- a/src/lib/libcrypto/rsa/rsa_oaep.c +++ b/src/lib/libcrypto/rsa/rsa_oaep.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_oaep.c,v 1.21 2014/07/10 13:58:23 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_oaep.c,v 1.22 2014/07/10 22:45:57 jsing Exp $ */ |
| 2 | /* Written by Ulf Moeller. This software is distributed on an "AS IS" | 2 | /* Written by Ulf Moeller. This software is distributed on an "AS IS" |
| 3 | basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. */ | 3 | basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. */ |
| 4 | 4 | ||
| @@ -21,6 +21,8 @@ | |||
| 21 | #include <stdio.h> | 21 | #include <stdio.h> |
| 22 | #include <string.h> | 22 | #include <string.h> |
| 23 | 23 | ||
| 24 | #include <openssl/opensslconf.h> | ||
| 25 | |||
| 24 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1) | 26 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1) |
| 25 | #include "cryptlib.h" | 27 | #include "cryptlib.h" |
| 26 | #include <openssl/bn.h> | 28 | #include <openssl/bn.h> |
diff --git a/src/lib/libcrypto/rsa/rsa_pmeth.c b/src/lib/libcrypto/rsa/rsa_pmeth.c index f9ebd9baba..0b2d680eed 100644 --- a/src/lib/libcrypto/rsa/rsa_pmeth.c +++ b/src/lib/libcrypto/rsa/rsa_pmeth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_pmeth.c,v 1.12 2014/07/10 13:58:23 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_pmeth.c,v 1.13 2014/07/10 22:45:57 jsing Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -60,6 +60,8 @@ | |||
| 60 | #include <stdio.h> | 60 | #include <stdio.h> |
| 61 | #include <string.h> | 61 | #include <string.h> |
| 62 | 62 | ||
| 63 | #include <openssl/opensslconf.h> | ||
| 64 | |||
| 63 | #include "cryptlib.h" | 65 | #include "cryptlib.h" |
| 64 | #include <openssl/asn1t.h> | 66 | #include <openssl/asn1t.h> |
| 65 | #include <openssl/x509.h> | 67 | #include <openssl/x509.h> |
