diff options
Diffstat (limited to 'src/lib/libcrypto/sha')
| -rw-r--r-- | src/lib/libcrypto/sha/sha.h | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/sha/sha1_one.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/sha/sha1dgst.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/sha/sha256.c | 7 | ||||
| -rw-r--r-- | src/lib/libcrypto/sha/sha512.c | 12 | ||||
| -rw-r--r-- | src/lib/libcrypto/sha/sha_dgst.c | 7 | ||||
| -rw-r--r-- | src/lib/libcrypto/sha/sha_one.c | 7 |
7 files changed, 33 insertions, 17 deletions
diff --git a/src/lib/libcrypto/sha/sha.h b/src/lib/libcrypto/sha/sha.h index 5baa80e62f..c2e303fcc2 100644 --- a/src/lib/libcrypto/sha/sha.h +++ b/src/lib/libcrypto/sha/sha.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: sha.h,v 1.16 2014/07/10 09:01:04 miod Exp $ */ | 1 | /* $OpenBSD: sha.h,v 1.17 2014/07/10 22:45:58 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,11 +56,11 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <stddef.h> | ||
| 60 | |||
| 59 | #ifndef HEADER_SHA_H | 61 | #ifndef HEADER_SHA_H |
| 60 | #define HEADER_SHA_H | 62 | #define HEADER_SHA_H |
| 61 | 63 | ||
| 62 | #include <stddef.h> | ||
| 63 | |||
| 64 | #include <openssl/opensslconf.h> | 64 | #include <openssl/opensslconf.h> |
| 65 | 65 | ||
| 66 | #ifdef __cplusplus | 66 | #ifdef __cplusplus |
diff --git a/src/lib/libcrypto/sha/sha1_one.c b/src/lib/libcrypto/sha/sha1_one.c index b6178c39af..f6b5e4bacf 100644 --- a/src/lib/libcrypto/sha/sha1_one.c +++ b/src/lib/libcrypto/sha/sha1_one.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: sha1_one.c,v 1.10 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: sha1_one.c,v 1.11 2014/07/10 22:45:58 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 | * |
| @@ -58,6 +58,9 @@ | |||
| 58 | 58 | ||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <string.h> | 60 | #include <string.h> |
| 61 | |||
| 62 | #include <openssl/opensslconf.h> | ||
| 63 | |||
| 61 | #include <openssl/crypto.h> | 64 | #include <openssl/crypto.h> |
| 62 | #include <openssl/sha.h> | 65 | #include <openssl/sha.h> |
| 63 | 66 | ||
diff --git a/src/lib/libcrypto/sha/sha1dgst.c b/src/lib/libcrypto/sha/sha1dgst.c index 94fabddd83..aac27bdd2d 100644 --- a/src/lib/libcrypto/sha/sha1dgst.c +++ b/src/lib/libcrypto/sha/sha1dgst.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: sha1dgst.c,v 1.12 2014/07/09 11:10:51 bcook Exp $ */ | 1 | /* $OpenBSD: sha1dgst.c,v 1.13 2014/07/10 22:45:58 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,8 +56,10 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <openssl/crypto.h> | ||
| 60 | #include <openssl/opensslconf.h> | 59 | #include <openssl/opensslconf.h> |
| 60 | |||
| 61 | #include <openssl/crypto.h> | ||
| 62 | |||
| 61 | #if !defined(OPENSSL_NO_SHA1) && !defined(OPENSSL_NO_SHA) | 63 | #if !defined(OPENSSL_NO_SHA1) && !defined(OPENSSL_NO_SHA) |
| 62 | 64 | ||
| 63 | #undef SHA_0 | 65 | #undef SHA_0 |
diff --git a/src/lib/libcrypto/sha/sha256.c b/src/lib/libcrypto/sha/sha256.c index 6d7af561fc..a4c259dab7 100644 --- a/src/lib/libcrypto/sha/sha256.c +++ b/src/lib/libcrypto/sha/sha256.c | |||
| @@ -1,15 +1,18 @@ | |||
| 1 | /* $OpenBSD: sha256.c,v 1.6 2014/07/09 16:06:13 miod Exp $ */ | 1 | /* $OpenBSD: sha256.c,v 1.7 2014/07/10 22:45:58 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]. |
| 5 | * ==================================================================== | 5 | * ==================================================================== |
| 6 | */ | 6 | */ |
| 7 | |||
| 7 | #include <openssl/opensslconf.h> | 8 | #include <openssl/opensslconf.h> |
| 9 | |||
| 8 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA256) | 10 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA256) |
| 9 | 11 | ||
| 12 | #include <machine/endian.h> | ||
| 13 | |||
| 10 | #include <stdlib.h> | 14 | #include <stdlib.h> |
| 11 | #include <string.h> | 15 | #include <string.h> |
| 12 | #include <machine/endian.h> | ||
| 13 | 16 | ||
| 14 | #include <openssl/crypto.h> | 17 | #include <openssl/crypto.h> |
| 15 | #include <openssl/sha.h> | 18 | #include <openssl/sha.h> |
diff --git a/src/lib/libcrypto/sha/sha512.c b/src/lib/libcrypto/sha/sha512.c index 01ec6a6cde..eb10024e32 100644 --- a/src/lib/libcrypto/sha/sha512.c +++ b/src/lib/libcrypto/sha/sha512.c | |||
| @@ -1,10 +1,17 @@ | |||
| 1 | /* $OpenBSD: sha512.c,v 1.11 2014/07/09 16:06:13 miod Exp $ */ | 1 | /* $OpenBSD: sha512.c,v 1.12 2014/07/10 22:45:58 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]. |
| 5 | * ==================================================================== | 5 | * ==================================================================== |
| 6 | */ | 6 | */ |
| 7 | |||
| 8 | #include <machine/endian.h> | ||
| 9 | |||
| 10 | #include <stdlib.h> | ||
| 11 | #include <string.h> | ||
| 12 | |||
| 7 | #include <openssl/opensslconf.h> | 13 | #include <openssl/opensslconf.h> |
| 14 | |||
| 8 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA512) | 15 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA512) |
| 9 | /* | 16 | /* |
| 10 | * IMPLEMENTATION NOTES. | 17 | * IMPLEMENTATION NOTES. |
| @@ -41,9 +48,6 @@ | |||
| 41 | * 16-bit platforms. | 48 | * 16-bit platforms. |
| 42 | * <appro@fy.chalmers.se> | 49 | * <appro@fy.chalmers.se> |
| 43 | */ | 50 | */ |
| 44 | #include <stdlib.h> | ||
| 45 | #include <string.h> | ||
| 46 | #include <machine/endian.h> | ||
| 47 | 51 | ||
| 48 | #include <openssl/crypto.h> | 52 | #include <openssl/crypto.h> |
| 49 | #include <openssl/sha.h> | 53 | #include <openssl/sha.h> |
diff --git a/src/lib/libcrypto/sha/sha_dgst.c b/src/lib/libcrypto/sha/sha_dgst.c index a255450977..bb8c0c244f 100644 --- a/src/lib/libcrypto/sha/sha_dgst.c +++ b/src/lib/libcrypto/sha/sha_dgst.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: sha_dgst.c,v 1.11 2014/07/09 11:10:51 bcook Exp $ */ | 1 | /* $OpenBSD: sha_dgst.c,v 1.12 2014/07/10 22:45:58 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,8 +56,10 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <openssl/crypto.h> | ||
| 60 | #include <openssl/opensslconf.h> | 59 | #include <openssl/opensslconf.h> |
| 60 | |||
| 61 | #include <openssl/crypto.h> | ||
| 62 | |||
| 61 | #if !defined(OPENSSL_NO_SHA0) && !defined(OPENSSL_NO_SHA) | 63 | #if !defined(OPENSSL_NO_SHA0) && !defined(OPENSSL_NO_SHA) |
| 62 | 64 | ||
| 63 | #undef SHA_1 | 65 | #undef SHA_1 |
| @@ -70,4 +72,3 @@ | |||
| 70 | #include "sha_locl.h" | 72 | #include "sha_locl.h" |
| 71 | 73 | ||
| 72 | #endif | 74 | #endif |
| 73 | |||
diff --git a/src/lib/libcrypto/sha/sha_one.c b/src/lib/libcrypto/sha/sha_one.c index 557d3cab6a..1d3fc35f05 100644 --- a/src/lib/libcrypto/sha/sha_one.c +++ b/src/lib/libcrypto/sha/sha_one.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: sha_one.c,v 1.7 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: sha_one.c,v 1.8 2014/07/10 22:45:58 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 | * |
| @@ -58,8 +58,11 @@ | |||
| 58 | 58 | ||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <string.h> | 60 | #include <string.h> |
| 61 | #include <openssl/sha.h> | 61 | |
| 62 | #include <openssl/opensslconf.h> | ||
| 63 | |||
| 62 | #include <openssl/crypto.h> | 64 | #include <openssl/crypto.h> |
| 65 | #include <openssl/sha.h> | ||
| 63 | 66 | ||
| 64 | #ifndef OPENSSL_NO_SHA0 | 67 | #ifndef OPENSSL_NO_SHA0 |
| 65 | unsigned char *SHA(const unsigned char *d, size_t n, unsigned char *md) | 68 | unsigned char *SHA(const unsigned char *d, size_t n, unsigned char *md) |
