aqbanking  5.7.8
aqebics/user.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Mon Mar 01 2004
3  copyright : (C) 2004 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * Please see toplevel file COPYING for license details *
8  ***************************************************************************/
9 
10 #ifndef EBC_CLIENT_USER_H
11 #define EBC_CLIENT_USER_H
12 
13 #include <aqebics/aqebics.h>
14 
15 #include <aqbanking/user.h>
16 
17 #include <gwenhywfar/db.h>
18 #include <gwenhywfar/misc.h>
19 #include <gwenhywfar/url.h>
20 
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #define EBC_USER_FLAGS_BANK_DOESNT_SIGN 0x00000001
28 #define EBC_USER_FLAGS_FORCE_SSLV3 0x00000002
29 #define EBC_USER_FLAGS_INI 0x00000004
30 #define EBC_USER_FLAGS_HIA 0x00000008
31 #define EBC_USER_FLAGS_CLIENT_DATA_DOWNLOAD_SPP 0x00000010
32 #define EBC_USER_FLAGS_PREVALIDATION_SPP 0x00000020
33 #define EBC_USER_FLAGS_RECOVERY_SPP 0x00000040
34 #define EBC_USER_FLAGS_STA_SPP 0x00000080
35 #define EBC_USER_FLAGS_IZV_SPP 0x00000100
36 #define EBC_USER_FLAGS_USE_IZL 0x00010000
37 #define EBC_USER_FLAGS_TIMESTAMP_FIX1 0x00020000
38 #define EBC_USER_FLAGS_NO_EU 0x00040000
39 
40 
41 AQEBICS_API void EBC_User_Flags_toDb(GWEN_DB_NODE *db, const char *name,
42  uint32_t flags);
43 
44 AQEBICS_API uint32_t EBC_User_Flags_fromDb(GWEN_DB_NODE *db, const char *name);
45 
46 
47 typedef enum {
55 
58 
61 
62 AQEBICS_API const char *EBC_User_GetServerUrl(const AB_USER *u);
63 AQEBICS_API void EBC_User_SetServerUrl(AB_USER *u, const char *s);
64 
65 AQEBICS_API const char *EBC_User_GetPeerId(const AB_USER *u);
66 AQEBICS_API void EBC_User_SetPeerId(AB_USER *u, const char *s);
67 
68 AQEBICS_API const char *EBC_User_GetSystemId(const AB_USER *u);
69 AQEBICS_API void EBC_User_SetSystemId(AB_USER *u, const char *s);
70 
71 AQEBICS_API const char *EBC_User_GetProtoVersion(const AB_USER *u);
72 AQEBICS_API void EBC_User_SetProtoVersion(AB_USER *u, const char *s);
73 
74 AQEBICS_API const char *EBC_User_GetSignVersion(const AB_USER *u);
75 AQEBICS_API void EBC_User_SetSignVersion(AB_USER *u, const char *s);
76 
77 AQEBICS_API const char *EBC_User_GetCryptVersion(const AB_USER *u);
78 AQEBICS_API void EBC_User_SetCryptVersion(AB_USER *u, const char *s);
79 
80 AQEBICS_API const char *EBC_User_GetAuthVersion(const AB_USER *u);
81 AQEBICS_API void EBC_User_SetAuthVersion(AB_USER *u, const char *s);
82 
83 
84 
91 AQEBICS_API uint32_t EBC_User_GetFlags(const AB_USER *u);
92 AQEBICS_API void EBC_User_SetFlags(AB_USER *u, uint32_t flags);
93 AQEBICS_API void EBC_User_AddFlags(AB_USER *u, uint32_t flags);
94 AQEBICS_API void EBC_User_SubFlags(AB_USER *u, uint32_t flags);
95 
96 
103 
110 
111 AQEBICS_API const char *EBC_User_GetHttpUserAgent(const AB_USER *u);
112 AQEBICS_API void EBC_User_SetHttpUserAgent(AB_USER *u, const char *s);
113 
114 AQEBICS_API const char *EBC_User_GetHttpContentType(const AB_USER *u);
115 AQEBICS_API void EBC_User_SetHttpContentType(AB_USER *u, const char *s);
116 
117 
118 
119 AQEBICS_API const char *EBC_User_GetTokenType(const AB_USER *u);
120 AQEBICS_API void EBC_User_SetTokenType(AB_USER *u, const char *s);
121 AQEBICS_API const char *EBC_User_GetTokenName(const AB_USER *u);
122 AQEBICS_API void EBC_User_SetTokenName(AB_USER *u, const char *s);
124 AQEBICS_API void EBC_User_SetTokenContextId(AB_USER *u, uint32_t id);
125 
126 AQEBICS_API int EBC_User_MkPasswdName(const AB_USER *u, GWEN_BUFFER *buf);
127 
128 #ifdef __cplusplus
129 }
130 #endif
131 
132 #endif /* EBC_USER_H */
133 
134 
135 
136 
137 
138 
struct AB_USER AB_USER
AQEBICS_API const char * EBC_User_GetCryptVersion(const AB_USER *u)
AQEBICS_API void EBC_User_SetProtoVersion(AB_USER *u, const char *s)
AQEBICS_API uint32_t EBC_User_Flags_fromDb(GWEN_DB_NODE *db, const char *name)
AQEBICS_API const char * EBC_User_Status_toString(EBC_USER_STATUS st)
AQEBICS_API int EBC_User_GetHttpVMajor(const AB_USER *u)
AQEBICS_API void EBC_User_SetHttpVMinor(AB_USER *u, int i)
AQEBICS_API int EBC_User_MkPasswdName(const AB_USER *u, GWEN_BUFFER *buf)
#define AQEBICS_API
Definition: aqebics.h:48
AQEBICS_API void EBC_User_SetFlags(AB_USER *u, uint32_t flags)
AQEBICS_API void EBC_User_AddFlags(AB_USER *u, uint32_t flags)
AQEBICS_API void EBC_User_SubFlags(AB_USER *u, uint32_t flags)
AQEBICS_API const char * EBC_User_GetPeerId(const AB_USER *u)
AQEBICS_API void EBC_User_SetSignVersion(AB_USER *u, const char *s)
AQEBICS_API void EBC_User_SetTokenType(AB_USER *u, const char *s)
EBC_USER_STATUS
Definition: aqebics/user.h:47
AQEBICS_API const char * EBC_User_GetSignVersion(const AB_USER *u)
AQEBICS_API const char * EBC_User_GetAuthVersion(const AB_USER *u)
AQEBICS_API void EBC_User_SetSystemId(AB_USER *u, const char *s)
AQEBICS_API void EBC_User_Flags_toDb(GWEN_DB_NODE *db, const char *name, uint32_t flags)
AQEBICS_API EBC_USER_STATUS EBC_User_Status_fromString(const char *s)
AQEBICS_API void EBC_User_SetPeerId(AB_USER *u, const char *s)
AQEBICS_API uint32_t EBC_User_GetFlags(const AB_USER *u)
AQEBICS_API void EBC_User_SetHttpUserAgent(AB_USER *u, const char *s)
AQEBICS_API void EBC_User_SetAuthVersion(AB_USER *u, const char *s)
AQEBICS_API const char * EBC_User_GetServerUrl(const AB_USER *u)
AQEBICS_API int EBC_User_GetHttpVMinor(const AB_USER *u)
AQEBICS_API void EBC_User_SetHttpContentType(AB_USER *u, const char *s)
AQEBICS_API void EBC_User_SetHttpVMajor(AB_USER *u, int i)
AQEBICS_API const char * EBC_User_GetHttpUserAgent(const AB_USER *u)
AQEBICS_API const char * EBC_User_GetHttpContentType(const AB_USER *u)
AQEBICS_API void EBC_User_SetServerUrl(AB_USER *u, const char *s)
AQEBICS_API const char * EBC_User_GetTokenName(const AB_USER *u)
AQEBICS_API void EBC_User_SetStatus(AB_USER *u, EBC_USER_STATUS i)
AQEBICS_API void EBC_User_SetCryptVersion(AB_USER *u, const char *s)
AQEBICS_API void EBC_User_SetTokenContextId(AB_USER *u, uint32_t id)
AQEBICS_API const char * EBC_User_GetTokenType(const AB_USER *u)
AQEBICS_API void EBC_User_SetTokenName(AB_USER *u, const char *s)
AQEBICS_API EBC_USER_STATUS EBC_User_GetStatus(const AB_USER *u)
AQEBICS_API uint32_t EBC_User_GetTokenContextId(const AB_USER *u)
AQEBICS_API const char * EBC_User_GetSystemId(const AB_USER *u)
AQEBICS_API const char * EBC_User_GetProtoVersion(const AB_USER *u)