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/des/enc_read.c | 6 ++---- lib/libcrypto/des/enc_writ.c | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'lib/libcrypto/des') diff --git a/lib/libcrypto/des/enc_read.c b/lib/libcrypto/des/enc_read.c index b358fadd48a..e4680af4f24 100644 --- a/lib/libcrypto/des/enc_read.c +++ b/lib/libcrypto/des/enc_read.c @@ -1,4 +1,4 @@ -/* $OpenBSD: enc_read.c,v 1.13 2014/07/10 22:45:56 jsing Exp $ */ +/* $OpenBSD: enc_read.c,v 1.14 2014/07/11 08:44:48 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -56,19 +56,17 @@ * [including the GNU Public Licence.] */ -#include #include +#include #include -#include "cryptlib.h" #include "des_locl.h" /* This has some uglies in it but it works - even over sockets. */ /*extern int errno;*/ int DES_rw_mode = DES_PCBC_MODE; - /* * WARNINGS: * diff --git a/lib/libcrypto/des/enc_writ.c b/lib/libcrypto/des/enc_writ.c index 0e3a2d856a7..a7049ff44eb 100644 --- a/lib/libcrypto/des/enc_writ.c +++ b/lib/libcrypto/des/enc_writ.c @@ -1,4 +1,4 @@ -/* $OpenBSD: enc_writ.c,v 1.11 2014/07/10 22:45:56 jsing Exp $ */ +/* $OpenBSD: enc_writ.c,v 1.12 2014/07/11 08:44:48 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -62,10 +62,10 @@ #include -#include "cryptlib.h" -#include "des_locl.h" #include +#include "des_locl.h" + /* * WARNINGS: * -- cgit v1.2.3