summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/sha/sha1.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libcrypto/sha/sha1.c b/src/lib/libcrypto/sha/sha1.c
index 32007d5d52..52338812db 100644
--- a/src/lib/libcrypto/sha/sha1.c
+++ b/src/lib/libcrypto/sha/sha1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sha1.c,v 1.14 2024/03/28 07:06:12 jsing Exp $ */ 1/* $OpenBSD: sha1.c,v 1.15 2024/06/01 07:36:16 tb 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 *
@@ -496,10 +496,6 @@ unsigned char *
496SHA1(const unsigned char *d, size_t n, unsigned char *md) 496SHA1(const unsigned char *d, size_t n, unsigned char *md)
497{ 497{
498 SHA_CTX c; 498 SHA_CTX c;
499 static unsigned char m[SHA_DIGEST_LENGTH];
500
501 if (md == NULL)
502 md = m;
503 499
504 if (!SHA1_Init(&c)) 500 if (!SHA1_Init(&c))
505 return NULL; 501 return NULL;