aqbanking  5.0.24.0-git
aqhbci/user.h
Go to the documentation of this file.
1 /***************************************************************************
2  $RCSfile$
3  -------------------
4  cvs : $Id$
5  begin : Mon Mar 01 2004
6  copyright : (C) 2004 by Martin Preuss
7  email : martin@libchipcard.de
8 
9  ***************************************************************************
10  * Please see toplevel file COPYING for license details *
11  ***************************************************************************/
12 
13 #ifndef AH_USER_H
14 #define AH_USER_H
15 
16 #include <aqhbci/aqhbci.h>
17 #include <aqhbci/tanmethod.h>
18 #include <gwenhywfar/misc.h>
19 
20 
28 
29 #include <aqbanking/user.h>
30 
31 #include <gwenhywfar/db.h>
32 #include <gwenhywfar/url.h>
33 
34 
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
45 #define AH_USER_FLAGS_BANK_DOESNT_SIGN 0x00000001
46 
47 #define AH_USER_FLAGS_BANK_USES_SIGNSEQ 0x00000002
48 #define AH_USER_FLAGS_RESERVED1 0x00000004
49 #define AH_USER_FLAGS_RESERVED2 0x00000008
50 
52 #define AH_USER_FLAGS_KEEPALIVE 0x00000010
53 
56 #define AH_USER_FLAGS_IGNORE_UPD 0x00000020
57 
59 #define AH_USER_FLAGS_FORCE_SSL3 0x00000040
60 
62 #define AH_USER_FLAGS_NO_BASE64 0x00000080
63 
67 #define AH_USER_FLAGS_KEEP_MULTIPLE_BLANKS 0x00000100
68 
74 #define AH_USER_FLAGS_TAN_OMIT_SMS_ACCOUNT 0x00000200
75 
84 
86 void AH_User_Flags_toDb(GWEN_DB_NODE *db, const char *name,
87  uint32_t flags);
89 uint32_t AH_User_Flags_fromDb(GWEN_DB_NODE *db, const char *name);
90 
91 
92 typedef enum {
103 
104 
109 
116 uint32_t AH_User_GetFlags(const AB_USER *u);
117 
119 void AH_User_SetFlags(AB_USER *u, uint32_t flags);
120 
122 void AH_User_AddFlags(AB_USER *u, uint32_t flags);
123 
125 void AH_User_SubFlags(AB_USER *u, uint32_t flags);
126 
127 
135 
137 const int *AH_User_GetTanMethodList(const AB_USER *u);
139 int AH_User_GetTanMethodCount(const AB_USER *u);
141 int AH_User_HasTanMethod(const AB_USER *u, int method);
143 int AH_User_HasTanMethodOtherThan(const AB_USER *u, int method);
145 void AH_User_AddTanMethod(AB_USER *u, int method);
148 
152 void AH_User_SetSelectedTanMethod(AB_USER *u, int i);
153 
154 
156 const char *AH_User_GetHttpContentType(const AB_USER *u);
158 void AH_User_SetHttpContentType(AB_USER *u, const char *s);
159 
165 const char *AH_User_GetTokenType(const AB_USER *u);
167 void AH_User_SetTokenType(AB_USER *u, const char *s);
169 const char *AH_User_GetTokenName(const AB_USER *u);
171 void AH_User_SetTokenName(AB_USER *u, const char *s);
173 uint32_t AH_User_GetTokenContextId(const AB_USER *u);
175 void AH_User_SetTokenContextId(AB_USER *u, uint32_t id);
176 
177 
178 
190 
192 int AH_User_GetRdhType(const AB_USER *u);
193 
195 void AH_User_SetRdhType(AB_USER *u, int i);
196 
198 const char *AH_User_GetPeerId(const AB_USER *u);
200 void AH_User_SetPeerId(AB_USER *u, const char *s);
201 
203 const char *AH_User_GetSystemId(const AB_USER *u);
205 void AH_User_SetSystemId(AB_USER *u, const char *s);
206 
207 
209 const GWEN_URL *AH_User_GetServerUrl(const AB_USER *u);
211 void AH_User_SetServerUrl(AB_USER *u, const GWEN_URL *url);
212 
213 
215 int AH_User_GetHbciVersion(const AB_USER *u);
217 void AH_User_SetHbciVersion(AB_USER *u, int i);
230 int AH_User_GetHttpVMajor(const AB_USER *u);
232 void AH_User_SetHttpVMajor(AB_USER *u, int i);
233 
238 int AH_User_GetHttpVMinor(const AB_USER *u);
240 void AH_User_SetHttpVMinor(AB_USER *u, int i);
241 
242 
243 
245 const char *AH_User_GetHttpUserAgent(const AB_USER *u);
247 void AH_User_SetHttpUserAgent(AB_USER *u, const char *s);
248 
249 
251 const char *AH_User_GetTanMediumId(const AB_USER *u);
252 
254 void AH_User_SetTanMediumId(AB_USER *u, const char *s);
255 
256 
264 
266 int AH_User_MkPasswdName(const AB_USER *u, GWEN_BUFFER *buf);
267 
269 int AH_User_MkPinName(const AB_USER *u, GWEN_BUFFER *buf);
270 
272 int AH_User_MkTanName(const AB_USER *u,
273  const char *challenge,
274  GWEN_BUFFER *buf);
275 
281 
282 
290 
291 
292 
293 
294 
295  /* defgroup */
297 
298 #ifdef __cplusplus
299 }
300 #endif
301 
302 #endif /* AH_USER_H */
303 
304 
305 
306 
307 
308