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/cmac/cm_ameth.c | 7 ++++--- lib/libcrypto/cmac/cm_pmeth.c | 8 ++++---- lib/libcrypto/cmac/cmac.c | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) (limited to 'lib/libcrypto/cmac') diff --git a/lib/libcrypto/cmac/cm_ameth.c b/lib/libcrypto/cmac/cm_ameth.c index 763d161cfe9..39d8ad3aa8f 100644 --- a/lib/libcrypto/cmac/cm_ameth.c +++ b/lib/libcrypto/cmac/cm_ameth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cm_ameth.c,v 1.5 2014/06/21 13:42:14 jsing Exp $ */ +/* $OpenBSD: cm_ameth.c,v 1.6 2014/07/11 08:44:48 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2010. */ @@ -52,9 +52,10 @@ */ #include -#include "cryptlib.h" -#include + #include +#include + #include "asn1_locl.h" /* CMAC "ASN1" method. This is just here to indicate the diff --git a/lib/libcrypto/cmac/cm_pmeth.c b/lib/libcrypto/cmac/cm_pmeth.c index 6aba656f182..d9059ca4a88 100644 --- a/lib/libcrypto/cmac/cm_pmeth.c +++ b/lib/libcrypto/cmac/cm_pmeth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cm_pmeth.c,v 1.7 2014/07/10 13:58:22 jsing Exp $ */ +/* $OpenBSD: cm_pmeth.c,v 1.8 2014/07/11 08:44:48 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2010. */ @@ -54,11 +54,11 @@ #include #include -#include "cryptlib.h" +#include +#include #include #include -#include -#include + #include "evp_locl.h" /* The context structure and "key" is simply a CMAC_CTX */ diff --git a/lib/libcrypto/cmac/cmac.c b/lib/libcrypto/cmac/cmac.c index b717f786f15..baba674ec1d 100644 --- a/lib/libcrypto/cmac/cmac.c +++ b/lib/libcrypto/cmac/cmac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmac.c,v 1.7 2014/06/21 13:42:14 jsing Exp $ */ +/* $OpenBSD: cmac.c,v 1.8 2014/07/11 08:44:48 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -54,7 +54,7 @@ #include #include #include -#include "cryptlib.h" + #include struct CMAC_CTX_st { -- cgit v1.2.3