daemon: Fix typo in libgcrypt bindings.

* nix/libutil/md5.h (MD5_Final): Pass RESBUF as the first argument to
  `guix_hash_final'.
* nix/libutil/sha1.h (SHA1_Final): Likewise.
* nix/libutil/sha256.h (SHA256_Final): Likewise.
This commit is contained in:
Ludovic Courtès 2012-12-04 23:10:54 +01:00
parent 5f25049e9c
commit 0adb527600
3 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}