summaryrefslogtreecommitdiff
path: root/src/hash
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-02-22 13:43:16 +0100
committerPatrick Steinhardt <ps@pks.im>2019-06-24 18:26:32 +0200
commitbbf034ab931cd6346420066cbb00cf16ae893510 (patch)
treebf2c246d6ef5184a0bc75d8c4e075d538fecdab1 /src/hash
parent6ffc49e110e3a450b54a468d5d974a99ceafa322 (diff)
downloadlibgit2-bbf034ab931cd6346420066cbb00cf16ae893510.tar.gz
hash: move `git_hash_prov` into Win32 backend
The structure `git_hash_prov` is only ever used by the Win32 SHA1 backend. As such, it doesn't make much sense to expose it via the generic "hash.h" header, as it is an implementation detail of the Win32 backend only. Move the typedef of `git_hash_prov` into "hash/sha1/win32.h" to fix this.
Diffstat (limited to 'src/hash')
-rw-r--r--src/hash/hash_win32.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash/hash_win32.h b/src/hash/hash_win32.h
index ca448c241..b9a85f8dc 100644
--- a/src/hash/hash_win32.h
+++ b/src/hash/hash_win32.h
@@ -106,14 +106,14 @@ struct hash_cng_prov {
DWORD hash_object_size;
};
-struct git_hash_prov {
+typedef struct {
enum hash_win32_prov_type type;
union {
struct hash_cryptoapi_prov cryptoapi;
struct hash_cng_prov cng;
} prov;
-};
+} git_hash_prov;
/* Hash contexts */