aqbanking  5.7.8
msg.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_MSG_H
11 #define AQEBICS_MSG_MSG_H
12 
13 
14 #include <aqebics/aqebics.h>
15 
16 #include <gwenhywfar/types.h>
17 #include <gwenhywfar/path.h>
18 #include <gwenhywfar/inherit.h>
19 #include <gwenhywfar/buffer.h>
20 
21 
22 #include <libxml/tree.h>
23 #include <libxml/parser.h>
24 #include <libxml/xpath.h>
25 
26 
27 typedef struct EB_MSG EB_MSG;
28 
29 GWEN_INHERIT_FUNCTION_DEFS(EB_MSG)
30 
31 
32 
34 void EB_Msg_free(EB_MSG *m);
35 
36 EB_MSG *EB_Msg_newRequest(int willSign, const char *hVersion);
37 EB_MSG *EB_Msg_newResponse(int willSign, const char *rName, const char *hVersion);
38 
39 
40 EB_MSG *EB_Msg_fromBuffer(const char *buffer, int size);
41 void EB_Msg_toBuffer(EB_MSG *m, GWEN_BUFFER *buf);
42 
43 EB_MSG *EB_Msg_fromFile(const char *fname);
44 
45 xmlDocPtr EB_Msg_GetDoc(const EB_MSG *m);
46 xmlNodePtr EB_Msg_GetRootNode(EB_MSG *m);
47 xmlNodeSetPtr EB_Msg_GetNodes(EB_MSG *m, const char *xpathExpr);
48 
49 DEPRECATED int EB_Msg_BuildHash(EB_MSG *m, GWEN_BUFFER *hbuf);
50 
51 int EB_Msg_BuildHashSha1(EB_MSG *m, GWEN_BUFFER *hbuf);
52 int EB_Msg_BuildHashSha256(EB_MSG *m, GWEN_BUFFER *hbuf);
53 int EB_Msg_BuildHashSha256Sha256(EB_MSG *m, GWEN_BUFFER *hbuf);
54 
55 int EB_Msg_BuildHashData(EB_MSG *m, GWEN_BUFFER *hbuf);
56 
57 
58 int EB_Msg_ReadHash(EB_MSG *m, GWEN_BUFFER *hbuf);
59 int EB_Msg_WriteHash(EB_MSG *m, const unsigned char *hash, int hsize);
60 
61 int EB_Msg_ReadSignature(EB_MSG *m, GWEN_BUFFER *hbuf);
62 int EB_Msg_WriteSignature(EB_MSG *m, const unsigned char *hash, int hsize);
63 
64 
65 int EB_Msg_SetCharValue(EB_MSG *m, const char *path, const char *value);
66 const char *EB_Msg_GetCharValue(const EB_MSG *m, const char *path,
67  const char *defValue);
68 
69 int EB_Msg_SetIntValue(EB_MSG *m, const char *path, int value);
70 int EB_Msg_GetIntValue(const EB_MSG *m, const char *path, int defValue);
71 
74 
75 const char *EB_Msg_GetHVersion(const EB_MSG *m);
76 void EB_Msg_SetHVersion(EB_MSG *m, const char *s);
77 
78 #endif
79 
void EB_Msg_toBuffer(EB_MSG *m, GWEN_BUFFER *buf)
int EB_Msg_BuildHashSha1(EB_MSG *m, GWEN_BUFFER *hbuf)
int EB_Msg_WriteHash(EB_MSG *m, const unsigned char *hash, int hsize)
int EB_Msg_BuildHashSha256(EB_MSG *m, GWEN_BUFFER *hbuf)
uint32_t EB_RC
Definition: aqebics.h:59
EB_MSG * EB_Msg_fromBuffer(const char *buffer, int size)
const char * EB_Msg_GetCharValue(const EB_MSG *m, const char *path, const char *defValue)
int EB_Msg_ReadHash(EB_MSG *m, GWEN_BUFFER *hbuf)
EB_MSG * EB_Msg_fromFile(const char *fname)
EB_RC EB_Msg_GetBodyResultCode(const EB_MSG *m)
EB_MSG * EB_Msg_newRequest(int willSign, const char *hVersion)
xmlNodeSetPtr EB_Msg_GetNodes(EB_MSG *m, const char *xpathExpr)
struct EB_MSG EB_MSG
Definition: msg.h:27
xmlNodePtr EB_Msg_GetRootNode(EB_MSG *m)
void EB_Msg_free(EB_MSG *m)
void EB_Msg_SetHVersion(EB_MSG *m, const char *s)
int EB_Msg_BuildHashSha256Sha256(EB_MSG *m, GWEN_BUFFER *hbuf)
int EB_Msg_WriteSignature(EB_MSG *m, const unsigned char *hash, int hsize)
EB_RC EB_Msg_GetResultCode(const EB_MSG *m)
EB_MSG * EB_Msg_new()
int EB_Msg_SetIntValue(EB_MSG *m, const char *path, int value)
DEPRECATED int EB_Msg_BuildHash(EB_MSG *m, GWEN_BUFFER *hbuf)
int EB_Msg_SetCharValue(EB_MSG *m, const char *path, const char *value)
int EB_Msg_ReadSignature(EB_MSG *m, GWEN_BUFFER *hbuf)
int EB_Msg_BuildHashData(EB_MSG *m, GWEN_BUFFER *hbuf)
xmlDocPtr EB_Msg_GetDoc(const EB_MSG *m)
const char * EB_Msg_GetHVersion(const EB_MSG *m)
EB_MSG * EB_Msg_newResponse(int willSign, const char *rName, const char *hVersion)
int EB_Msg_GetIntValue(const EB_MSG *m, const char *path, int defValue)