summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/m_sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp/m_sha1.c')
-rw-r--r--src/lib/libcrypto/evp/m_sha1.c9
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}
113LCRYPTO_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}
159LCRYPTO_ALIAS(EVP_sha224);
158 160
159static int 161static int
160sha256_init(EVP_MD_CTX *ctx) 162sha256_init(EVP_MD_CTX *ctx)
@@ -193,6 +195,7 @@ EVP_sha256(void)
193{ 195{
194 return &sha256_md; 196 return &sha256_md;
195} 197}
198LCRYPTO_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}
240LCRYPTO_ALIAS(EVP_sha384);
237 241
238static int 242static int
239sha512_init(EVP_MD_CTX *ctx) 243sha512_init(EVP_MD_CTX *ctx)
@@ -272,6 +276,7 @@ EVP_sha512(void)
272{ 276{
273 return &sha512_md; 277 return &sha512_md;
274} 278}
279LCRYPTO_ALIAS(EVP_sha512);
275 280
276static int 281static int
277sha512_224_init(EVP_MD_CTX *ctx) 282sha512_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}
318LCRYPTO_ALIAS(EVP_sha512_224);
313 319
314static int 320static int
315sha512_256_init(EVP_MD_CTX *ctx) 321sha512_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}
357LCRYPTO_ALIAS(EVP_sha512_256);
351#endif /* ifndef OPENSSL_NO_SHA512 */ 358#endif /* ifndef OPENSSL_NO_SHA512 */