--- libaitwww/inc/aitwww.h 2012/09/04 12:29:07 1.4.2.4 +++ libaitwww/inc/aitwww.h 2013/01/17 14:07:19 1.5.4.1 @@ -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.5.4.1 2013/01/17 14:07:19 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 +Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -50,7 +50,7 @@ SUCH DAMAGE. #include #include #include -#include +#include /* URL staff ... */ @@ -232,7 +232,7 @@ int www_cmptype(const char *ct, const char *type); * * @str = query string * @delim = delimiter - * return: NULL error or AV pair, must be io_free() after use! + * return: NULL error or AV pair, must be e_free() after use! */ ait_val_t *www_getpair(char ** __restrict str, const char *delim); /* @@ -253,7 +253,7 @@ inline void www_unescape(char * __restrict str); * www_undot() - Undotted and clean WWW query filename * * @pname = query filename - * return: =NULL error or !=NULL allocated valid filename, after use you must call io_freeVar() + * return: =NULL error or !=NULL allocated valid filename, after use you must call ait_freeVar() */ ait_val_t *www_undot(const char * __restrict pname); @@ -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 ait_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 ait_freeVar() + */ +ait_val_t *www_b64decode(ait_val_t * __restrict src); #endif