view src/lib/base64.h @ 184:4223b9ed0c80 HEAD

move size_t fixes
author Timo Sirainen <tss@iki.fi>
date Sun, 08 Sep 2002 17:39:05 +0300
parents 4a7ab9e94f25
children f3ab97771ed8
line wrap: on
line source

#ifndef __BASE64_H
#define __BASE64_H

/* Translates binary data into base64. Allocates memory from temporary pool. */
const char *base64_encode(const unsigned char *data, size_t size);

/* Translates base64 data into binary modifying the data itself.
   Returns size of the binary data, or -1 if error occured. */
ssize_t base64_decode(char *data);

#endif