diff options
author | beck <> | 2024-04-09 13:52:42 +0000 |
---|---|---|
committer | beck <> | 2024-04-09 13:52:42 +0000 |
commit | b8c1a99fdb41738feb7a1352029c5f5aa42fed86 (patch) | |
tree | b9ee99887d6be79187ba476e0f6ac92f0820775f /src/lib/libcrypto/evp/m_sha1.c | |
parent | 94d86681cdef7dae37d5ce494a200523ce63b70c (diff) | |
download | openbsd-b8c1a99fdb41738feb7a1352029c5f5aa42fed86.tar.gz openbsd-b8c1a99fdb41738feb7a1352029c5f5aa42fed86.tar.bz2 openbsd-b8c1a99fdb41738feb7a1352029c5f5aa42fed86.zip |
Hide public symbols in evp.h
largely mechanically done by the guentherizer 9000
ok tb@
Diffstat (limited to 'src/lib/libcrypto/evp/m_sha1.c')
-rw-r--r-- | src/lib/libcrypto/evp/m_sha1.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/m_sha1.c b/src/lib/libcrypto/evp/m_sha1.c index c65e0515c8..cdceb99aaf 100644 --- a/src/lib/libcrypto/evp/m_sha1.c +++ b/src/lib/libcrypto/evp/m_sha1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_sha1.c,v 1.25 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: m_sha1.c,v 1.26 2024/04/09 13:52:41 beck 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 | * |
@@ -110,6 +110,7 @@ EVP_sha1(void) | |||
110 | { | 110 | { |
111 | return &sha1_md; | 111 | return &sha1_md; |
112 | } | 112 | } |
113 | LCRYPTO_ALIAS(EVP_sha1); | ||
113 | #endif | 114 | #endif |
114 | 115 | ||
115 | #ifndef OPENSSL_NO_SHA256 | 116 | #ifndef OPENSSL_NO_SHA256 |
@@ -155,6 +156,7 @@ EVP_sha224(void) | |||
155 | { | 156 | { |
156 | return &sha224_md; | 157 | return &sha224_md; |
157 | } | 158 | } |
159 | LCRYPTO_ALIAS(EVP_sha224); | ||
158 | 160 | ||
159 | static int | 161 | static int |
160 | sha256_init(EVP_MD_CTX *ctx) | 162 | sha256_init(EVP_MD_CTX *ctx) |
@@ -193,6 +195,7 @@ EVP_sha256(void) | |||
193 | { | 195 | { |
194 | return &sha256_md; | 196 | return &sha256_md; |
195 | } | 197 | } |
198 | LCRYPTO_ALIAS(EVP_sha256); | ||
196 | #endif /* ifndef OPENSSL_NO_SHA256 */ | 199 | #endif /* ifndef OPENSSL_NO_SHA256 */ |
197 | 200 | ||
198 | #ifndef OPENSSL_NO_SHA512 | 201 | #ifndef OPENSSL_NO_SHA512 |
@@ -234,6 +237,7 @@ EVP_sha384(void) | |||
234 | { | 237 | { |
235 | return &sha384_md; | 238 | return &sha384_md; |
236 | } | 239 | } |
240 | LCRYPTO_ALIAS(EVP_sha384); | ||
237 | 241 | ||
238 | static int | 242 | static int |
239 | sha512_init(EVP_MD_CTX *ctx) | 243 | sha512_init(EVP_MD_CTX *ctx) |
@@ -272,6 +276,7 @@ EVP_sha512(void) | |||
272 | { | 276 | { |
273 | return &sha512_md; | 277 | return &sha512_md; |
274 | } | 278 | } |
279 | LCRYPTO_ALIAS(EVP_sha512); | ||
275 | 280 | ||
276 | static int | 281 | static int |
277 | sha512_224_init(EVP_MD_CTX *ctx) | 282 | sha512_224_init(EVP_MD_CTX *ctx) |
@@ -310,6 +315,7 @@ EVP_sha512_224(void) | |||
310 | { | 315 | { |
311 | return &sha512_224_md; | 316 | return &sha512_224_md; |
312 | } | 317 | } |
318 | LCRYPTO_ALIAS(EVP_sha512_224); | ||
313 | 319 | ||
314 | static int | 320 | static int |
315 | sha512_256_init(EVP_MD_CTX *ctx) | 321 | sha512_256_init(EVP_MD_CTX *ctx) |
@@ -348,4 +354,5 @@ EVP_sha512_256(void) | |||
348 | { | 354 | { |
349 | return &sha512_256_md; | 355 | return &sha512_256_md; |
350 | } | 356 | } |
357 | LCRYPTO_ALIAS(EVP_sha512_256); | ||
351 | #endif /* ifndef OPENSSL_NO_SHA512 */ | 358 | #endif /* ifndef OPENSSL_NO_SHA512 */ |