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/asn1 | |
| 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/asn1')
| -rw-r--r-- | src/lib/libcrypto/asn1/ameth_lib.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1_err.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/d2i_pr.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/d2i_pu.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/i2d_pu.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/n_pkey.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/t_req.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/t_spki.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/t_x509.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/x_crl.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/x_pubkey.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/x_x509.c | 5 |
12 files changed, 46 insertions, 12 deletions
diff --git a/src/lib/libcrypto/asn1/ameth_lib.c b/src/lib/libcrypto/asn1/ameth_lib.c index 0c5edd5c62..43981277c4 100644 --- a/src/lib/libcrypto/asn1/ameth_lib.c +++ b/src/lib/libcrypto/asn1/ameth_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ameth_lib.c,v 1.10 2014/07/10 13:58:22 jsing Exp $ */ | 1 | /* $OpenBSD: ameth_lib.c,v 1.11 2014/07/10 22:45:56 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 | */ |
| @@ -59,6 +59,8 @@ | |||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <string.h> | 60 | #include <string.h> |
| 61 | 61 | ||
| 62 | #include <openssl/opensslconf.h> | ||
| 63 | |||
| 62 | #include "cryptlib.h" | 64 | #include "cryptlib.h" |
| 63 | #include <openssl/asn1t.h> | 65 | #include <openssl/asn1t.h> |
| 64 | #include <openssl/x509.h> | 66 | #include <openssl/x509.h> |
diff --git a/src/lib/libcrypto/asn1/asn1_err.c b/src/lib/libcrypto/asn1/asn1_err.c index 7afe894e7d..40b1ad8579 100644 --- a/src/lib/libcrypto/asn1/asn1_err.c +++ b/src/lib/libcrypto/asn1/asn1_err.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1_err.c,v 1.17 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: asn1_err.c,v 1.18 2014/07/10 22:45:56 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/asn1.h> | 66 | #include <openssl/asn1.h> |
| 64 | 67 | ||
diff --git a/src/lib/libcrypto/asn1/d2i_pr.c b/src/lib/libcrypto/asn1/d2i_pr.c index 0633b60d06..3e140c05f5 100644 --- a/src/lib/libcrypto/asn1/d2i_pr.c +++ b/src/lib/libcrypto/asn1/d2i_pr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: d2i_pr.c,v 1.10 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: d2i_pr.c,v 1.11 2014/07/10 22:45:56 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 "cryptlib.h" | 63 | #include "cryptlib.h" |
| 61 | #include <openssl/bn.h> | 64 | #include <openssl/bn.h> |
| 62 | #include <openssl/evp.h> | 65 | #include <openssl/evp.h> |
diff --git a/src/lib/libcrypto/asn1/d2i_pu.c b/src/lib/libcrypto/asn1/d2i_pu.c index 7f0ad0e1a4..4a9475b68e 100644 --- a/src/lib/libcrypto/asn1/d2i_pu.c +++ b/src/lib/libcrypto/asn1/d2i_pu.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: d2i_pu.c,v 1.10 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: d2i_pu.c,v 1.11 2014/07/10 22:45:56 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 "cryptlib.h" | 63 | #include "cryptlib.h" |
| 61 | #include <openssl/bn.h> | 64 | #include <openssl/bn.h> |
| 62 | #include <openssl/evp.h> | 65 | #include <openssl/evp.h> |
diff --git a/src/lib/libcrypto/asn1/i2d_pu.c b/src/lib/libcrypto/asn1/i2d_pu.c index 5b3e96ec96..0f0369f3a5 100644 --- a/src/lib/libcrypto/asn1/i2d_pu.c +++ b/src/lib/libcrypto/asn1/i2d_pu.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: i2d_pu.c,v 1.8 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: i2d_pu.c,v 1.9 2014/07/10 22:45:56 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 "cryptlib.h" | 63 | #include "cryptlib.h" |
| 61 | #include <openssl/bn.h> | 64 | #include <openssl/bn.h> |
| 62 | #include <openssl/evp.h> | 65 | #include <openssl/evp.h> |
diff --git a/src/lib/libcrypto/asn1/n_pkey.c b/src/lib/libcrypto/asn1/n_pkey.c index c9a507ca41..b2047bd586 100644 --- a/src/lib/libcrypto/asn1/n_pkey.c +++ b/src/lib/libcrypto/asn1/n_pkey.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: n_pkey.c,v 1.19 2014/07/10 13:58:22 jsing Exp $ */ | 1 | /* $OpenBSD: n_pkey.c,v 1.20 2014/07/10 22:45:56 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 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <string.h> | 60 | #include <string.h> |
| 61 | 61 | ||
| 62 | #include <openssl/opensslconf.h> | ||
| 63 | |||
| 62 | #include "cryptlib.h" | 64 | #include "cryptlib.h" |
| 63 | #ifndef OPENSSL_NO_RSA | 65 | #ifndef OPENSSL_NO_RSA |
| 64 | #include <openssl/rsa.h> | 66 | #include <openssl/rsa.h> |
diff --git a/src/lib/libcrypto/asn1/t_req.c b/src/lib/libcrypto/asn1/t_req.c index e84d53399a..689df1e203 100644 --- a/src/lib/libcrypto/asn1/t_req.c +++ b/src/lib/libcrypto/asn1/t_req.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: t_req.c,v 1.15 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: t_req.c,v 1.16 2014/07/10 22:45:56 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 "cryptlib.h" | 63 | #include "cryptlib.h" |
| 61 | #include <openssl/buffer.h> | 64 | #include <openssl/buffer.h> |
| 62 | #include <openssl/bn.h> | 65 | #include <openssl/bn.h> |
diff --git a/src/lib/libcrypto/asn1/t_spki.c b/src/lib/libcrypto/asn1/t_spki.c index d6f86d1e2f..91d275ffc2 100644 --- a/src/lib/libcrypto/asn1/t_spki.c +++ b/src/lib/libcrypto/asn1/t_spki.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: t_spki.c,v 1.9 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: t_spki.c,v 1.10 2014/07/10 22:45:56 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 1999. | 3 | * project 1999. |
| 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/x509.h> | 64 | #include <openssl/x509.h> |
| 62 | #include <openssl/asn1.h> | 65 | #include <openssl/asn1.h> |
diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c index b294ffc637..690015b1c1 100644 --- a/src/lib/libcrypto/asn1/t_x509.c +++ b/src/lib/libcrypto/asn1/t_x509.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: t_x509.c,v 1.22 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: t_x509.c,v 1.23 2014/07/10 22:45:56 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 "cryptlib.h" | 63 | #include "cryptlib.h" |
| 61 | #include <openssl/buffer.h> | 64 | #include <openssl/buffer.h> |
| 62 | #include <openssl/bn.h> | 65 | #include <openssl/bn.h> |
diff --git a/src/lib/libcrypto/asn1/x_crl.c b/src/lib/libcrypto/asn1/x_crl.c index eda938f626..13402a66c2 100644 --- a/src/lib/libcrypto/asn1/x_crl.c +++ b/src/lib/libcrypto/asn1/x_crl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_crl.c,v 1.15 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: x_crl.c,v 1.16 2014/07/10 22:45:56 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 "cryptlib.h" | 63 | #include "cryptlib.h" |
| 61 | #include "asn1_locl.h" | 64 | #include "asn1_locl.h" |
| 62 | #include <openssl/asn1t.h> | 65 | #include <openssl/asn1t.h> |
diff --git a/src/lib/libcrypto/asn1/x_pubkey.c b/src/lib/libcrypto/asn1/x_pubkey.c index b308b3d445..f702bdbe97 100644 --- a/src/lib/libcrypto/asn1/x_pubkey.c +++ b/src/lib/libcrypto/asn1/x_pubkey.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_pubkey.c,v 1.19 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: x_pubkey.c,v 1.20 2014/07/10 22:45:56 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 "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/asn1/x_x509.c b/src/lib/libcrypto/asn1/x_x509.c index 28f51f6873..43772f9ac1 100644 --- a/src/lib/libcrypto/asn1/x_x509.c +++ b/src/lib/libcrypto/asn1/x_x509.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_x509.c,v 1.15 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: x_x509.c,v 1.16 2014/07/10 22:45:56 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 "cryptlib.h" | 63 | #include "cryptlib.h" |
| 61 | #include <openssl/evp.h> | 64 | #include <openssl/evp.h> |
| 62 | #include <openssl/asn1t.h> | 65 | #include <openssl/asn1t.h> |
