final fix

Sun, 01 Jun 2025 21:59:46 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 01 Jun 2025 21:59:46 +0200
changeset 609
a655e6397663
parent 608
dc6397281d33
child 610
447e6d9ba8a4

final fix

src/server/util/hashing.c file | annotate | diff | comparison | revisions
--- a/src/server/util/hashing.c	Sun Jun 01 21:58:10 2025 +0200
+++ b/src/server/util/hashing.c	Sun Jun 01 21:59:46 2025 +0200
@@ -71,29 +71,29 @@
 #if OPENSSL_VERSION_NUMBER < 0x30000000L
 
 int ws_sha1_init(WS_SHA1_CTX *ctx) {
-    SHA_Init(ctx);
+    SHA1_Init(ctx);
     return 0;
 }
 
 void ws_sha1_update(WS_SHA1_CTX *ctx, const char *data, size_t len) {
-    SHA_Update(ctx, data, len);
+    SHA1_Update(ctx, data, len);
 }
 
 void ws_sha1_final(WS_SHA1_CTX *ctx, unsigned char *buf) {
-    SHA_Final(buf, ctx);
+    SHA1_Final(buf, ctx);
 }
 
 int ws_sha256_init(WS_SHA256_CTX *ctx) {
-    SHA_Init(ctx);
+    SHA256_Init(ctx);
     return 0;
 }
 
 void ws_sha256_update(WS_SHA256_CTX *ctx, const char *data, size_t len) {
-    SHA_Update(ctx, data, len);
+    SHA256_Update(ctx, data, len);
 }
 
 void ws_sha256_final(WS_SHA256_CTX *ctx, unsigned char *buf) {
-    SHA_Final(buf, ctx);
+    SHA256_Final(buf, ctx);
 }
 
 int ws_sha512_init(WS_SHA512_CTX *ctx) {

mercurial