author | Senko Rasic <senko.rasic@collabora.co.uk> |
Thu, 03 Jan 2008 18:03:35 +0100 | |
changeset 326 | 33e5f0c5ba10 |
parent 217 | 16d512c3ce31 |
permissions | -rw-r--r-- |
217
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
1 |
/* |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
2 |
* base64.h - Base 64 encoding/decoding implementation |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
3 |
* Copyright (C) 2006 Collabora Ltd. |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
4 |
* |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
5 |
* This library is free software; you can redistribute it and/or |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
6 |
* modify it under the terms of the GNU Lesser General Public |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
7 |
* License as published by the Free Software Foundation; either |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
8 |
* version 2.1 of the License, or (at your option) any later version. |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
9 |
* |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
10 |
* This library is distributed in the hope that it will be useful, |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
13 |
* Lesser General Public License for more details. |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
14 |
* |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU Lesser General Public |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
16 |
* License along with this library; if not, write to the Free Software |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
17 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
18 |
*/ |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
19 |
|
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
20 |
#ifndef __BASE64_H__ |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
21 |
#define __BASE64_H__ |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
22 |
|
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
23 |
#include <glib.h> |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
24 |
|
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
25 |
gchar *_lm_base64_encode (const gchar *str, gsize n); |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
26 |
gchar *_lm_base64_decode (const gchar *str, gsize *len); |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
27 |
|
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
28 |
#define base64_encode _lm_base64_encode |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
29 |
#define base64_decode _lm_base64_decode |
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
30 |
|
16d512c3ce31
Added base64.[ch] and md5.[ch] from Senko
Mikael Hallendal <micke@imendio.com>
parents:
diff
changeset
|
31 |
#endif /* __BASE64_H__ */ |