]>
git.ipfire.org Git - people/ms/strongswan.git/blob - programs/charon/lib/asn1/ttodata.h
2 * convert from text form of arbitrary data (e.g., keys) to binary
3 * Copyright (C) 2000 Henry Spencer.
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>.
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.
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 */
25 typedef const char *err_t
; /* error message, or NULL for success */
27 err_t
ttodata(const char *src
, size_t srclen
, int base
, char *buf
, size_t buflen
, size_t *needed
);
30 #endif /* TTODATA_H_ */