diff options
| author | jsing <> | 2014-07-11 08:44:49 +0000 |
|---|---|---|
| committer | jsing <> | 2014-07-11 08:44:49 +0000 |
| commit | 74e2c009c83ad374bd6acdcfc376a384e25ab007 (patch) | |
| tree | 0e726f9e971e00f4c8cd8afab71589803fc11b7f /src/lib/libcrypto/des | |
| parent | 7610da071a20f4325acc14cb2e961617a821ab35 (diff) | |
| download | openbsd-74e2c009c83ad374bd6acdcfc376a384e25ab007.tar.gz openbsd-74e2c009c83ad374bd6acdcfc376a384e25ab007.tar.bz2 openbsd-74e2c009c83ad374bd6acdcfc376a384e25ab007.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/des')
| -rw-r--r-- | src/lib/libcrypto/des/enc_read.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/des/enc_writ.c | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/libcrypto/des/enc_read.c b/src/lib/libcrypto/des/enc_read.c index b358fadd48..e4680af4f2 100644 --- a/src/lib/libcrypto/des/enc_read.c +++ b/src/lib/libcrypto/des/enc_read.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: enc_read.c,v 1.13 2014/07/10 22:45:56 jsing Exp $ */ | 1 | /* $OpenBSD: enc_read.c,v 1.14 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 | * |
| @@ -56,19 +56,17 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <stdio.h> | ||
| 60 | #include <errno.h> | 59 | #include <errno.h> |
| 60 | #include <stdio.h> | ||
| 61 | 61 | ||
| 62 | #include <openssl/opensslconf.h> | 62 | #include <openssl/opensslconf.h> |
| 63 | 63 | ||
| 64 | #include "cryptlib.h" | ||
| 65 | #include "des_locl.h" | 64 | #include "des_locl.h" |
| 66 | 65 | ||
| 67 | /* This has some uglies in it but it works - even over sockets. */ | 66 | /* This has some uglies in it but it works - even over sockets. */ |
| 68 | /*extern int errno;*/ | 67 | /*extern int errno;*/ |
| 69 | int DES_rw_mode = DES_PCBC_MODE; | 68 | int DES_rw_mode = DES_PCBC_MODE; |
| 70 | 69 | ||
| 71 | |||
| 72 | /* | 70 | /* |
| 73 | * WARNINGS: | 71 | * WARNINGS: |
| 74 | * | 72 | * |
diff --git a/src/lib/libcrypto/des/enc_writ.c b/src/lib/libcrypto/des/enc_writ.c index 0e3a2d856a..a7049ff44e 100644 --- a/src/lib/libcrypto/des/enc_writ.c +++ b/src/lib/libcrypto/des/enc_writ.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: enc_writ.c,v 1.11 2014/07/10 22:45:56 jsing Exp $ */ | 1 | /* $OpenBSD: enc_writ.c,v 1.12 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 | * |
| @@ -62,10 +62,10 @@ | |||
| 62 | 62 | ||
| 63 | #include <openssl/opensslconf.h> | 63 | #include <openssl/opensslconf.h> |
| 64 | 64 | ||
| 65 | #include "cryptlib.h" | ||
| 66 | #include "des_locl.h" | ||
| 67 | #include <openssl/rand.h> | 65 | #include <openssl/rand.h> |
| 68 | 66 | ||
| 67 | #include "des_locl.h" | ||
| 68 | |||
| 69 | /* | 69 | /* |
| 70 | * WARNINGS: | 70 | * WARNINGS: |
| 71 | * | 71 | * |
