fix build with openssl < 3.0

Sun, 01 Jun 2025 22:07:06 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 01 Jun 2025 22:07:06 +0200
changeset 873
96aade0d6246
parent 869
cece9ef3547f
child 874
8f0add189b2f

fix build with openssl < 3.0

libidav/crypto.c file | annotate | diff | comparison | revisions
--- a/libidav/crypto.c	Sun May 25 19:12:39 2025 +0200
+++ b/libidav/crypto.c	Sun Jun 01 22:07:06 2025 +0200
@@ -381,12 +381,12 @@
     SHA256_Init(ctx);
 }
 
-void dav_sha256_update(DAV_SHA_CTX *ctx, const void *data, size_t length) {
+void dav_sha256_update(DAV_SHA_CTX *ctx, const char *data, size_t length) {
     SHA256_Update(ctx, data, length);
 }
 
-void dav_sha256_final(char *md, DAV_SHA_CTX *ctx) {
-    SHA256_Final(md, ctx);
+void dav_sha256_final(DAV_SHA_CTX *ctx, unsigned char *buf) {
+    SHA256_Final(buf, ctx);
 }
 
 #else

mercurial