diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2012-11-05 12:37:15 -0600 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2012-11-13 10:23:05 -0600 |
commit | d6fb09240913c9756de5f4a2462062008ebac252 (patch) | |
tree | c4a99509abd1dffdcd52353d551089f257b54c1e /src/filebuf.c | |
parent | e45423dd2c5ef8262f70605b81c6da0751d000a3 (diff) | |
download | libgit2-d6fb09240913c9756de5f4a2462062008ebac252.tar.gz |
Win32 CryptoAPI and CNG support for SHA1
Diffstat (limited to 'src/filebuf.c')
-rw-r--r-- | src/filebuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filebuf.c b/src/filebuf.c index 5e5db0db6..6194fe5e3 100644 --- a/src/filebuf.c +++ b/src/filebuf.c @@ -109,7 +109,7 @@ void git_filebuf_cleanup(git_filebuf *file) p_unlink(file->path_lock); if (file->digest) - git_hash_free_ctx(file->digest); + git_hash_ctx_free(file->digest); if (file->buffer) git__free(file->buffer); @@ -221,7 +221,7 @@ int git_filebuf_open(git_filebuf *file, const char *path, int flags) /* If we are hashing on-write, allocate a new hash context */ if (flags & GIT_FILEBUF_HASH_CONTENTS) { - file->digest = git_hash_new_ctx(); + file->digest = git_hash_ctx_new(); GITERR_CHECK_ALLOC(file->digest); } @@ -299,7 +299,7 @@ int git_filebuf_hash(git_oid *oid, git_filebuf *file) return -1; git_hash_final(oid, file->digest); - git_hash_free_ctx(file->digest); + git_hash_ctx_free(file->digest); file->digest = NULL; return 0; |