aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/libutil/md5.h2
-rw-r--r--nix/libutil/sha1.h2
-rw-r--r--nix/libutil/sha256.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/nix/libutil/md5.h b/nix/libutil/md5.h
index c275e381f8..7fa29087d7 100644
--- a/nix/libutil/md5.h
+++ b/nix/libutil/md5.h
@@ -31,5 +31,5 @@ MD5_Init (struct MD5_CTX *ctx)
static inline void
MD5_Final (void *resbuf, struct MD5_CTX *ctx)
{
- guix_hash_final (ctx, ctx, GCRY_MD_MD5);
+ guix_hash_final (resbuf, ctx, GCRY_MD_MD5);
}
diff --git a/nix/libutil/sha1.h b/nix/libutil/sha1.h
index 8af92725ea..0eca8e310d 100644
--- a/nix/libutil/sha1.h
+++ b/nix/libutil/sha1.h
@@ -31,5 +31,5 @@ SHA1_Init (struct SHA_CTX *ctx)
static inline void
SHA1_Final (void *resbuf, struct SHA_CTX *ctx)
{
- guix_hash_final (ctx, ctx, GCRY_MD_SHA1);
+ guix_hash_final (resbuf, ctx, GCRY_MD_SHA1);
}
diff --git a/nix/libutil/sha256.h b/nix/libutil/sha256.h
index c436d6402c..a91f18f689 100644
--- a/nix/libutil/sha256.h
+++ b/nix/libutil/sha256.h
@@ -31,5 +31,5 @@ SHA256_Init (struct SHA256_CTX *ctx)
static inline void
SHA256_Final (void *resbuf, struct SHA256_CTX *ctx)
{
- guix_hash_final (ctx, ctx, GCRY_MD_SHA256);
+ guix_hash_final (resbuf, ctx, GCRY_MD_SHA256);
}