--- libaitwww/inc/aitwww.h 2012/09/04 12:29:07 1.4.2.4 +++ libaitwww/inc/aitwww.h 2012/09/17 13:05:47 1.4.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitwww.h,v 1.4.2.4 2012/09/04 12:29:07 misho Exp $ +* $Id: aitwww.h,v 1.4.2.5 2012/09/17 13:05:47 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -299,6 +299,21 @@ int www_URLGetFile(struct tagIOURL * __restrict url, a * return: 0 error format incorrect, -1 error:: can`t read; >0 ok readed elements bits */ int www_XMLGet(const char *csXML, struct tagReqXML *xml); + +/* + * www_b64encode() - Base64 encode function + * + * @src = source data + * return: NULL error or !=NULL encoded variable, after use call io_freeVar() + */ +ait_val_t *www_b64encode(ait_val_t * __restrict src); +/* + * www_b64decode() - Base64 decode function + * + * @src = source encoded data + * return: NULL error or !=NULL decoded variable, after use call io_freeVar() + */ +ait_val_t *www_b64decode(ait_val_t * __restrict src); #endif