will this finally fix it?

Sun, 01 Jun 2025 21:56:47 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 01 Jun 2025 21:56:47 +0200
changeset 607
e8ff9036462e
parent 606
a6db0f83fa15
child 608
dc6397281d33

will this finally fix it?

src/server/util/hashing.c file | annotate | diff | comparison | revisions
--- a/src/server/util/hashing.c	Sun Jun 01 21:53:40 2025 +0200
+++ b/src/server/util/hashing.c	Sun Jun 01 21:56:47 2025 +0200
@@ -75,11 +75,11 @@
     return 0;
 }
 
-void ws_sha1_update(WS_SHA1_CTX *ctx, const void *data, size_t length) {
+void ws_sha1_update(WS_SHA1_CTX *ctx, const char *data, size_t len) {
     SHA_Update(ctx, data, length);
 }
 
-void ws_sha1_final(char *md, WS_SHA1_CTX *ctx) {
+void ws_sha1_final(WS_SHA1_CTX *ctx, unsigned char *buf) {
     SHA_Final(md, ctx);
 }
 
@@ -88,11 +88,11 @@
     return 0;
 }
 
-void ws_sha256_update(WS_SHA256_CTX *ctx, const void *data, size_t length) {
+void ws_sha256_update(WS_SHA256_CTX *ctx, const char *data, size_t len) {
     SHA_Update(ctx, data, length);
 }
 
-void ws_sha256_final(char *md, WS_SHA256_CTX *ctx) {
+void ws_sha256_final(WS_SHA256_CTX *ctx, unsigned char *buf) {
     SHA_Final(md, ctx);
 }
 
@@ -101,11 +101,11 @@
     return 0;
 }
 
-void ws_sha256_update(WS_SHA512_CTX *ctx, const void *data, size_t length) {
+void ws_sha512_update(WS_SHA512_CTX *ctx, const char *data, size_t len) {
     SHA512_Update(ctx, data, length);
 }
 
-void ws_sha256_final(char *md, WS_SHA512_CTX *ctx) {
+void ws_sha512_final(WS_SHA512_CTX *ctx, unsigned char *buf) {
     SHA512_Final(md, ctx);
 }
 

mercurial