Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2012-11-05 22:37:15 +0400
committerEdward Thomson <ethomson@edwardthomson.com>2012-11-13 20:23:05 +0400
commitd6fb09240913c9756de5f4a2462062008ebac252 (patch)
treec4a99509abd1dffdcd52353d551089f257b54c1e /src/filebuf.c
parente45423dd2c5ef8262f70605b81c6da0751d000a3 (diff)
Win32 CryptoAPI and CNG support for SHA1
Diffstat (limited to 'src/filebuf.c')
-rw-r--r--src/filebuf.c6
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;