view src/lib/base64.h @ 91:dc0891523276 HEAD

bugfix for sync fix
author Timo Sirainen <tss@iki.fi>
date Thu, 29 Aug 2002 01:42:00 +0300
parents 3b1985cbc908
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