From 8c3482db610348be15fb633bb52b0511c2cabbcf 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/err/err.c | 9 ++++----- src/lib/libcrypto/err/err.h | 4 +++- src/lib/libcrypto/err/err_prn.c | 7 +++---- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/lib/libcrypto/err') diff --git a/src/lib/libcrypto/err/err.c b/src/lib/libcrypto/err/err.c index cc9d78cb07..571bfaed16 100644 --- a/src/lib/libcrypto/err/err.c +++ b/src/lib/libcrypto/err/err.c @@ -1,4 +1,4 @@ -/* $OpenBSD: err.c,v 1.37 2014/07/10 22:45:57 jsing Exp $ */ +/* $OpenBSD: err.c,v 1.38 2014/07/11 08:44:48 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -115,12 +115,11 @@ #include -#include "cryptlib.h" -#include -#include -#include #include +#include +#include #include +#include DECLARE_LHASH_OF(ERR_STRING_DATA); DECLARE_LHASH_OF(ERR_STATE); diff --git a/src/lib/libcrypto/err/err.h b/src/lib/libcrypto/err/err.h index fc2f1a4eaf..2bd6f0e8aa 100644 --- a/src/lib/libcrypto/err/err.h +++ b/src/lib/libcrypto/err/err.h @@ -1,4 +1,4 @@ -/* $OpenBSD: err.h,v 1.19 2014/07/08 11:11:57 jsing Exp $ */ +/* $OpenBSD: err.h,v 1.20 2014/07/11 08:44:48 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -114,8 +114,10 @@ #include +#ifndef LIBRESSL_INTERNAL #include #include +#endif #include #ifndef OPENSSL_NO_BIO diff --git a/src/lib/libcrypto/err/err_prn.c b/src/lib/libcrypto/err/err_prn.c index 75d7ed7a0a..021bcd5d1d 100644 --- a/src/lib/libcrypto/err/err_prn.c +++ b/src/lib/libcrypto/err/err_prn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: err_prn.c,v 1.15 2014/07/10 13:58:22 jsing Exp $ */ +/* $OpenBSD: err_prn.c,v 1.16 2014/07/11 08:44:48 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -59,11 +59,10 @@ #include #include -#include "cryptlib.h" -#include -#include #include +#include #include +#include void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), void *u) -- cgit v1.2.3-55-g6feb