diff options
| author | jsing <> | 2023-04-11 10:26:29 +0000 |
|---|---|---|
| committer | jsing <> | 2023-04-11 10:26:29 +0000 |
| commit | 3d38a9b6c221a93d7d82018ad5cf6b7a4f43cb2b (patch) | |
| tree | 8ea682ecad4fcb4ee578ac07bec948eb4f50e8e3 /src/lib/libc | |
| parent | 36209ba1879b9e062bbfbd50e4b72b768acc44a6 (diff) | |
| download | openbsd-3d38a9b6c221a93d7d82018ad5cf6b7a4f43cb2b.tar.gz openbsd-3d38a9b6c221a93d7d82018ad5cf6b7a4f43cb2b.tar.bz2 openbsd-3d38a9b6c221a93d7d82018ad5cf6b7a4f43cb2b.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 '')
| -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] = { |
