diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-07-11 08:44:50 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-07-11 08:44:50 +0000 |
commit | 7262eba487248ace93831592b64babbfd9ffdf77 (patch) | |
tree | 5c2e5b7e9e56e7b42163be504755f904bad6cb48 /lib/libcrypto/ocsp | |
parent | 26e4c72fed0e35eecec27a1b3b1d1daa1559dc14 (diff) |
Only import cryptlib.h in the four source files that actually need it.
Remove the openssl public includes from cryptlib.h and add a small number
of includes into the source files that actually need them. While here,
also sort/group/tidy the includes.
ok beck@ miod@
Diffstat (limited to 'lib/libcrypto/ocsp')
-rw-r--r-- | lib/libcrypto/ocsp/ocsp_cl.c | 9 | ||||
-rw-r--r-- | lib/libcrypto/ocsp/ocsp_ext.c | 5 | ||||
-rw-r--r-- | lib/libcrypto/ocsp/ocsp_lib.c | 10 | ||||
-rw-r--r-- | lib/libcrypto/ocsp/ocsp_srv.c | 9 |
4 files changed, 17 insertions, 16 deletions
diff --git a/lib/libcrypto/ocsp/ocsp_cl.c b/lib/libcrypto/ocsp/ocsp_cl.c index d435adae905..030aaef18c2 100644 --- a/lib/libcrypto/ocsp/ocsp_cl.c +++ b/lib/libcrypto/ocsp/ocsp_cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ocsp_cl.c,v 1.6 2014/06/12 15:49:30 deraadt Exp $ */ +/* $OpenBSD: ocsp_cl.c,v 1.7 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL * project. */ @@ -63,13 +63,14 @@ #include <stdio.h> #include <time.h> -#include <cryptlib.h> + +#include <openssl/err.h> +#include <openssl/ocsp.h> #include <openssl/objects.h> +#include <openssl/pem.h> #include <openssl/rand.h> #include <openssl/x509.h> -#include <openssl/pem.h> #include <openssl/x509v3.h> -#include <openssl/ocsp.h> /* Utility functions related to sending OCSP requests and extracting * relevant information from the response. diff --git a/lib/libcrypto/ocsp/ocsp_ext.c b/lib/libcrypto/ocsp/ocsp_ext.c index a0e58e7401f..c7b9d817ac5 100644 --- a/lib/libcrypto/ocsp/ocsp_ext.c +++ b/lib/libcrypto/ocsp/ocsp_ext.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ocsp_ext.c,v 1.10 2014/07/10 13:58:23 jsing Exp $ */ +/* $OpenBSD: ocsp_ext.c,v 1.11 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL * project. */ @@ -61,14 +61,13 @@ * */ -#include <cryptlib.h> #include <stdio.h> #include <string.h> #include <openssl/objects.h> -#include <openssl/x509.h> #include <openssl/ocsp.h> #include <openssl/rand.h> +#include <openssl/x509.h> #include <openssl/x509v3.h> /* Standard wrapper functions for extensions */ diff --git a/lib/libcrypto/ocsp/ocsp_lib.c b/lib/libcrypto/ocsp/ocsp_lib.c index eda627f4ed7..8599e48bff3 100644 --- a/lib/libcrypto/ocsp/ocsp_lib.c +++ b/lib/libcrypto/ocsp/ocsp_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ocsp_lib.c,v 1.13 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: ocsp_lib.c,v 1.14 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL * project. */ @@ -61,19 +61,19 @@ * */ -#include <cryptlib.h> #include <stdio.h> #include <string.h> #include <openssl/opensslconf.h> +#include <openssl/asn1t.h> +#include <openssl/err.h> #include <openssl/objects.h> +#include <openssl/ocsp.h> +#include <openssl/pem.h> #include <openssl/rand.h> #include <openssl/x509.h> -#include <openssl/pem.h> #include <openssl/x509v3.h> -#include <openssl/ocsp.h> -#include <openssl/asn1t.h> /* Convert a certificate and its issuer to an OCSP_CERTID */ diff --git a/lib/libcrypto/ocsp/ocsp_srv.c b/lib/libcrypto/ocsp/ocsp_srv.c index cad3bf81be4..c18519fb11d 100644 --- a/lib/libcrypto/ocsp/ocsp_srv.c +++ b/lib/libcrypto/ocsp/ocsp_srv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ocsp_srv.c,v 1.5 2014/06/12 15:49:30 deraadt Exp $ */ +/* $OpenBSD: ocsp_srv.c,v 1.6 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2001. */ @@ -57,13 +57,14 @@ */ #include <stdio.h> -#include <cryptlib.h> + +#include <openssl/err.h> #include <openssl/objects.h> +#include <openssl/ocsp.h> +#include <openssl/pem.h> #include <openssl/rand.h> #include <openssl/x509.h> -#include <openssl/pem.h> #include <openssl/x509v3.h> -#include <openssl/ocsp.h> /* Utility functions related to sending OCSP responses and extracting * relevant information from the request. |