diff options
author | jsing <> | 2014-07-11 08:44:49 +0000 |
---|---|---|
committer | jsing <> | 2014-07-11 08:44:49 +0000 |
commit | 8c3482db610348be15fb633bb52b0511c2cabbcf (patch) | |
tree | 0e726f9e971e00f4c8cd8afab71589803fc11b7f /src/lib/libcrypto/sha/sha512.c | |
parent | a336cdb63c1fe5d934826147bf5c19d317ced73b (diff) | |
download | openbsd-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/sha/sha512.c')
-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 |