/usr/include/aqbanking5/aqhbci/user.h is in libaqbanking-dev 5.7.8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | /***************************************************************************
begin : Mon Mar 01 2004
copyright : (C) 2004-2013 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef AH_USER_H
#define AH_USER_H
#include <aqhbci/aqhbci.h>
#include <aqhbci/tanmethod.h>
#include <gwenhywfar/misc.h>
#include <gwenhywfar/stringlist.h>
#include <gwenhywfar/cryptkeyrsa.h>
/** @defgroup G_AB_BE_AQHBCI_USER HBCI User Extensions
* @ingroup G_AB_BE_AQHBCI
* @short HBCI-specific user functions
* @author Martin Preuss<martin@libchipcard.de>
*
*/
/*@{*/
#include <aqbanking/user.h>
#include <gwenhywfar/db.h>
#include <gwenhywfar/url.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @name HBCI User Flags
*
*/
/*@{*/
/** bank doesn't sign its messages */
#define AH_USER_FLAGS_BANK_DOESNT_SIGN 0x00000001
/** bank uses correct signature sequence counters for its messages */
#define AH_USER_FLAGS_BANK_USES_SIGNSEQ 0x00000002
#define AH_USER_FLAGS_RESERVED1 0x00000004
#define AH_USER_FLAGS_RESERVED2 0x00000008
/** for pin/tan mode: keep HTTP connections alive (reuse for multiple
* requests) */
#define AH_USER_FLAGS_KEEPALIVE 0x00000010
/** this flag is set automatically by AqHBCI upon BPD/UPD receiption. It
* indicates that some jobs are supported even when there is no UPD job
* description for it */
#define AH_USER_FLAGS_IGNORE_UPD 0x00000020
/** forces use of SSLv3 for Pin/TAN mode */
#define AH_USER_FLAGS_FORCE_SSL3 0x00000040
/** do not encode message in BASE64 (needed for APO bank) */
#define AH_USER_FLAGS_NO_BASE64 0x00000080
/** Normally the SWIFT parser removed double blanks, with this flag set it
* no longer does (as requested by Andreas Filsinger).
*/
#define AH_USER_FLAGS_KEEP_MULTIPLE_BLANKS 0x00000100
/** Some TAN jobs have a field for the account to be used to charge
* for SMS. This field is semi-optional (some banks need it, some need
* you not to use it).
* If this flag is set then the SMS account specification is omitted.
*/
#define AH_USER_FLAGS_TAN_OMIT_SMS_ACCOUNT 0x00000200
#define AH_USER_FLAGS_TLS_ONLY_SAFE_CIPHERS 0x00000400
#define AH_USER_FLAGS_USE_STRICT_SEPA_CHARSET 0x00000800
/* ignore error "GNUTLS_E_PREMATURE_TERMINATION" */
#define AH_USER_FLAGS_TLS_IGN_PREMATURE_CLOSE 0x00001000
/*@}*/
/** @name Functions for Flags and Status
*
*/
/*@{*/
AQHBCI_API
void AH_User_Flags_toDb(GWEN_DB_NODE *db, const char *name,
uint32_t flags);
AQHBCI_API
uint32_t AH_User_Flags_fromDb(GWEN_DB_NODE *db, const char *name);
typedef enum {
AH_UserStatusNew=0,
AH_UserStatusEnabled,
AH_UserStatusPending,
AH_UserStatusDisabled,
AH_UserStatusUnknown=999
} AH_USER_STATUS;
AQHBCI_API
const char *AH_User_Status_toString(AH_USER_STATUS st);
AQHBCI_API
AH_USER_STATUS AH_User_Status_fromString(const char *s);
AQHBCI_API
AH_USER_STATUS AH_User_GetStatus(const AB_USER *u);
AQHBCI_API
void AH_User_SetStatus(AB_USER *u, AH_USER_STATUS i);
/**
* Returns 0 if the bank doesn't sign messages, 1 otherwise.
* This can be used in case the bank sends a sign key upon request but
* never signs it's messages.
*/
AQHBCI_API
uint32_t AH_User_GetFlags(const AB_USER *u);
AQHBCI_API
void AH_User_SetFlags(AB_USER *u, uint32_t flags);
AQHBCI_API
void AH_User_AddFlags(AB_USER *u, uint32_t flags);
AQHBCI_API
void AH_User_SubFlags(AB_USER *u, uint32_t flags);
/*@}*/
/** @name PIN/TAN Specific Functions
*
*/
/*@{*/
AQHBCI_API
const int *AH_User_GetTanMethodList(const AB_USER *u);
AQHBCI_API
int AH_User_GetTanMethodCount(const AB_USER *u);
AQHBCI_API
int AH_User_HasTanMethod(const AB_USER *u, int method);
AQHBCI_API
int AH_User_HasTanMethodOtherThan(const AB_USER *u, int method);
AQHBCI_API
void AH_User_AddTanMethod(AB_USER *u, int method);
AQHBCI_API
void AH_User_ClearTanMethodList(AB_USER *u);
AQHBCI_API
int AH_User_GetSelectedTanMethod(const AB_USER *u);
AQHBCI_API
void AH_User_SetSelectedTanMethod(AB_USER *u, int i);
AQHBCI_API
const char *AH_User_GetHttpContentType(const AB_USER *u);
AQHBCI_API
void AH_User_SetHttpContentType(AB_USER *u, const char *s);
/*@}*/
AQHBCI_API
const char *AH_User_GetTokenType(const AB_USER *u);
AQHBCI_API
void AH_User_SetTokenType(AB_USER *u, const char *s);
AQHBCI_API
const char *AH_User_GetTokenName(const AB_USER *u);
AQHBCI_API
void AH_User_SetTokenName(AB_USER *u, const char *s);
AQHBCI_API
uint32_t AH_User_GetTokenContextId(const AB_USER *u);
AQHBCI_API
void AH_User_SetTokenContextId(AB_USER *u, uint32_t id);
/** @name Miscellanous Settings
*
*/
/*@{*/
/**
* Crypt mode (see @ref AH_CryptMode_Ddv and following).
*/
AQHBCI_API
AH_CRYPT_MODE AH_User_GetCryptMode(const AB_USER *u);
AQHBCI_API
void AH_User_SetCryptMode(AB_USER *u, AH_CRYPT_MODE m);
AQHBCI_API
int AH_User_GetRdhType(const AB_USER *u);
AQHBCI_API
void AH_User_SetRdhType(AB_USER *u, int i);
AQHBCI_API
const char *AH_User_GetPeerId(const AB_USER *u);
AQHBCI_API
void AH_User_SetPeerId(AB_USER *u, const char *s);
AQHBCI_API
const char *AH_User_GetSystemId(const AB_USER *u);
AQHBCI_API
void AH_User_SetSystemId(AB_USER *u, const char *s);
AQHBCI_API
const GWEN_URL *AH_User_GetServerUrl(const AB_USER *u);
AQHBCI_API
void AH_User_SetServerUrl(AB_USER *u, const GWEN_URL *url);
AQHBCI_API
int AH_User_GetHbciVersion(const AB_USER *u);
AQHBCI_API
void AH_User_SetHbciVersion(AB_USER *u, int i);
AQHBCI_API
const char *AH_User_GetSepaTransferProfile(const AB_USER *u);
AQHBCI_API
void AH_User_SetSepaTransferProfile(AB_USER *u, const char *profileName);
AQHBCI_API
const char *AH_User_GetSepaDebitNoteProfile(const AB_USER *u);
AQHBCI_API
void AH_User_SetSepaDebitNoteProfile(AB_USER *u, const char *profileName);
/*@}*/
/** @name Pin/Tan Settings
*
*/
/*@{*/
/**
* Returns the major HTTP version to be used in PIN/TAN mode (defaults to 1).
*/
AQHBCI_API
int AH_User_GetHttpVMajor(const AB_USER *u);
AQHBCI_API
void AH_User_SetHttpVMajor(AB_USER *u, int i);
/**
* Returns the minor HTTP version to be used in PIN/TAN mode (defaults to 1).
*/
AQHBCI_API
int AH_User_GetHttpVMinor(const AB_USER *u);
AQHBCI_API
void AH_User_SetHttpVMinor(AB_USER *u, int i);
AQHBCI_API
const char *AH_User_GetHttpUserAgent(const AB_USER *u);
AQHBCI_API
void AH_User_SetHttpUserAgent(AB_USER *u, const char *s);
AQHBCI_API
const char *AH_User_GetTanMediumId(const AB_USER *u);
AQHBCI_API
void AH_User_SetTanMediumId(AB_USER *u, const char *s);
/*@}*/
/** @name Passwords/Pins/Tans
*
*/
/*@{*/
AQHBCI_API
int AH_User_MkPasswdName(const AB_USER *u, GWEN_BUFFER *buf);
AQHBCI_API
int AH_User_MkPinName(const AB_USER *u, GWEN_BUFFER *buf);
AQHBCI_API
int AH_User_MkTanName(const AB_USER *u,
const char *challenge,
GWEN_BUFFER *buf);
/**
* The list returned is only valid until the next call to this function!
*/
AQHBCI_API
const AH_TAN_METHOD_LIST *AH_User_GetTanMethodDescriptions(AB_USER *u);
/*@}*/
AQHBCI_API int AH_User_GetMaxTransfersPerJob(const AB_USER *u);
AQHBCI_API void AH_User_SetMaxTransfersPerJob(AB_USER *u, int i);
AQHBCI_API int AH_User_GetMaxDebitNotesPerJob(const AB_USER *u);
AQHBCI_API void AH_User_SetMaxDebitNotesPerJob(AB_USER *u, int i);
AQHBCI_API void AH_User_SetBankPubKey(AB_USER *u, GWEN_CRYPT_KEY *bankPubKey);
AQHBCI_API GWEN_CRYPT_KEY * AH_User_GetBankPubKey(const AB_USER *u);
AQHBCI_API const char *AH_User_FindSepaDescriptor(AB_USER *u, const char *tmpl);
/*@}*/ /* defgroup */
#ifdef __cplusplus
}
#endif
#endif /* AH_USER_H */
|