diff options
author | jsing <> | 2023-04-11 10:26:29 +0000 |
---|---|---|
committer | jsing <> | 2023-04-11 10:26:29 +0000 |
commit | cca0476a6d5ed4d8e14512ca6d1438f93922ecc6 (patch) | |
tree | 8ea682ecad4fcb4ee578ac07bec948eb4f50e8e3 /src/lib | |
parent | ce1cb5921b51eed75903d8b9945131d5e7146f07 (diff) | |
download | openbsd-cca0476a6d5ed4d8e14512ca6d1438f93922ecc6.tar.gz openbsd-cca0476a6d5ed4d8e14512ca6d1438f93922ecc6.tar.bz2 openbsd-cca0476a6d5ed4d8e14512ca6d1438f93922ecc6.zip |
Omit sha512_block_data_order() prototype when assembly is not being used.
In the case that the pure C implementation of SHA512 is being used, the
prototype is unnecessary as the function is declared static and exists
in dependency order. Simply omit the prototype rather than using #ifndef
to toggle the static prefix.
ok tb@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/sha/sha512.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libcrypto/sha/sha512.c b/src/lib/libcrypto/sha/sha512.c index d79e2879d2..3fe20de51b 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.25 2023/04/11 10:21:02 jsing Exp $ */ | 1 | /* $OpenBSD: sha512.c,v 1.26 2023/04/11 10:26:29 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -67,10 +67,9 @@ | |||
67 | #define SHA512_BLOCK_CAN_MANAGE_UNALIGNED_DATA | 67 | #define SHA512_BLOCK_CAN_MANAGE_UNALIGNED_DATA |
68 | #endif | 68 | #endif |
69 | 69 | ||
70 | #ifndef SHA512_ASM | 70 | #ifdef SHA512_ASM |
71 | static | 71 | void sha512_block_data_order(SHA512_CTX *ctx, const void *in, size_t num); |
72 | #endif | 72 | #endif |
73 | void sha512_block_data_order (SHA512_CTX *ctx, const void *in, size_t num); | ||
74 | 73 | ||
75 | #ifndef SHA512_ASM | 74 | #ifndef SHA512_ASM |
76 | static const SHA_LONG64 K512[80] = { | 75 | static const SHA_LONG64 K512[80] = { |