src/server/util/hashing.c

changeset 604
886658ba8f25
parent 595
2c316612f648
child 605
07074daff678
--- a/src/server/util/hashing.c	Sun Jun 01 21:48:22 2025 +0200
+++ b/src/server/util/hashing.c	Sun Jun 01 21:50:24 2025 +0200
@@ -71,12 +71,12 @@
 #if OPENSSL_VERSION_NUMBER < 0x30000000L
 
 void ws_sha1_init(WS_SHA1_CTX *ctx) {
-    SHA256_Init(ctx);
+    SHA_Init(ctx);
     return 0;
 }
 
 void ws_sha1_update(WS_SHA1_CTX *ctx, const void *data, size_t length) {
-    SHA256_Update(ctx, data, length);
+    SHA_Update(ctx, data, length);
 }
 
 void ws_sha1_final(char *md, WS_SHA1_CTX *ctx) {

mercurial