]> git.proxmox.com Git - libgit2.git/blame - src/hash/hash_mbedtls.h
New upstream version 0.28.4+dfsg.1
[libgit2.git] / src / hash / hash_mbedtls.h
CommitLineData
ac3d33df
JK
1/*
2 * Copyright (C) the libgit2 contributors. All rights reserved.
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7
8#ifndef INCLUDE_hash_mbedtld_h__
9#define INCLUDE_hash_mbedtld_h__
10
11#include <mbedtls/sha1.h>
12
13struct git_hash_ctx {
14 mbedtls_sha1_context c;
15};
16
17#define git_hash_ctx_init(ctx) git_hash_init(ctx)
18
19GIT_INLINE(int) git_hash_global_init(void)
20{
21 return 0;
22}
23
24#endif /* INCLUDE_hash_mbedtld_h__ */