merk/include/hash.h

20 lines
345 B
C

#ifndef HASH_H
#define HASH_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/sha.h>
typedef enum {
BaseFileObject,
FileDiffObject,
TreeObject,
TreeDiffObject,
LogObject
} ObjectType;
void object_hash(ObjectType, char*, char*);
void hash_to_hex(const unsigned char*, char*);
#endif // HASH_H