]> git.proxmox.com Git - libgit2.git/blobdiff - src/hash/sha1/common_crypto.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / src / hash / sha1 / common_crypto.c
index 4250e0b614fb1a3cd3f8b8e13dddd50645cdac5b..9d608f4490e80fb8c7b854730f83fd21416ecd79 100644 (file)
@@ -49,9 +49,9 @@ int git_hash_sha1_update(git_hash_sha1_ctx *ctx, const void *_data, size_t len)
        return 0;
 }
 
-int git_hash_sha1_final(git_oid *out, git_hash_sha1_ctx *ctx)
+int git_hash_sha1_final(unsigned char *out, git_hash_sha1_ctx *ctx)
 {
        GIT_ASSERT_ARG(ctx);
-       CC_SHA1_Final(out->id, &ctx->c);
+       CC_SHA1_Final(out, &ctx->c);
        return 0;
 }