Commit Graph

3362 Commits

Author SHA1 Message Date
Christian Grothoff
a9b3c564bd
rename BANK_excecute_wire_transfer to BANK_transfer, improve error handling when curl_easy_init() fails 2020-03-03 17:14:00 +01:00
Christian Grothoff
97fb6b0091
fixing memory leak, comments, renaming callback type to make it more concise 2020-03-03 16:35:20 +01:00
Christian Grothoff
9abee82d3c
remove dead prototype 2020-03-03 16:08:26 +01:00
Christian Grothoff
ac5635776e
remove /config from API, as that is not part of the wire gateway specification 2020-03-03 15:44:11 +01:00
Christian Grothoff
3ba839dee5
remove /config from API, as that is not part of the wire gateway specification 2020-03-03 15:40:51 +01:00
Christian Grothoff
32ba50a0f0
fix potential NPE 2020-03-03 12:34:24 +01:00
Christian Grothoff
5d67cb9c4f
fix typo 2020-03-03 12:32:55 +01:00
Christian Grothoff
113f3891d1
removing dead code, using more named constants, checking return values better 2020-03-01 17:51:46 +01:00
Christian Grothoff
c11475c081
work around indentation bug of uncrustify 2020-03-01 14:05:38 +01:00
Christian Grothoff
f4ce758d68
scope minimization, more consistent naming of variables 2020-03-01 14:02:30 +01:00
Christian Grothoff
13eed90b73
use global ENABLE_SANITY_CHECKS constant also in response generation logic 2020-03-01 13:53:56 +01:00
Christian Grothoff
9b688d7cb0
scope reduction, commenting 2020-03-01 13:52:34 +01:00
Christian Grothoff
9ec23c6239
bump year 2020-03-01 13:45:56 +01:00
Christian Grothoff
31958f3ae8
fix log msg 2020-03-01 13:45:19 +01:00
Christian Grothoff
3818cb8f52
reduce scope 2020-03-01 13:44:44 +01:00
Christian Grothoff
440c3dc1f0
fix missing NULL termination on array 2020-03-01 13:44:13 +01:00
Christian Grothoff
f457e1332d
use memcpy/memcmp instead of str-functions where applicable 2020-03-01 13:36:40 +01:00
Christian Grothoff
1eb292fe1f
check well-formedness of URI when signing, check return value of function for error 2020-03-01 13:31:46 +01:00
Christian Grothoff
2906aeb459
add ENABLE_SANITY_CHECKS #define instead of using '1' 2020-03-01 13:14:46 +01:00
Christian Grothoff
f979ee9aca
add ENABLE_SANITY_CHECKS #define instead of using '1' 2020-03-01 13:13:33 +01:00
Christian Grothoff
d11a13c825
de-duplicate url.c 2020-03-01 13:04:06 +01:00
Christian Grothoff
effa6451a2
fix FIXME 2020-03-01 12:21:03 +01:00
Christian Grothoff
538ca960a1
bad FIXME, we should not 2020-03-01 12:14:54 +01:00
Christian Grothoff
da1af142c7
new REST API => version bump 2020-03-01 11:30:02 +01:00
Christian Grothoff
72764dc5f1
doxygen fixes 2020-02-29 17:13:43 +01:00
Christian Grothoff
cdc8c5b57b
limit redirects 2020-02-29 16:54:58 +01:00
Christian Grothoff
0a2b049864
big rename fest related to #6067 API renaming 2020-02-29 16:42:10 +01:00
Christian Grothoff
de9ab28ab9
rename fest, make symbols better match new endpoint names 2020-02-27 23:46:53 +01:00
Christian Grothoff
cef3b713ac
nicer logging 2020-02-26 23:51:40 +01:00
Christian Grothoff
30320fa66e
skip also here over part of URI that was already parsed 2020-02-26 23:51:30 +01:00
Christian Grothoff
8062ca0136
proper generation of /refreshes/ requests 2020-02-26 23:43:58 +01:00
Christian Grothoff
502c9a0fc3
more precise logging 2020-02-26 23:43:32 +01:00
Christian Grothoff
c520b0b86f
fix failure to remove rc from JSON 2020-02-26 23:43:23 +01:00
Christian Grothoff
ec8e3fad20
fix shutdown logic if shutdown happens during startup 2020-02-26 23:21:08 +01:00
Christian Grothoff
5d843e2cf4
fix uninitialized local 2020-02-26 23:20:48 +01:00
Christian Grothoff
582ce77d93
updating libtalerexchange to new REST API (#6067) 2020-02-26 22:24:22 +01:00
Christian Grothoff
fb9324338d
phase 1 of #6067: update exchange HTTPD to new API style 2020-02-26 17:00:41 +01:00
Christian Grothoff
30b24448c8
do not NPE if encountering reserve_close for which we have no summary 2020-02-25 14:21:14 +01:00
Christian Grothoff
47e8190e9d
fix pp update logic to not insert multiple pps 2020-02-25 14:20:41 +01:00
Christian Grothoff
548a0cc09d
do not NPE if encountering reserve_close for which we have no summary 2020-02-25 14:12:28 +01:00
Christian Grothoff
227467c394
comment on what not to DELETE 2020-02-24 18:29:52 +01:00
Christian Grothoff
badbe6d8ea
also drop signkeys table 2020-02-24 18:29:09 +01:00
Christian Grothoff
b77637ce9f
add additional DB constraints 2020-02-24 18:09:10 +01:00
Christian Grothoff
d2bc28aee6
add missing flags for coverage analysis 2020-02-24 13:49:15 +01:00
Christian Grothoff
7eb0f35dca
rename 2020-02-24 12:37:09 +01:00
Christian Grothoff
7d214bd979
rename 2020-02-24 12:37:00 +01:00
Christian Grothoff
93562574ab
0000 is reserved for versioning 2020-02-24 12:36:05 +01:00
Christian Grothoff
d9ce8554e0
0000 is reserved for versioning 2020-02-24 12:35:41 +01:00
Christian Grothoff
7ee3c485bd
die more nicely if we are called when we should not be 2020-02-24 12:21:46 +01:00
Christian Grothoff
bb0952ac8d
fix some auditor assertions (see #6106) 2020-02-23 22:01:27 +01:00
Christian Grothoff
176113a62a
fix some auditor assertions (see #6106) 2020-02-23 21:52:18 +01:00
Christian Grothoff
a66b9e1b8a
fix loglevel 2020-02-23 19:55:59 +01:00
Christian Grothoff
65434a0e00
fix return value in auditor logic, and check it as well; adding FIXME to mark improperly handled case 2020-02-23 19:55:21 +01:00
Christian Grothoff
919861aea8
use flags in correct place 2020-02-17 20:05:40 +01:00
Christian Grothoff
730a9b966f
check return value 2020-02-17 20:00:03 +01:00
Christian Grothoff
dcb8972085
expand mime list 2020-02-17 18:38:02 +01:00
Christian Grothoff
b6c2aad49e
fix 2020-02-17 18:35:14 +01:00
Christian Grothoff
ecb39ef51c
fix 2020-02-17 18:34:39 +01:00
Christian Grothoff
d798da08d6
fix uninit ret 2020-02-13 20:43:07 +01:00
Christian Grothoff
1448f97b51
keep the const though, that was an improvement 2020-02-11 23:02:22 +01:00
Christian Grothoff
357dbc0235
revert bank API change, we will not do this here after all 2020-02-11 23:01:49 +01:00
Christian Grothoff
c25b805f62
first draft implementation of new bank account balance in history logic (untested) 2020-02-11 16:01:45 +01:00
Christian Grothoff
3ad698d018
merging 2020-02-11 15:40:37 +01:00
Christian Grothoff
de0d987e34
start with new history API implementation 2020-02-11 15:39:39 +01:00
Christian Grothoff
cdaf1ce69b
rename SQL files to make filenames consistent with versioning name 2020-02-09 16:34:40 +01:00
Christian Grothoff
ae5583f044
avoid duping configuration, start to use PQ_connect_with_cfg 2020-02-09 15:53:28 +01:00
Christian Grothoff
001f155208
make script a bit nicer 2020-02-08 19:06:19 +01:00
Christian Grothoff
f70596ff4c
adding UNIX socket and restart tests (#5309) 2020-02-08 18:38:15 +01:00
Christian Grothoff
37c2915769
do not report missing reserve closures of amount 0.0 2020-02-08 17:55:22 +01:00
Christian Grothoff
db46491db9
fix uninitialized session 2020-02-08 17:49:56 +01:00
Christian Grothoff
964cd7a459
adding test for #6054 (duplicate WTID) 2020-02-08 17:41:27 +01:00
Christian Grothoff
9e0a813b38
implement auditor's exchange signing key caching (#6052) 2020-02-05 21:12:03 +01:00
Christian Grothoff
42bc31744b
implement /config in fakebank and taler_bank_lib.h (#6066) 2020-02-04 21:59:43 +01:00
Christian Grothoff
e6d6987e56
capitalization of option changed 2020-02-04 21:49:18 +01:00
Christian Grothoff
9bfeec352b
fix #6065 2020-02-04 20:57:11 +01:00
Christian Grothoff
5a11839002
add timetravel option for testing/debugging 2020-02-04 15:47:57 +01:00
Christian Grothoff
d47241e0e1
fix double continuation scheduling 2020-02-04 00:04:29 +01:00
Christian Grothoff
232606fb57
add IF NOT EXISTS for indices 2020-02-03 23:42:47 +01:00
Christian Grothoff
f4f86d2b01
increse log level on errors 2020-01-26 18:51:25 +01:00
Christian Grothoff
282e4f59ee
address bank_api_credit comment/FIXME from Florian, also adapt debit logic accordingly 2020-01-26 17:48:13 +01:00
Florian Dold
26c9563ef0
return TALER_EC_INVALID instead of TALER_EC_NONE when error JSON doesn't contain code 2020-01-23 15:44:33 +01:00
Florian Dold
0fe82acc1b
better naming, comments and more logging for incoming history 2020-01-22 13:53:11 +01:00
Florian Dold
975d9c9d15
make sure request_uid is actually unique
Allowing duplicate request_uid for different transfer details means that
somebody might eventually rely on this, which is bad.  They should
really be unique, it makes tracing easier.
2020-01-21 16:13:22 +01:00
Christian Grothoff
4c8f7799da
add config option for new bank 2020-01-20 14:26:42 +01:00
Christian Grothoff
5604a266d0
new DB 2020-01-20 14:22:56 +01:00
Christian Grothoff
52797133a4
fix signal initialization race on startup with shutdown 2020-01-20 12:10:44 +01:00
Christian Grothoff
8a4201c43b
fix 2020-01-20 11:47:47 +01:00
Christian Grothoff
be0a52f23c
fix crash 2020-01-20 11:46:44 +01:00
Christian Grothoff
92080dc8a4
add more tests 2020-01-20 11:38:53 +01:00
Christian Grothoff
85f10a86ff
handle case where get_session() is called from main, i.e. in combination with -f option 2020-01-20 11:15:19 +01:00
Christian Grothoff
72293a25ac
Merge branch 'master' of git+ssh://git.taler.net/exchange 2020-01-20 09:45:05 +01:00
Christian Grothoff
c381a2aba7
troublesome vars, remove 2020-01-20 09:45:01 +01:00
Florian Dold
e6bd2a8328
properly shut down wirewatch 2020-01-20 03:19:54 +01:00
Christian Grothoff
43f7cf3d07
push mpub 2020-01-20 03:02:05 +01:00
Christian Grothoff
df37433f4d
useless 2020-01-20 02:53:23 +01:00
Christian Grothoff
f616d29005
fix leak 2020-01-20 02:45:21 +01:00
Christian Grothoff
aaa57167db
add exchange key during test 2020-01-20 02:43:48 +01:00
Christian Grothoff
f4b17c3ada
update AFL test suite 2020-01-20 02:15:09 +01:00
Florian Dold
26ad7c8191
spelling of 'mismatch' 2020-01-20 02:11:03 +01:00
Christian Grothoff
f45b1c912b
fix leak 2020-01-20 02:00:55 +01:00
Christian Grothoff
f12ef85960
fix 2020-01-20 01:53:07 +01:00
Christian Grothoff
3fffb93e53
kill goto 2020-01-20 01:44:14 +01:00
Christian Grothoff
b290ca30c0
fix 2020-01-20 01:40:29 +01:00
Christian Grothoff
e090d69cb0
fix 2020-01-20 01:37:49 +01:00
Christian Grothoff
859337eabb
bugfixes 2020-01-20 01:31:24 +01:00
Christian Grothoff
7f60da4971
bugfixes 2020-01-20 01:30:38 +01:00
Christian Grothoff
8ce6d32f63
beautification 2020-01-20 01:23:02 +01:00
Christian Grothoff
500a7fe2bb
simplify 2020-01-20 00:32:17 +01:00
Florian Dold
2e1480dcab
fix copy and paste error 2020-01-20 00:31:48 +01:00
Florian Dold
82d31fed24
address minor fixmes 2020-01-20 00:30:55 +01:00
Christian Grothoff
4bf153fdb0
resolve fixmes 2020-01-20 00:21:50 +01:00
Florian Dold
c87eb30e78
some comments on aggregator 2020-01-20 00:07:45 +01:00
Christian Grothoff
26af6b2328
add single-threaded mode to exchange HTTP for fuzzing 2020-01-19 23:58:07 +01:00
Florian Dold
801592b460
doxygen fix 2020-01-19 23:05:22 +01:00
Florian Dold
73d9ef6c34
minor comment fixes 2020-01-19 22:57:46 +01:00
Christian Grothoff
bb36d40132
named constants please 2020-01-19 22:31:43 +01:00
Christian Grothoff
e5b92f8b5e
enable stdin for -f 2020-01-19 22:30:52 +01:00
Christian Grothoff
e46467510d
leak fixes 2020-01-19 22:24:04 +01:00
Florian Dold
12468e1fd8
denom->amount 2020-01-19 22:01:27 +01:00
Christian Grothoff
6445558065
fix auditor issues 2020-01-19 21:51:13 +01:00
Christian Grothoff
c48e4a8a06
comment on JSON canonicalization 2020-01-19 21:18:03 +01:00
Christian Grothoff
84fd301313
fix option 2020-01-19 21:13:52 +01:00
Christian Grothoff
c3ec8c929d
also check currency unit 2020-01-19 21:05:53 +01:00
Christian Grothoff
9cc2c7a208
fix option 2020-01-19 21:01:57 +01:00
Christian Grothoff
4f4b0349a5
add missing option 2020-01-19 21:01:33 +01:00
Christian Grothoff
4fac247bc7
use TALER_config_get_amount() consistently, require currency rounding option to exist instead of defaulting 2020-01-19 20:57:32 +01:00
Christian Grothoff
6f3c682722
rename: TALER_config_get_denom->amount 2020-01-19 20:39:27 +01:00
Christian Grothoff
bc812a0a51
indent 2020-01-19 20:37:12 +01:00
Christian Grothoff
a0c6adfa49
split off mhd.c 2020-01-19 20:36:34 +01:00
Christian Grothoff
59398cfd76
separate util.c and url.c 2020-01-19 20:33:07 +01:00
Christian Grothoff
600592dbf6
fix rounding, extend test 2020-01-19 20:11:32 +01:00
Christian Grothoff
e4cfa3d640
annotate 2020-01-19 19:44:29 +01:00
Christian Grothoff
5da9cfc51c
clean up amount logic, fix 2^53 check 2020-01-19 19:39:14 +01:00
Christian Grothoff
1f5c814b73
fix copyright headers as per CA 2020-01-19 19:22:43 +01:00
Christian Grothoff
d22a52cc7a
fix copyright headers as per CA 2020-01-19 19:21:58 +01:00
Christian Grothoff
cf2e77c929
fix section name 2020-01-19 19:19:20 +01:00
Florian Dold
cb58740fbd
remove redundant METHOD option, we can derive it from PAYTO_URI 2020-01-19 19:12:47 +01:00
Florian Dold
6074790867
config syntax for accounts 2020-01-19 18:48:23 +01:00
Christian Grothoff
c1dc7cc28b
leaks 2020-01-19 17:25:45 +01:00
Christian Grothoff
9031f7340d
try to fix mess for keystate locking 2020-01-19 17:14:14 +01:00
Christian Grothoff
b6543b8f9a
fix merge conflict 2020-01-19 17:06:12 +01:00
Christian Grothoff
707449aa8f
try to fix KS handling 2020-01-19 17:03:36 +01:00
Christian Grothoff
ce5adddaf3
clean up benchmark logic 2020-01-19 17:03:30 +01:00
Florian Dold
fc8bdb9b97
consistently use payto URI instead of URL 2020-01-19 17:03:19 +01:00
Florian Dold
9f522baadc
add missing files and adjust .gitignore rules for testing move 2020-01-19 16:06:29 +01:00
Florian Dold
03bcd50d9a
move libtalertwistertesting into the exchange 2020-01-19 16:02:04 +01:00
Christian Grothoff
ca0bc6fdc1
fix theoretical barrier issue 2020-01-19 15:46:09 +01:00
Christian Grothoff
42ef95d002
duplicate code elimination 2020-01-19 15:38:44 +01:00
Christian Grothoff
fdd8d602ba
fix benchmark 2020-01-19 15:36:49 +01:00
Florian Dold
72a629a8be
move testing logic and integration tests into separate directory 2020-01-19 15:23:33 +01:00