diff options
| author | Patrick Steinhardt <ps@pks.im> | 2019-02-22 13:43:16 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2019-06-24 18:26:32 +0200 |
| commit | bbf034ab931cd6346420066cbb00cf16ae893510 (patch) | |
| tree | bf2c246d6ef5184a0bc75d8c4e075d538fecdab1 /src/hash | |
| parent | 6ffc49e110e3a450b54a468d5d974a99ceafa322 (diff) | |
| download | libgit2-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.h | 4 |
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 */ |
