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/ui/ui_lib.c | 7 +++---- lib/libcrypto/ui/ui_openssl.c | 13 +++++-------- 2 files changed, 8 insertions(+), 12 deletions(-) (limited to 'lib/libcrypto/ui') diff --git a/lib/libcrypto/ui/ui_lib.c b/lib/libcrypto/ui/ui_lib.c index fa171b4d212..c2fe62df338 100644 --- a/lib/libcrypto/ui/ui_lib.c +++ b/lib/libcrypto/ui/ui_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ui_lib.c,v 1.24 2014/06/12 15:49:31 deraadt Exp $ */ +/* $OpenBSD: ui_lib.c,v 1.25 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL * project 2001. */ @@ -60,11 +60,10 @@ #include -#include "cryptlib.h" - #include -#include #include +#include + #include "ui_locl.h" IMPLEMENT_STACK_OF(UI_STRING_ST) static const UI_METHOD *default_UI_meth = NULL; diff --git a/lib/libcrypto/ui/ui_openssl.c b/lib/libcrypto/ui/ui_openssl.c index 32298625ca2..f7f01bb4f13 100644 --- a/lib/libcrypto/ui/ui_openssl.c +++ b/lib/libcrypto/ui/ui_openssl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ui_openssl.c,v 1.21 2014/06/12 15:49:31 deraadt Exp $ */ +/* $OpenBSD: ui_openssl.c,v 1.22 2014/07/11 08:44:49 jsing Exp $ */ /* Written by Richard Levitte (richard@levitte.org) and others * for the OpenSSL project 2001. */ @@ -114,26 +114,23 @@ * [including the GNU Public Licence.] */ +#include + #include +#include #include #include #include -#include - -#include #include +#include #include "ui_locl.h" -#include "cryptlib.h" - -#include #ifndef NX509_SIG #define NX509_SIG 32 #endif - /* Define globals. They are protected by a lock */ static struct sigaction savsig[NX509_SIG]; -- cgit v1.2.3