view src/lib/base64.h @ 0:3b1985cbc908 HEAD

Initial revision
author Timo Sirainen <tss@iki.fi>
date Fri, 09 Aug 2002 12:15:38 +0300
parents
children 4a7ab9e94f25
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, unsigned int size);

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

#endif