diff options
Diffstat (limited to 'src/hash/sha1/openssl.c')
-rw-r--r-- | src/hash/sha1/openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash/sha1/openssl.c b/src/hash/sha1/openssl.c index 68d9611d4..64bf99b3c 100644 --- a/src/hash/sha1/openssl.c +++ b/src/hash/sha1/openssl.c @@ -46,11 +46,11 @@ 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); - if (SHA1_Final(out->id, &ctx->c) != 1) { + if (SHA1_Final(out, &ctx->c) != 1) { git_error_set(GIT_ERROR_SHA1, "hash_openssl: failed to finalize hash"); return -1; } |