18 lines
307 B
C
18 lines
307 B
C
#ifndef HASH_H
|
|
#define HASH_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <openssl/sha.h>
|
|
|
|
typedef enum {
|
|
BaseFileObject,
|
|
DiffObject,
|
|
TreeObject,
|
|
} ObjectType;
|
|
|
|
void object_hash(ObjectType, char*, char*);
|
|
void hash_to_hex(const unsigned char*, char*);
|
|
|
|
#endif // HASH_H
|