2005-04-11 16:53:17 +00:00
|
|
|
/* base64.h - encode and decode base64 encoding according to RFC 1521
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005, Raphaël Quinet <raphael@gimp.org>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BASE64_H
|
|
|
|
#define BASE64_H
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2005-04-11 19:17:12 +00:00
|
|
|
gssize base64_decode (const gchar *src_b64,
|
|
|
|
gsize src_size,
|
|
|
|
gchar *dest,
|
2005-04-23 10:01:24 +00:00
|
|
|
gsize dest_size,
|
|
|
|
gboolean ignore_errors);
|
2005-04-11 16:53:17 +00:00
|
|
|
|
2005-04-11 19:17:12 +00:00
|
|
|
gssize base64_encode (const gchar *src,
|
|
|
|
gsize src_size,
|
|
|
|
gchar *dest_b64,
|
2005-04-18 05:06:48 +00:00
|
|
|
gsize dest_size,
|
|
|
|
gint columns);
|
2005-04-11 16:53:17 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* BASE64_H */
|