git/csum-file.c

/*
 * csum-file.c
 *
 * Copyright (C) 2005 Linus Torvalds
 *
 * Simple file write infrastructure for writing SHA1-summed
 * files. Useful when you write a file that you want to be
 * able to verify hasn't been messed with afterwards.
 */

#define USE_THE_REPOSITORY_VARIABLE

#include "git-compat-util.h"
#include "progress.h"
#include "csum-file.h"
#include "hash.h"

static void verify_buffer_or_die(struct hashfile *f,
				 const void *buf,
				 unsigned int count)
{}

static void flush(struct hashfile *f, const void *buf, unsigned int count)
{}

void hashflush(struct hashfile *f)
{}

void free_hashfile(struct hashfile *f)
{}

int finalize_hashfile(struct hashfile *f, unsigned char *result,
		      enum fsync_component component, unsigned int flags)
{}

void discard_hashfile(struct hashfile *f)
{}

void hashwrite(struct hashfile *f, const void *buf, unsigned int count)
{}

struct hashfile *hashfd_check(const char *name)
{}

static struct hashfile *hashfd_internal(int fd, const char *name,
					struct progress *tp,
					size_t buffer_len)
{}

struct hashfile *hashfd(int fd, const char *name)
{}

struct hashfile *hashfd_throughput(int fd, const char *name, struct progress *tp)
{}

void hashfile_checkpoint(struct hashfile *f, struct hashfile_checkpoint *checkpoint)
{}

int hashfile_truncate(struct hashfile *f, struct hashfile_checkpoint *checkpoint)
{}

void crc32_begin(struct hashfile *f)
{}

uint32_t crc32_end(struct hashfile *f)
{}

int hashfile_checksum_valid(const unsigned char *data, size_t total_len)
{}