md5sum.h 480 Bytes
Newer Older
Bernhard Link's avatar
Bernhard Link committed
1 2 3 4 5
#ifndef __MIRRORER_MD5SUM_H
#define __MIRRORER_MD5SUM_H

#ifndef __MIRRORER_ERROR_H
#include "error.h"
Bernhard Link's avatar
Bernhard Link committed
6
#warning "What's hapening here?"
Bernhard Link's avatar
Bernhard Link committed
7
#endif
Bernhard Link's avatar
Bernhard Link committed
8 9 10 11 12

/* result should point to a buffer of at least 33 bytes,
 * bufsize is the size of the buffer to be used, use 0 for
 * standard size. 
 */
13
retvalue md5sum(char *result,off_t *size,const char *filename,ssize_t bufsize);
Bernhard Link's avatar
Bernhard Link committed
14 15

/* returns md5sum " " size */
Bernhard Link's avatar
Bernhard Link committed
16
retvalue md5sum_and_size(char **result,const char *filename,ssize_t bufsize);
Bernhard Link's avatar
Bernhard Link committed
17 18

#endif