summaryrefslogtreecommitdiff
path: root/lib/libcrypto/des
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-07-11 08:44:50 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-07-11 08:44:50 +0000
commit7262eba487248ace93831592b64babbfd9ffdf77 (patch)
tree5c2e5b7e9e56e7b42163be504755f904bad6cb48 /lib/libcrypto/des
parent26e4c72fed0e35eecec27a1b3b1d1daa1559dc14 (diff)
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 'lib/libcrypto/des')
-rw-r--r--lib/libcrypto/des/enc_read.c6
-rw-r--r--lib/libcrypto/des/enc_writ.c6
2 files changed, 5 insertions, 7 deletions
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 <stdio.h>
#include <errno.h>
+#include <stdio.h>
#include <openssl/opensslconf.h>
-#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 <openssl/opensslconf.h>
-#include "cryptlib.h"
-#include "des_locl.h"
#include <openssl/rand.h>
+#include "des_locl.h"
+
/*
* WARNINGS:
*