Debian Codegraph @

include/base64.h

raw symbols SCIP
1 /*
2 **
3 ** Copyright (C) 1994 Swedish University Network (SUNET)
4 ** Modified by Rami Lehti (C) 1999
5 ** Modified by Hannes von Haugwitz (C) 2022, 2024
6 **
7 **
8 ** This program is free software; you can redistribute it and/or modify
9 ** it under the terms of the GNU General Public License as published by
10 ** the Free Software Foundation; either version 2 of the License, or
11 ** (at your option) any later version.
12 **
13 ** This program is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITTNESS FOR A PARTICULAR PURPOSE. See the
16 ** GNU General Public License for more details.
17 **
18 ** You should have received a copy of the GNU General Public License
19 ** along with this program; if not, write to the Free Software
20 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 **
22 **
23 ** [email protected]
24 ** [email protected]
25 **
26 ** UDAC
27 ** P.O. Box 174
28 ** S-751 04 Uppsala
29 ** Sweden
30 **
31 */
32
33 #ifndef _BASE64_H_INCLUDED
34 #define _BASE64_H_INCLUDED
35 #include <sys/types.h>
36 #include "util.h"
37
38 #define BUFSIZE 16384
39
40 #define FAIL -1
41 #define SKIP -2
42
43
44 char* encode_base64(byte* src,size_t ssize);
45
46 byte* decode_base64(char* src,size_t ssize,size_t *);
47
48 #endif /* _BASE64_H_INCLUDED */