diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-07-10 22:45:59 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-07-10 22:45:59 +0000 |
commit | 03bd4af8b64912d28ecf5845fced13e4926fe5a1 (patch) | |
tree | ebcea9269eef6832b649e7fc5f08dc626d79f4b1 /lib/libcrypto/pem | |
parent | c91dd69f085de982c70898116e3538397e189678 (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/pem')
-rw-r--r-- | lib/libcrypto/pem/pem_all.c | 5 | ||||
-rw-r--r-- | lib/libcrypto/pem/pem_err.c | 5 | ||||
-rw-r--r-- | lib/libcrypto/pem/pem_info.c | 4 | ||||
-rw-r--r-- | lib/libcrypto/pem/pem_lib.c | 4 | ||||
-rw-r--r-- | lib/libcrypto/pem/pem_pkey.c | 4 | ||||
-rw-r--r-- | lib/libcrypto/pem/pem_seal.c | 3 | ||||
-rw-r--r-- | lib/libcrypto/pem/pvkfmt.c | 4 |
7 files changed, 22 insertions, 7 deletions
diff --git a/lib/libcrypto/pem/pem_all.c b/lib/libcrypto/pem/pem_all.c index a43c81f2c27..e883acdc655 100644 --- a/lib/libcrypto/pem/pem_all.c +++ b/lib/libcrypto/pem/pem_all.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pem_all.c,v 1.13 2014/06/12 15:49:30 deraadt Exp $ */ +/* $OpenBSD: pem_all.c,v 1.14 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/bio.h> #include <openssl/evp.h> diff --git a/lib/libcrypto/pem/pem_err.c b/lib/libcrypto/pem/pem_err.c index b7453f3f66e..c3d0fa35768 100644 --- a/lib/libcrypto/pem/pem_err.c +++ b/lib/libcrypto/pem/pem_err.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pem_err.c,v 1.10 2014/06/12 15:49:30 deraadt Exp $ */ +/* $OpenBSD: pem_err.c,v 1.11 2014/07/10 22:45:57 jsing Exp $ */ /* ==================================================================== * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved. * @@ -59,6 +59,9 @@ */ #include <stdio.h> + +#include <openssl/opensslconf.h> + #include <openssl/err.h> #include <openssl/pem.h> diff --git a/lib/libcrypto/pem/pem_info.c b/lib/libcrypto/pem/pem_info.c index 0c8946550e2..eaf70e4267d 100644 --- a/lib/libcrypto/pem/pem_info.c +++ b/lib/libcrypto/pem/pem_info.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pem_info.c,v 1.17 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: pem_info.c,v 1.18 2014/07/10 22:45:57 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -59,6 +59,8 @@ #include <stdio.h> #include <string.h> +#include <openssl/opensslconf.h> + #include "cryptlib.h" #include <openssl/buffer.h> #include <openssl/objects.h> diff --git a/lib/libcrypto/pem/pem_lib.c b/lib/libcrypto/pem/pem_lib.c index 130a2739a53..70e2aa633dd 100644 --- a/lib/libcrypto/pem/pem_lib.c +++ b/lib/libcrypto/pem/pem_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pem_lib.c,v 1.31 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: pem_lib.c,v 1.32 2014/07/10 22:45:57 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -60,6 +60,8 @@ #include <stdio.h> #include <string.h> +#include <openssl/opensslconf.h> + #include "cryptlib.h" #include <openssl/buffer.h> #include <openssl/objects.h> diff --git a/lib/libcrypto/pem/pem_pkey.c b/lib/libcrypto/pem/pem_pkey.c index cfa3c127523..68d6590f14b 100644 --- a/lib/libcrypto/pem/pem_pkey.c +++ b/lib/libcrypto/pem/pem_pkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pem_pkey.c,v 1.15 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: pem_pkey.c,v 1.16 2014/07/10 22:45:57 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -59,6 +59,8 @@ #include <stdio.h> #include <string.h> +#include <openssl/opensslconf.h> + #include "cryptlib.h" #include <openssl/buffer.h> #include <openssl/objects.h> diff --git a/lib/libcrypto/pem/pem_seal.c b/lib/libcrypto/pem/pem_seal.c index 45ea52b24b7..08680e45db0 100644 --- a/lib/libcrypto/pem/pem_seal.c +++ b/lib/libcrypto/pem/pem_seal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pem_seal.c,v 1.18 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: pem_seal.c,v 1.19 2014/07/10 22:45:57 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -60,6 +60,7 @@ #include <string.h> #include <openssl/opensslconf.h> /* for OPENSSL_NO_RSA */ + #ifndef OPENSSL_NO_RSA #include "cryptlib.h" #include <openssl/evp.h> diff --git a/lib/libcrypto/pem/pvkfmt.c b/lib/libcrypto/pem/pvkfmt.c index 53c96e088c3..8a945b4dd77 100644 --- a/lib/libcrypto/pem/pvkfmt.c +++ b/lib/libcrypto/pem/pvkfmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pvkfmt.c,v 1.7 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: pvkfmt.c,v 1.8 2014/07/10 22:45:57 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2005. */ @@ -62,6 +62,8 @@ #include <string.h> +#include <openssl/opensslconf.h> + #include "cryptlib.h" #include <openssl/pem.h> #include <openssl/rand.h> |