1pskc_build_xml(3) libpskc pskc_build_xml(3)
2
3
4
6 pskc_build_xml - API function
7
9 #include <pskc.h>
10
11 int pskc_build_xml(pskc_t * container, char ** out, size_t * len);
12
14 pskc_t * container
15 a pskc_t handle, from pskc_init().
16
17 char ** out pointer to output variable to hold newly allocated string.
18
19 size_t * len
20 output variable holding length of *out.
21
23 This function builds a XML file from the data in container. As a con‐
24 venience, it also converts the XML into a string placed in the newly
25 allocated *out of length len using pskc_output() with PSKC_OUTPUT_XML.
26
28 On success, PSKC_OK (zero) is returned, on memory allocation errors
29 PSKC_MALLOC_ERROR is returned.
30
32 Report bugs to <oath-toolkit-help@nongnu.org>. libpskc home page:
33 http://www.gnu.org/software/libpskc/ General help using GNU software:
34 http://www.gnu.org/gethelp/
35
37 Copyright © 2012-2016 Simon Josefsson.
38 Copying and distribution of this file, with or without modification,
39 are permitted in any medium without royalty provided the copyright
40 notice and this notice are preserved.
41
42
43
44libpskc 2.6.2 pskc_build_xml(3)