From 7262eba487248ace93831592b64babbfd9ffdf77 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Fri, 11 Jul 2014 08:44:50 +0000 Subject: 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@ --- lib/libcrypto/ocsp/ocsp_cl.c | 9 +++++---- lib/libcrypto/ocsp/ocsp_ext.c | 5 ++--- lib/libcrypto/ocsp/ocsp_lib.c | 10 +++++----- lib/libcrypto/ocsp/ocsp_srv.c | 9 +++++---- 4 files changed, 17 insertions(+), 16 deletions(-) (limited to 'lib/libcrypto/ocsp') 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 for the OpenSSL * project. */ @@ -63,13 +63,14 @@ #include #include -#include + +#include +#include #include +#include #include #include -#include #include -#include /* 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 for the OpenSSL * project. */ @@ -61,14 +61,13 @@ * */ -#include #include #include #include -#include #include #include +#include #include /* 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 for the OpenSSL * project. */ @@ -61,19 +61,19 @@ * */ -#include #include #include #include +#include +#include #include +#include +#include #include #include -#include #include -#include -#include /* 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 -#include + +#include #include +#include +#include #include #include -#include #include -#include /* Utility functions related to sending OCSP responses and extracting * relevant information from the request. -- cgit v1.2.3