mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 22:46:26 +00:00
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.
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
|
||||
#include "git2/oid.h"
|
||||
|
||||
typedef struct git_hash_prov git_hash_prov;
|
||||
typedef struct git_hash_ctx git_hash_ctx;
|
||||
|
||||
int git_hash_ctx_init(git_hash_ctx *ctx);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user