core: convert git-access.c to C++

Had to make sha.h compatible with C++.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-02-27 23:22:49 +01:00 committed by Michael Keller
parent b0438ad1dd
commit 924b23ed56
5 changed files with 70 additions and 80 deletions

View file

@ -8,6 +8,10 @@
#ifndef SHA1_H
#define SHA1_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
unsigned long long size;
@ -35,4 +39,8 @@ static inline void SHA1(const void *dataIn, unsigned long len, unsigned char has
SHA1_Final(hashout, &ctx);
}
#ifdef __cplusplus
}
#endif
#endif // SHA1_H