From 74e2c009c83ad374bd6acdcfc376a384e25ab007 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Fri, 11 Jul 2014 08:44:49 +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@ --- src/lib/libcrypto/ec/ec_ameth.c | 10 ++++++---- src/lib/libcrypto/ec/ec_pmeth.c | 7 ++++--- src/lib/libcrypto/ec/eck_prn.c | 8 ++++---- 3 files changed, 14 insertions(+), 11 deletions(-) (limited to 'src/lib/libcrypto/ec') diff --git a/src/lib/libcrypto/ec/ec_ameth.c b/src/lib/libcrypto/ec/ec_ameth.c index 6935972de5..93e305b71a 100644 --- a/src/lib/libcrypto/ec/ec_ameth.c +++ b/src/lib/libcrypto/ec/ec_ameth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_ameth.c,v 1.10 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: ec_ameth.c,v 1.11 2014/07/11 08:44:48 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -60,13 +60,15 @@ #include -#include "cryptlib.h" -#include -#include #include +#include +#include +#include + #ifndef OPENSSL_NO_CMS #include #endif + #include "asn1_locl.h" static int diff --git a/src/lib/libcrypto/ec/ec_pmeth.c b/src/lib/libcrypto/ec/ec_pmeth.c index 043c2a5a0c..7ba1d50d7f 100644 --- a/src/lib/libcrypto/ec/ec_pmeth.c +++ b/src/lib/libcrypto/ec/ec_pmeth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_pmeth.c,v 1.6 2014/07/10 13:58:22 jsing Exp $ */ +/* $OpenBSD: ec_pmeth.c,v 1.7 2014/07/11 08:44:48 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -59,12 +59,13 @@ #include #include -#include "cryptlib.h" #include -#include #include #include +#include #include +#include + #include "evp_locl.h" /* EC pkey context structure */ diff --git a/src/lib/libcrypto/ec/eck_prn.c b/src/lib/libcrypto/ec/eck_prn.c index fb5ee7f52b..b0c8bcd22a 100644 --- a/src/lib/libcrypto/ec/eck_prn.c +++ b/src/lib/libcrypto/ec/eck_prn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eck_prn.c,v 1.8 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: eck_prn.c,v 1.9 2014/07/11 08:44:48 jsing Exp $ */ /* * Written by Nils Larsch for the OpenSSL project. */ @@ -66,10 +66,10 @@ #include -#include "cryptlib.h" -#include -#include #include +#include +#include +#include int ECPKParameters_print_fp(FILE * fp, const EC_GROUP * x, int off) -- cgit v1.2.3-55-g6feb