Commit Graph

4192 Commits

Author SHA1 Message Date
Sebastian
93347b3904
fix #6745 2021-02-07 20:11:24 -03:00
Sebastian
07a5f6fb82
fix #6744 2021-02-07 19:33:15 -03:00
9bf54f4bab
auditor test: don't pass any merchant auth token 2021-02-04 18:27:05 +01:00
bfd67a22fd
fix merchant auth token in auditor test 2021-02-04 18:02:46 +01:00
Thien-Thi Nguyen
0db1fa0067
fix typo: s/actually/actual/ 2021-02-03 12:02:57 -05:00
Christian Grothoff
fee5d3b716
not not break 2021-01-29 10:00:23 +01:00
Christian Grothoff
7d0d8d9f1c
try another tac 2021-01-28 22:36:02 +01:00
Christian Grothoff
0e10a48a17
swap signal and unlock logic to hopefully nail #6726 2021-01-28 22:01:03 +01:00
Christian Grothoff
4dd87e1118
more logging 2021-01-28 21:46:21 +01:00
Christian Grothoff
bfd0a96254
improve test logging 2021-01-28 21:23:16 +01:00
Christian Grothoff
88627af6a3
fix #6726 2021-01-27 18:57:39 +01:00
Christian Grothoff
66c950c020
clean up code 2021-01-27 10:02:00 +01:00
Christian Grothoff
1d996f65fd
use version 2021-01-26 21:49:58 +01:00
Christian Grothoff
9e910cb1b9
implement #6724 2021-01-26 21:45:37 +01:00
Christian Grothoff
556a7f36b8
fix #6725: use modern name 2021-01-26 19:24:40 +01:00
Christian Grothoff
2b35e3796f
strptime is locale-dependent, re-implement for C locale-only 2021-01-26 14:10:06 +01:00
Christian Grothoff
6cd6582a4f
improve logging 2021-01-26 12:38:54 +01:00
Thien-Thi Nguyen
2bba834643
make "make check" in src/util respect env var ‘TMPDIR’
https://bugs.gnunet.org/view.php?id=6714
2021-01-21 19:56:53 -05:00
Christian Grothoff
2aa77fdd1c
work around compiler warning, ensure we leave 0-terminator, even though it is not required by the kernel 2021-01-21 13:20:25 +01:00
Christian Grothoff
99b3ed45fa
update log level 2021-01-21 13:07:19 +01:00
Christian Grothoff
7bbb44ec04
improve logging and comments in json.c 2021-01-18 11:22:52 +01:00
b23f9b78a4
rename taler-helper-crypto-* to taler-exchange-secmod-* 2021-01-17 20:07:55 +01:00
ed9c37ef4f
remove unused struct member 2021-01-16 23:57:34 +01:00
Christian Grothoff
94c5ee9376
reduce lookahead_sign in tests to improve test performance a bit 2021-01-16 23:55:11 +01:00
Christian Grothoff
c630487dfc
nah, also on internal server errors and anything I can imagine we should backoff, not just on timeout 2021-01-16 22:36:30 +01:00
Christian Grothoff
8c4bc1121a
remove dead field 2021-01-16 22:33:25 +01:00
Christian Grothoff
148f81331a
ensure /management/keys cache is flushed when keys change 2021-01-15 18:17:04 +01:00
Christian Grothoff
928d6626b5
newline 2021-01-15 18:01:34 +01:00
Christian Grothoff
59ddec5173
fix use after free issue 2021-01-15 16:18:25 +01:00
Christian Grothoff
33835b124b
fix DH revocation logic 2021-01-15 15:38:47 +01:00
Christian Grothoff
8c113d2459
avoid warning if file does not exist 2021-01-15 15:32:10 +01:00
Christian Grothoff
aab39b3dc9
mkdir on tofu file 2021-01-15 15:28:23 +01:00
Christian Grothoff
7c8d8b7917
improve logging 2021-01-15 12:18:27 +01:00
Christian Grothoff
3b9c381112
remove master_pub from DB 2021-01-15 11:53:54 +01:00
57a0fc8d1f
purge old LOOKAHEAD_PROVIDE option 2021-01-15 11:36:45 +01:00
f45e72ae5d
remove legacy config option 2021-01-14 16:34:48 +01:00
Christian Grothoff
e3a0bc0d1f
fix sync issues, add rudimentary test 2021-01-13 19:47:45 +01:00
Christian Grothoff
52513dcc26
bugfixes in auditor-sync logic 2021-01-12 23:00:57 +01:00
8f887a215e
dynamic curl timeouts for /keys and /wire requests 2021-01-12 15:12:26 +01:00
Christian Grothoff
2518da8f45
taler-auditor-sync WiP 2021-01-11 23:02:22 +01:00
Christian Grothoff
e3156e88a7
sync skeleton 2021-01-11 19:04:49 +01:00
Christian Grothoff
5eed611594
fix #6685 2021-01-11 10:52:33 +01:00
Christian Grothoff
3a264434d7
DB schema update 2021-01-11 10:01:59 +01:00
Christian Grothoff
543cd6d342
finish irbt_callbacks 2021-01-10 21:42:25 +01:00
Christian Grothoff
278b35a0fb
more work on INSERT statements 2021-01-10 18:40:39 +01:00
Christian Grothoff
af97a44ae6
complete select_serial_by_* SELECT statements 2021-01-10 18:06:18 +01:00
Christian Grothoff
f70c53d2d6
expand irbt templates 2021-01-10 17:27:46 +01:00
Christian Grothoff
bee612e2ef
expand irbt templates 2021-01-10 17:07:09 +01:00
Christian Grothoff
59cde016a6
preparing statements for auditor replication logic 2021-01-10 17:04:52 +01:00
Christian Grothoff
80b4fc0869
skeleton for postgres_insert_records_by_table 2021-01-10 13:27:33 +01:00
Christian Grothoff
0e16fb816c
fix #6683 2021-01-10 13:15:23 +01:00
Christian Grothoff
5e80154f43
complete (untested) implementation of lrbt_callbacks 2021-01-10 12:56:13 +01:00
Christian Grothoff
b40afe196c
remove redundant old_coin_pub from link data 2021-01-10 12:15:47 +01:00
Christian Grothoff
ca66a1d1af
fix major bug with SQL statement missing ORDER BY freshcoin_index resulting in possible link failures (but usually lucky with old DB schema) 2021-01-10 00:54:12 +01:00
Christian Grothoff
02ecf68a3d
more optimizations of tables with foreign keys 2021-01-09 13:18:01 +01:00
Christian Grothoff
260e287685
change wire_reference to be uint64_t always; more work on lrbt_callbacks 2021-01-08 23:36:09 +01:00
Christian Grothoff
db61628a9c
use known_coin_id instead of coin_pub, use reserve_out_serial_id/rrc_serial instead of h_blind_ev/h_coin_ev 2021-01-08 21:07:42 +01:00
Christian Grothoff
7ef7d793de
use auditor_uuid instead of auditor_pub as foreign key 2021-01-08 19:11:36 +01:00
Christian Grothoff
13555448b6
change exchange database to use denominations_serial instead of denom_pub_hash as foreign key 2021-01-08 18:14:46 +01:00
Christian Grothoff
3999999988
fixes for earlier fix 2021-01-07 22:48:50 +01:00
Christian Grothoff
421e802fd3
fix test issues with new DB schema 2021-01-07 22:24:19 +01:00
Christian Grothoff
6ccda0b02e
make reserve balance check used in internal_auditor mode only 2021-01-07 21:25:52 +01:00
Christian Grothoff
9d5a3ef659
only check tiny/done in internal mode 2021-01-07 21:14:26 +01:00
Christian Grothoff
9473ef4d86
fix remaining #6679 issues in exchange 2021-01-07 20:52:11 +01:00
Christian Grothoff
b2d8799af1
work on #6679" 2021-01-07 10:40:01 +01:00
Christian Grothoff
40551fa08e
add -i option to taler-auditor 2021-01-06 22:51:55 +01:00
Christian Grothoff
73a9fe56eb
add checks to ensure payto:// URI is well-formed to taler-exchange-offline, and taler-exchange-httpd where applicable (fixes #6675) 2021-01-06 15:52:12 +01:00
Christian Grothoff
1f91211263
Merge branch 'master' of git+ssh://git.taler.net/exchange 2021-01-06 15:43:22 +01:00
Christian Grothoff
a7d43dd6c2
fix #6676 2021-01-06 15:43:16 +01:00
5d238a6e76
also load keys in show subcommand 2021-01-06 12:50:27 +01:00
Christian Grothoff
e8df4ac339
update .gitignore files 2021-01-06 11:38:13 +01:00
Christian Grothoff
c90902ef50
generate DBs with current schema 2021-01-06 11:36:52 +01:00
Christian Grothoff
b05610a992
latest merchant needs dbinit 2021-01-06 11:34:50 +01:00
Christian Grothoff
09d6ee75fe
add chmod() to set client unix domain socket to group writable regardless of umask 2021-01-06 10:22:49 +01:00
Christian Grothoff
dc570d0c06
better error handling on configuration failures 2021-01-06 10:16:58 +01:00
Christian Grothoff
adb48b6163
use shorter PATHs, /home/grothoff/research/taler/exchange/src/util may be too much for UNIXPATH 2021-01-06 10:11:53 +01:00
Christian Grothoff
e6f44e22ac
use blocking sendto() call to possibly eliminate need for nanosleep() 2021-01-06 10:07:12 +01:00
Christian Grothoff
ad3d0a8997
improve logging 2021-01-05 21:30:28 +01:00
Christian Grothoff
4c8aef9841
schema update in preparation of exchange-auditor database replication logic 2021-01-05 21:21:38 +01:00
Christian Grothoff
16c79df86d
fix path for tests 2021-01-05 18:12:48 +01:00
Christian Grothoff
8764047368
fix path for tests 2021-01-05 18:10:40 +01:00
Christian Grothoff
148287954d
clean taler-config, needed to build proper dpkg 2021-01-02 12:00:00 +01:00
Christian Grothoff
e50f85e6c3
bump protocol version 2021-01-01 15:50:58 +01:00
Christian Grothoff
26410a72c2
fix #6666, bump protocol version to 9 2021-01-01 15:48:43 +01:00
Christian Grothoff
6b70f2e454
keep helpers in normal bin/ dir 2020-12-31 22:31:32 +01:00
Christian Grothoff
b5534977a3
add missing linker options, bonus fun 2020-12-31 22:23:54 +01:00
Christian Grothoff
f82488c060
add missing linker options, bonus fun 2020-12-31 22:22:19 +01:00
Christian Grothoff
0bffea1f67
add missing linker options 2020-12-31 22:13:12 +01:00
Christian Grothoff
0d21b947f8
fix bogus assertion 2020-12-31 21:59:28 +01:00
Christian Grothoff
3399ece8c3
proposed fix for #6667 2020-12-31 21:23:33 +01:00
Christian Grothoff
54b4951b89
more logging for #6667 2020-12-31 20:41:33 +01:00
Christian Grothoff
65ee08a553
more logging for #6667 2020-12-31 19:18:31 +01:00
Thien-Thi Nguyen
b7af94231b
fix typo in last commit: s/dh/esh/ (three instances)
* src/util/crypto_helper_esign.c (TALER_CRYPTO_helper_esign_poll): ...here.
2020-12-31 12:00:49 -05:00
Christian Grothoff
7514407487
use same restart logic for EdDSA and RSA 2020-12-31 17:38:41 +01:00
Christian Grothoff
ad62f0fb7e
set timeout to 5s 2020-12-31 17:35:21 +01:00
Christian Grothoff
b72bf98432
fix bad call 2020-12-26 16:50:41 +01:00
Christian Grothoff
ad12b72a80
handle GONE, specified legal value now 2020-12-26 16:40:43 +01:00
Christian Grothoff
77d49bf4a7
init member 2020-12-26 16:29:20 +01:00
Christian Grothoff
efbc411dea
new GANA code for revoked esign key 2020-12-26 16:23:22 +01:00
Christian Grothoff
57c9054784
implement #6161 2020-12-26 15:55:34 +01:00
Christian Grothoff
32da815427
clarify why FIXME does not need fix 2020-12-25 09:06:37 +01:00
Christian Grothoff
2c856ebe3c
use BASE_URL consistently 2020-12-25 09:04:27 +01:00
Christian Grothoff
d5d2fc12f5
fix test failures 2020-12-25 08:59:04 +01:00
Christian Grothoff
6243afe0ef
address FIXMEs 2020-12-25 08:51:56 +01:00
Christian Grothoff
e1e9250ff7
add check for sufficiently recent version of libgnunetutil, remove now unnecessary crypto blinding logic 2020-12-25 08:44:57 +01:00
Christian Grothoff
247d1ca3e5
implement #6661: secm key pinning via configuration 2020-12-24 14:48:50 +01:00
Christian Grothoff
deed88fe33
complete config 2020-12-22 18:41:40 +01:00
Christian Grothoff
0e74fbef8d
add logic to report generation for missing auditor signatures 2020-12-22 18:38:14 +01:00
Christian Grothoff
fe232f1fed
integrate auditor signature check logic with taler-helper-auditor-coins 2020-12-22 18:27:34 +01:00
Christian Grothoff
a644355c44
address FIXME: pass session when iterating over denominations 2020-12-22 18:13:46 +01:00
Christian Grothoff
f17d886753
remove fixme, function remains in use" 2020-12-20 20:22:52 +01:00
Christian Grothoff
5b2adfc3cb
update .gitignore 2020-12-20 20:15:33 +01:00
Christian Grothoff
a5cf0a53dd
fix NPE checking sig when there is none 2020-12-20 20:10:46 +01:00
Christian Grothoff
95333b4223
only log with json_dumpf() if explicitly compiled via DEBUG #define 2020-12-20 20:05:48 +01:00
Christian Grothoff
4b9fb610d8
do not log error on MHD_HTTP_GONE status code, revocation is a legitimate reply 2020-12-20 20:03:59 +01:00
Christian Grothoff
d986555355
log when we sign, with error if time does not match expectations 2020-12-20 18:27:10 +01:00
Christian Grothoff
1fcfdf4c9e
add missing return 2020-12-20 17:15:55 +01:00
Christian Grothoff
c57d2f0468
spell checking issues 2020-12-20 17:11:52 +01:00
Christian Grothoff
699916056b
misc doxygen fixes 2020-12-20 17:10:09 +01:00
Christian Grothoff
6a73629aee
re-enable cherry picking test (kind-of passes, not finished) 2020-12-20 17:10:01 +01:00
Christian Grothoff
8e7b0f5f27
rename wire2.c to wire.c 2020-12-20 16:49:03 +01:00
Christian Grothoff
a11f6aa8f2
do not generate invalid /wire replies 2020-12-20 16:48:34 +01:00
Christian Grothoff
6f69bc424a
fix GNUNET_DISK_fn_write() rval check to match latest GNUnet API 2020-12-20 15:52:27 +01:00
Christian Grothoff
7877c24ef2
adapt to GNUENT_DISK_fn_write API change 2020-12-19 18:44:23 +01:00
Christian Grothoff
0ad6cb0a86
fix #6662: add versioning information to JSON exchanged between taler-exchange-offline invocations 2020-12-19 17:36:10 +01:00
Christian Grothoff
b1e305fb05
remove obsolete configuration options 2020-12-17 16:19:28 +01:00
Christian Grothoff
f930a8c9d0
simplify further 2020-12-17 15:46:52 +01:00
Christian Grothoff
b74612fc33
update auditordb and test logic to work with new key separation logic (#6175) 2020-12-17 13:04:37 +01:00
Christian Grothoff
ff27037d42
regenerate DBs 2020-12-16 20:01:00 +01:00
Christian Grothoff
cd6a3b8de7
fix config for aggregator test 2020-12-16 19:58:42 +01:00
Christian Grothoff
9745e82c59
aggregator test now does also needs exchange running, if only to post the fees initially 2020-12-16 19:44:15 +01:00
Christian Grothoff
9d3e052ad3
enable more test logic 2020-12-16 19:35:06 +01:00
Christian Grothoff
c940296185
need to have fees for wire tool tests, too 2020-12-16 19:31:46 +01:00
Christian Grothoff
233f567b81
need to have fees for auditor test, too 2020-12-16 19:29:13 +01:00
Christian Grothoff
6f6c71a8d3
load fees from DB instead of from config, also in wire tools 2020-12-16 19:23:29 +01:00
Christian Grothoff
e0497239e9
adapt tests to run without keyup tool 2020-12-16 15:05:43 +01:00
Christian Grothoff
0336e62cca
finish revocation DB generation fixes: add timetravel for helpers 2020-12-16 14:39:56 +01:00
Christian Grothoff
70ca77c7b2
setup auditor-pub 2020-12-16 14:16:02 +01:00
Christian Grothoff
3afe09ba96
fix exchange account 2020-12-16 14:15:06 +01:00
Christian Grothoff
6d820228b6
enable auditor in generate-XXX-basedb scripts 2020-12-16 13:23:41 +01:00
Christian Grothoff
cffefb0b63
remove duplicated comments 2020-12-16 12:57:27 +01:00
Christian Grothoff
96b4c139ee
add auditor-enable /-disable commands to taler-exchange-offline tool 2020-12-16 12:56:35 +01:00
Christian Grothoff
18c12f6234
misc new /keys management related bugfixes 2020-12-15 21:09:36 +01:00
Christian Grothoff
97cbf8bd53
log 2020-12-15 19:36:05 +01:00
Christian Grothoff
20c0c01d02
fix new /keys shutdown sequence 2020-12-15 14:40:08 +01:00
Christian Grothoff
4a519078e8
update generator scripts to use new -offline tools (WiP) 2020-12-14 18:27:16 +01:00
Christian Grothoff
45926ec067
remove very obsolete tool and test 2020-12-14 17:17:14 +01:00
Christian Grothoff
04f2e9a4d5
(start to) remove logic no longer needed with new key management 2020-12-14 17:12:48 +01:00
Christian Grothoff
b5d88fc2d1
activating implementation of #6175 2020-12-14 15:42:32 +01:00
Christian Grothoff
468fc9d1a1
add missing signkey_legal_duration option to test configs 2020-12-12 23:55:20 +01:00
Christian Grothoff
8bed4152fe
allow empty signkeys array 2020-12-12 22:43:04 +01:00
Christian Grothoff
0847e16ea5
fix misc bugs 2020-12-12 22:42:33 +01:00
Christian Grothoff
7442744809
fix misc bugs 2020-12-12 22:42:04 +01:00
Christian Grothoff
b81a5fb3aa
add sync and timeout functionality to helpers 2020-12-12 22:40:40 +01:00
Christian Grothoff
09abf5e7e0
integrate new REST calls, add timeout to helper invocations 2020-12-12 11:34:57 +01:00
Christian Grothoff
2a3de6555a
add setup steps to tests 2020-12-11 23:44:01 +01:00
Christian Grothoff
c7b5def707
-remove sleep 2020-12-11 23:11:03 +01:00
Christian Grothoff
3743d200ad
misc clean ups 2020-12-11 23:10:32 +01:00
Christian Grothoff
4587a79071
fix bank invocation 2020-12-11 13:13:47 +01:00
Christian Grothoff
781542d3e0
force use of Taler PD when getting libexec dir 2020-12-11 12:51:00 +01:00
Christian Grothoff
7274162458
supply more defaults 2020-12-11 00:05:30 +01:00
Christian Grothoff
f587df78f3
supply more defaults 2020-12-11 00:04:30 +01:00
Christian Grothoff
2bcf6646e4
supply more defaults 2020-12-11 00:03:58 +01:00
Christian Grothoff
437f1b8658
cascade 2020-12-10 23:59:33 +01:00
Christian Grothoff
eaa58a17e0
add missing drops 2020-12-10 23:54:47 +01:00
Christian Grothoff
50671ad727
fix early base URL free 2020-12-10 16:15:59 +01:00
Christian Grothoff
35bec60894
implement POST /managment/keys 2020-12-10 11:49:20 +01:00
Christian Grothoff
5a24334e83
complete new implementation of GET /keys 2020-12-09 23:39:11 +01:00
Christian Grothoff
788f84f695
fix ftbfs issues in wire2 2020-12-09 13:06:31 +01:00
Christian Grothoff
fa1914b267
work on new logic to generate /wire response 2020-12-09 12:31:10 +01:00
Christian Grothoff
9911b327ac
fix #6665 2020-12-09 07:25:26 +01:00
Christian Grothoff
ccafd0245e
missing file 2020-12-08 19:55:19 +01:00
Christian Grothoff
05f539c127
initialize master_pub field 2020-12-08 19:13:39 +01:00
Christian Grothoff
75b510f92f
fix secmod rsa signature 2020-12-08 19:01:27 +01:00
Christian Grothoff
3ffd605041
fix FTBFS issues in new /keys logic 2020-12-07 21:39:45 +01:00
Christian Grothoff
f256dab738
more work on new /keys logic 2020-12-07 00:05:07 +01:00
Christian Grothoff
7db909dd12
record DB replies for /keys in memory 2020-12-06 22:36:29 +01:00
Christian Grothoff
22c9321e67
expand exchangedb plugin for new /keys logic 2020-12-06 21:54:32 +01:00
Christian Grothoff
fd96e34c78
more work on future /keys 2020-12-06 17:51:44 +01:00
Christian Grothoff
d9ac8e7975
incomplete work on forthcoming /keys implementation 2020-12-06 16:53:29 +01:00
Christian Grothoff
b90293a92f
need TOFU file option 2020-12-06 00:08:04 +01:00
Christian Grothoff
70b0839644
implement new taler-auditor-offline tool 2020-12-06 00:05:45 +01:00
Christian Grothoff
9aff197bb3
completed offline tool uploading /management/keys 2020-12-05 21:56:12 +01:00
Christian Grothoff
e0b62b0a49
towards offline tool uploading /management/keys 2020-12-05 21:33:30 +01:00
Christian Grothoff
719779577a
work on 'show' command for taler-exchange-offline 2020-12-05 20:06:03 +01:00
Christian Grothoff
8170e1e9ab
move all TALER_SIGNATURE_SM_-operations to secmod_signatures.c 2020-12-05 19:47:54 +01:00
Christian Grothoff
c898ff53a2
add tofu logic 2020-12-05 13:09:49 +01:00
Christian Grothoff
ba4f585d69
add logic for wire fee signing with new offline tool 2020-12-05 10:48:59 +01:00
Christian Grothoff
8338d4574f
improve/test taler-exchange-offline 2020-12-04 21:34:53 +01:00
Christian Grothoff
efc07a5591
add commands to change wire accounts 2020-12-04 21:16:32 +01:00
Christian Grothoff
93537ce8d3
more offline commands support 2020-12-04 20:38:00 +01:00
Christian Grothoff
6cceb617af
centralize (most) offline signing/verifying operations into offline_signatures.c 2020-12-04 20:29:18 +01:00
Christian Grothoff
9b290fb26b
more funky boilerplate for taler-exchange-offline tool 2020-12-04 18:07:29 +01:00
Christian Grothoff
2dd11d7e9c
fix build order 2020-12-04 16:55:38 +01:00
Christian Grothoff
6f0c639478
start skeleton for taler-exchange-offline tool 2020-12-04 16:43:23 +01:00
82813b337c
copy (un)blinding logic from GNUnet 2020-12-04 12:25:58 +01:00
d3b714922f
conditionally use (un)blinding implementation from libgnunetutil 2020-12-04 12:10:09 +01:00
Christian Grothoff
86dd5d46dd
set correct options for fakebank, we have been lucky that this didn't show up badly in tests 2020-12-02 20:27:42 +01:00
Christian Grothoff
9a3377766d
remove bogus check 2020-12-02 16:02:56 +01:00
Christian Grothoff
b92e85f9cc
fix SQL error 2020-12-02 15:58:13 +01:00