aqbanking  5.7.8
xml.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Mon Mar 01 2004
3  copyright : (C) 2004-2010 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * Please see toplevel file COPYING for license details *
8  ***************************************************************************/
9 
10 #ifndef AQEBICS_MSG_XML_H
11 #define AQEBICS_MSG_XML_H
12 
13 
14 #include <aqebics/aqebics.h>
15 
16 #include <gwenhywfar/path.h>
17 #include <gwenhywfar/buffer.h>
18 #include <gwenhywfar/mdigest.h>
19 
20 #include <libxml/tree.h>
21 #include <libxml/parser.h>
22 #include <libxml/xpath.h>
23 
24 
25 
26 xmlNodePtr EB_Xml_GetNode(xmlNodePtr n, const char *path,
27  uint32_t flags);
28 
29 int EB_Xml_SetCharValue(xmlNodePtr n, const char *path, const char *value);
30 const char *EB_Xml_GetCharValue(xmlNodePtr n, const char *path,
31  const char *defValue);
32 
33 int EB_Xml_SetIntValue(xmlNodePtr n, const char *path, int value);
34 int EB_Xml_GetIntValue(xmlNodePtr n, const char *path, int defValue);
35 
36 int EB_Xml_Ebicsify(xmlNodePtr node, const char *hVersion);
37 
38 
39 int EB_Xml_CompressDoc(xmlDocPtr doc, GWEN_BUFFER *buf);
40 int EB_Xml_Compress64Doc(xmlDocPtr doc, GWEN_BUFFER *buf);
41 
42 int EB_Xml_UncompressDoc(const char *ptr, int size, xmlDocPtr *pdoc);
43 int EB_Xml_Uncompress64Doc(const char *ptr, int size,
44  xmlDocPtr *pdoc);
45 
46 int EB_Xml_InsertChild(xmlNodePtr node, xmlNodePtr n);
47 
48 
49 int EB_Xml_GetXpathData(xmlNodePtr signedInfoNode,
50  const xmlChar *uri,
51  GWEN_BUFFER *rbuf);
52 
53 int EB_Xml_DocFromBuffer(const char *ptr, int size, xmlDocPtr *pdoc);
54 
55 
56 int EB_Xml_BuildHashData(xmlNodePtr signedInfoNode,
57  const xmlChar *uri,
58  GWEN_BUFFER *rbuf);
59 
60 int EB_Xml_BuildNodeHash(xmlNodePtr node,
61  const char *uri,
62  GWEN_MDIGEST *md,
63  GWEN_BUFFER *hbuf);
64 
65 int EB_Xml_BuildNodeHashSha1(xmlNodePtr node,
66  const char *uri,
67  GWEN_BUFFER *hbuf);
68 
69 int EB_Xml_BuildNodeHashSha256(xmlNodePtr node,
70  const char *uri,
71  GWEN_BUFFER *hbuf);
72 
73 int EB_Xml_BuildNodeHashSha256Sha256(xmlNodePtr node,
74  const char *uri,
75  GWEN_BUFFER *hbuf);
76 
77 
78 
79 #endif
int EB_Xml_Compress64Doc(xmlDocPtr doc, GWEN_BUFFER *buf)
int EB_Xml_BuildNodeHash(xmlNodePtr node, const char *uri, GWEN_MDIGEST *md, GWEN_BUFFER *hbuf)
int EB_Xml_UncompressDoc(const char *ptr, int size, xmlDocPtr *pdoc)
int EB_Xml_BuildNodeHashSha256Sha256(xmlNodePtr node, const char *uri, GWEN_BUFFER *hbuf)
int EB_Xml_Ebicsify(xmlNodePtr node, const char *hVersion)
const char * EB_Xml_GetCharValue(xmlNodePtr n, const char *path, const char *defValue)
int EB_Xml_BuildHashData(xmlNodePtr signedInfoNode, const xmlChar *uri, GWEN_BUFFER *rbuf)
int EB_Xml_SetIntValue(xmlNodePtr n, const char *path, int value)
int EB_Xml_SetCharValue(xmlNodePtr n, const char *path, const char *value)
int EB_Xml_BuildNodeHashSha1(xmlNodePtr node, const char *uri, GWEN_BUFFER *hbuf)
int EB_Xml_DocFromBuffer(const char *ptr, int size, xmlDocPtr *pdoc)
int EB_Xml_BuildNodeHashSha256(xmlNodePtr node, const char *uri, GWEN_BUFFER *hbuf)
int EB_Xml_InsertChild(xmlNodePtr node, xmlNodePtr n)
xmlNodePtr EB_Xml_GetNode(xmlNodePtr n, const char *path, uint32_t flags)
int EB_Xml_GetIntValue(xmlNodePtr n, const char *path, int defValue)
int EB_Xml_CompressDoc(xmlDocPtr doc, GWEN_BUFFER *buf)
int EB_Xml_Uncompress64Doc(const char *ptr, int size, xmlDocPtr *pdoc)
int EB_Xml_GetXpathData(xmlNodePtr signedInfoNode, const xmlChar *uri, GWEN_BUFFER *rbuf)