- startet importing pluto ASN1 stuff
[strongswan.git] / Source / lib / asn1-pluto / ttodata.h
1 /*
2 * convert from text form of arbitrary data (e.g., keys) to binary
3 * Copyright (C) 2000 Henry Spencer.
4 *
5 * This library is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU Library General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/lgpl.txt>.
9 *
10 * This library is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 * License for more details.
14 */
15
16 #ifndef TTODATA_H_
17 #define TTODATA_H_
18
19 #include <types.h>
20
21 #define TTODATAV_BUF 40 /* ttodatav's largest non-literal message */
22 #define TTODATAV_IGNORESPACE (1<<1) /* ignore spaces in base64 encodings*/
23 #define TTODATAV_SPACECOUNTS 0 /* do not ignore spaces in base64 */
24
25 typedef const char *err_t; /* error message, or NULL for success */
26
27 err_t ttodata(const char *src, size_t srclen, int base, char *buf, size_t buflen, size_t *needed);
28
29
30 #endif /* TTODATA_H_ */