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/sha | |
| 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/sha')
| -rw-r--r-- | src/lib/libcrypto/sha/sha512.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/sha/sha512.c b/src/lib/libcrypto/sha/sha512.c index eb10024e32..ad72b7e6f1 100644 --- a/src/lib/libcrypto/sha/sha512.c +++ b/src/lib/libcrypto/sha/sha512.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: sha512.c,v 1.12 2014/07/10 22:45:58 jsing Exp $ */ | 1 | /* $OpenBSD: sha512.c,v 1.13 2014/07/11 08:44:49 jsing Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved | 3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved |
| 4 | * according to the OpenSSL license [found in ../../LICENSE]. | 4 | * according to the OpenSSL license [found in ../../LICENSE]. |
| @@ -50,10 +50,8 @@ | |||
| 50 | */ | 50 | */ |
| 51 | 51 | ||
| 52 | #include <openssl/crypto.h> | 52 | #include <openssl/crypto.h> |
| 53 | #include <openssl/sha.h> | ||
| 54 | #include <openssl/opensslv.h> | 53 | #include <openssl/opensslv.h> |
| 55 | 54 | #include <openssl/sha.h> | |
| 56 | #include "cryptlib.h" | ||
| 57 | 55 | ||
| 58 | #if !defined(__STRICT_ALIGNMENT) || defined(SHA512_ASM) | 56 | #if !defined(__STRICT_ALIGNMENT) || defined(SHA512_ASM) |
| 59 | #define SHA512_BLOCK_CAN_MANAGE_UNALIGNED_DATA | 57 | #define SHA512_BLOCK_CAN_MANAGE_UNALIGNED_DATA |
