diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-06 17:37:17 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 23:12:54 -0500 |
commit | 927820b4a62a2ea0de11271158976ac026d6a743 (patch) | |
tree | e41b60f6be620a05a5f9d809d04dbd8eca4594e8 /src/libgit2/hash/sha1/common_crypto.h | |
parent | 47eec0c3fc981fa35a735f9d1d17c3ae41584ffe (diff) | |
download | libgit2-927820b4a62a2ea0de11271158976ac026d6a743.tar.gz |
refactor: `src` is now `src/libgit2`
Adding an additional hierarchy allows us to split out utility functions.
Diffstat (limited to 'src/libgit2/hash/sha1/common_crypto.h')
-rw-r--r-- | src/libgit2/hash/sha1/common_crypto.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libgit2/hash/sha1/common_crypto.h b/src/libgit2/hash/sha1/common_crypto.h new file mode 100644 index 000000000..a5fcfb33e --- /dev/null +++ b/src/libgit2/hash/sha1/common_crypto.h @@ -0,0 +1,19 @@ +/* + * Copyright (C) the libgit2 contributors. All rights reserved. + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ + +#ifndef INCLUDE_hash_sha1_common_crypto_h__ +#define INCLUDE_hash_sha1_common_crypto_h__ + +#include "hash/sha1.h" + +#include <CommonCrypto/CommonDigest.h> + +struct git_hash_sha1_ctx { + CC_SHA1_CTX c; +}; + +#endif |