--- libaitwww/src/base64.c 2012/09/20 14:19:45 1.2 +++ libaitwww/src/base64.c 2013/01/17 14:52:44 1.2.4.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: base64.c,v 1.2 2012/09/20 14:19:45 misho Exp $ +* $Id: base64.c,v 1.2.4.1 2013/01/17 14:52:44 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 @@ -54,7 +54,7 @@ static const unsigned char base64_table[65] = * www_b64encode() - Base64 encode function * * @src = source data - * return: NULL error or !=NULL encoded variable, after use call io_freeVar() + * return: NULL error or !=NULL encoded variable, after use call ait_freeVar() */ ait_val_t * www_b64encode(ait_val_t * __restrict src) @@ -111,8 +111,8 @@ www_b64encode(ait_val_t * __restrict src) *pos = 0; - if (!(ret = io_allocVar())) { - www_SetErr(io_GetErrno(), "%s", io_GetError()); + if (!(ret = ait_allocVar())) { + www_SetErr(elwix_GetErrno(), "%s", elwix_GetError()); return NULL; } else { AIT_INIT_VAL2(ret, string); @@ -126,7 +126,7 @@ 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() + * return: NULL error or !=NULL decoded variable, after use call ait_freeVar() */ ait_val_t * www_b64decode(ait_val_t * __restrict src) @@ -177,8 +177,8 @@ www_b64decode(ait_val_t * __restrict src) pos--; } - if (!(ret = io_allocVar())) { - www_SetErr(io_GetErrno(), "%s", io_GetError()); + if (!(ret = ait_allocVar())) { + www_SetErr(elwix_GetErrno(), "%s", elwix_GetError()); return NULL; } else { AIT_INIT_VAL2(ret, string);