summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/err
diff options
context:
space:
mode:
authorjsing <>2014-07-11 08:44:49 +0000
committerjsing <>2014-07-11 08:44:49 +0000
commit8c3482db610348be15fb633bb52b0511c2cabbcf (patch)
tree0e726f9e971e00f4c8cd8afab71589803fc11b7f /src/lib/libcrypto/err
parenta336cdb63c1fe5d934826147bf5c19d317ced73b (diff)
downloadopenbsd-8c3482db610348be15fb633bb52b0511c2cabbcf.tar.gz
openbsd-8c3482db610348be15fb633bb52b0511c2cabbcf.tar.bz2
openbsd-8c3482db610348be15fb633bb52b0511c2cabbcf.zip
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@
Diffstat (limited to 'src/lib/libcrypto/err')
-rw-r--r--src/lib/libcrypto/err/err.c9
-rw-r--r--src/lib/libcrypto/err/err.h4
-rw-r--r--src/lib/libcrypto/err/err_prn.c7
3 files changed, 10 insertions, 10 deletions
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 @@
1/* $OpenBSD: err.c,v 1.37 2014/07/10 22:45:57 jsing Exp $ */ 1/* $OpenBSD: err.c,v 1.38 2014/07/11 08:44:48 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -115,12 +115,11 @@
115 115
116#include <openssl/opensslconf.h> 116#include <openssl/opensslconf.h>
117 117
118#include "cryptlib.h"
119#include <openssl/lhash.h>
120#include <openssl/crypto.h>
121#include <openssl/buffer.h>
122#include <openssl/bio.h> 118#include <openssl/bio.h>
119#include <openssl/buffer.h>
120#include <openssl/crypto.h>
123#include <openssl/err.h> 121#include <openssl/err.h>
122#include <openssl/lhash.h>
124 123
125DECLARE_LHASH_OF(ERR_STRING_DATA); 124DECLARE_LHASH_OF(ERR_STRING_DATA);
126DECLARE_LHASH_OF(ERR_STATE); 125DECLARE_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 @@
1/* $OpenBSD: err.h,v 1.19 2014/07/08 11:11:57 jsing Exp $ */ 1/* $OpenBSD: err.h,v 1.20 2014/07/11 08:44:48 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -114,8 +114,10 @@
114 114
115#include <openssl/opensslconf.h> 115#include <openssl/opensslconf.h>
116 116
117#ifndef LIBRESSL_INTERNAL
117#include <stdio.h> 118#include <stdio.h>
118#include <stdlib.h> 119#include <stdlib.h>
120#endif
119 121
120#include <openssl/ossl_typ.h> 122#include <openssl/ossl_typ.h>
121#ifndef OPENSSL_NO_BIO 123#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 @@
1/* $OpenBSD: err_prn.c,v 1.15 2014/07/10 13:58:22 jsing Exp $ */ 1/* $OpenBSD: err_prn.c,v 1.16 2014/07/11 08:44:48 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -59,11 +59,10 @@
59#include <stdio.h> 59#include <stdio.h>
60#include <string.h> 60#include <string.h>
61 61
62#include "cryptlib.h"
63#include <openssl/lhash.h>
64#include <openssl/crypto.h>
65#include <openssl/buffer.h> 62#include <openssl/buffer.h>
63#include <openssl/crypto.h>
66#include <openssl/err.h> 64#include <openssl/err.h>
65#include <openssl/lhash.h>
67 66
68void 67void
69ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), void *u) 68ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), void *u)