Commit Graph

145 Commits

Author SHA1 Message Date
Christian Grothoff
c4ae15c1db
-strengthen payto validation logic 2021-08-02 19:38:23 +02:00
Christian Grothoff
243d39920c
-allow NULL in amounts 2021-07-31 23:07:03 +02:00
Christian Grothoff
fde9dc80f6
-more json_pack cleaning 2021-07-31 21:40:48 +02:00
Christian Grothoff
85a3a24ca7
-eliminate more format-string packs 2021-07-31 08:18:38 +02:00
Christian Grothoff
0ef7c0a0b7
fix #6960 2021-07-29 23:56:46 +02:00
Christian Grothoff
b9e4431ae6
-fix amount packer 2021-07-28 09:45:33 +02:00
Christian Grothoff
91bb5623de
JSON: implement taler-specific json pack functions 2021-07-26 17:26:09 +02:00
Christian Grothoff
42decef957
fix #6939 in exchange 2021-07-24 09:00:35 +02:00
Christian Grothoff
95f0fdf369
distinguish between input failure and internal failures when hashing contracts 2021-07-21 20:21:08 +02:00
Christian Grothoff
d37e4eabc4
-use nicer enum 2021-07-20 15:38:56 +02:00
Christian Grothoff
5c569d3df7
expose TALER_JSON_validate_payto 2021-07-20 15:36:08 +02:00
Christian Grothoff
5cec88e87e
-fix segv 2021-07-18 18:59:11 +02:00
Christian Grothoff
6680f9b4ef
implement logic to replace 'true' forgettable salts with random salts, fix object deletion when forgetting 2021-06-16 23:12:21 +02:00
Christian Grothoff
bf7adbfa2e
-remove dead leaky code 2021-06-16 17:40:04 +02:00
ffb24f5b59
use dollar to prefix reserved JSON names 2021-06-16 11:45:44 +02:00
Christian Grothoff
2918448338
purge fields instead of setting to NULL as suggested by Florian 2021-06-15 20:34:25 +02:00
Christian Grothoff
5f268913dd
return NO if forgetting did not work because it was already forgotten earlier 2021-05-11 19:17:09 +02:00
Christian Grothoff
684a234264
fix #6855 2021-05-09 13:41:23 +02:00
Christian Grothoff
5fc1764db3
do not upgrade gana to master on bootstrap 2021-04-09 16:33:35 +02:00
Christian Grothoff
da15a59717
omit charset from en_US.UTF-8 env variable when picking i18n strings, handle no preference case 2021-04-05 19:29:00 +02:00
Christian Grothoff
f36fe8c22c
omit charset from en_US.UTF-8 env variable when picking i18n strings 2021-04-05 19:27:53 +02:00
Christian Grothoff
63c6654c0f
omit charset from en_US.UTF-8 env variable when picking i18n strings 2021-04-05 19:27:19 +02:00
Christian Grothoff
004a7c9d54
implement convenience function to extract i18n values from JSON (for #6749) 2021-04-05 18:40:23 +02:00
Christian Grothoff
99fff4f98f
implement convenience function to extract i18n values from JSON (for #6749) 2021-04-05 18:33:01 +02:00
Christian Grothoff
cb686975ed
fix leak 2021-04-02 14:55:15 +02:00
Christian Grothoff
25fd6dc25a
fix misc leaks 2021-04-02 13:27:22 +02:00
Christian Grothoff
ec0b1b512c
fix json parsing invocation 2021-03-28 21:52:02 +02: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
Christian Grothoff
b5534977a3
add missing linker options, bonus fun 2020-12-31 22:23:54 +01:00
Christian Grothoff
8d312562bf
adjust ECs 2020-11-07 18:51:54 +01:00
Christian Grothoff
4bba726356
nicer generic error reporting logic, for #6432 2020-08-25 15:11:56 +02:00
Christian Grothoff
46dde9368f
implement i18n lookup logic for #6458 2020-08-19 18:19:00 +02:00
Jonathan Buchanan
c3eb0fd8e2
change behavior of expanding json paths with arrays 2020-07-21 16:34:14 -04:00
Jonathan Buchanan
fecfa27727
add parser for json path 2020-07-21 03:14:41 -04:00
Christian Grothoff
c326a5bd9d
implement forgettable contract terms core logic (#6365) 2020-07-16 14:35:47 +02:00
Christian Grothoff
e1ad498bff
first draft for #6365, test pending 2020-07-16 01:51:45 +02:00
Christian Grothoff
90e756ddea
rename TALER_JSON_hash to TALER_JSON_contract_hash 2020-07-16 00:42:42 +02:00
Christian Grothoff
575c10027b
also offer API for receiving rounded relative time via JSON 2020-07-05 22:00:01 +02:00
Christian Grothoff
54e63f01df
fix #6408: make sure all timestamps are always rounded when they arrive over JSON, or 400 the requester; similarly don't tolerate anything else as client 2020-07-05 21:54:11 +02:00
MS
1039a1c2f4
IBAN parser skips BIC part. 2020-06-10 17:56:58 +02:00
MS
ab1fc20a45
avoid assert() upon malformed IBANs 2020-06-10 16:15:48 +02:00
MS
3d1dc57bd8
IBAN parsing test. 2020-06-10 11:02:04 +02:00
Christian Grothoff
e2e8d62574
need array terminator 2020-04-24 20:57:04 +02:00
Christian Grothoff
8148c1e8af
fix #6186 2020-04-21 00:55:38 +02:00
Christian Grothoff
ab752e9591
also validate merchant IBANs before signing 2020-04-19 22:31:00 +02:00
Christian Grothoff
44272bf1ce
adapations to GNUnet API change 2020-04-11 21:06:30 +02:00
Christian Grothoff
bf8c5982a2
make exchange API more uniform in how information is returned 2020-04-05 22:05:38 +02:00
Christian Grothoff
17cfbced1d
fix inconsistency in field naming 2020-03-27 17:32:39 +01:00
Christian Grothoff
10c56bcea0
improving benchmarking logic, including more timings 2020-03-20 02:36:50 +01:00
Christian Grothoff
15489275ba
make DB reset optional in API, use it in tests, but not in the benchmark 2020-03-19 17:56:23 +01:00
Christian Grothoff
7fee395bb6
harden URI validation logic 2020-03-16 16:13:21 +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
232606fb57
add IF NOT EXISTS for indices 2020-02-03 23:42:47 +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
Christian Grothoff
8ce6d32f63
beautification 2020-01-20 01:23:02 +01:00
Christian Grothoff
c48e4a8a06
comment on JSON canonicalization 2020-01-19 21:18:03 +01:00
Christian Grothoff
d22a52cc7a
fix copyright headers as per CA 2020-01-19 19:21:58 +01:00
Florian Dold
fc8bdb9b97
consistently use payto URI instead of URL 2020-01-19 17:03:19 +01:00
Christian Grothoff
8dbc19758b
fix compiler warnings 2020-01-18 19:16:44 +01:00
Christian Grothoff
9317d6d69d
doxygen work 2020-01-18 13:23:17 +01:00
Florian Dold
d95f2a9e43
DCE, part one 2020-01-17 23:40:44 +01:00
Florian Dold
2e6d284e03
DCE 2020-01-16 08:53:03 +01:00
Christian Grothoff
f676be5c53
copyfix 2020-01-16 08:50:06 +01:00
Christian Grothoff
7c6853d830
simplify amount logic 2020-01-16 08:49:26 +01:00
Christian Grothoff
2d16cddfd9
die, dead #include, die 2020-01-13 18:19:21 +01:00
Christian Grothoff
4d6ef1da29
eliminate libtalerwire 2020-01-13 18:16:01 +01:00
Christian Grothoff
97f71c83a7
fix #6033: remove master_pub field 2020-01-08 10:29:55 +01:00
Christian Grothoff
b999a6b2c5
note on where to change exchange code once wallet is done for #5991 2019-12-12 16:03:46 +01:00
Christian Grothoff
70a210ac4d
add another helper 2019-11-25 01:42:55 +01:00
Christian Grothoff
385b3e77df
tighten formatting rules 2019-10-31 12:59:50 +01:00
Christian Grothoff
5fa4a0e7e1
fix warnings 2019-09-05 11:23:24 +02:00
Florian Dold
eb55997084
re-format code 2019-08-25 16:18:24 +02:00
Christian Grothoff
4bf425c902
remove currency field from databases 2019-08-17 21:35:21 +02:00
Florian Dold
7cce2fd62c
oops, first parse JSON 2019-06-27 00:47:42 +02:00
Florian Dold
9a69fd81ed
use GNUNET_memcmp 2019-06-26 23:35:39 +02:00
Florian Dold
87649e856a
wire signatures: produce better warning
Produce a better warning when the wire signature file is signed by a
different key than the one we're checking the signature with.
2019-06-26 23:33:15 +02:00
Christian Grothoff
9a5030b993
add test for json_wire.c logic 2019-06-26 20:43:08 +02:00
Christian Grothoff
a56e2e34bc
fix #5434 (no more salt in exchange wire replies) 2018-10-06 15:05:06 +02:00
Florian Dold
911b158bb8
fix some wrong -l flags 2018-08-16 13:03:30 +02:00
Marcello Stanisci
b84ba7074b
New error code for a unknown reserve public key.
Specific to the /reserve/status API.
2018-05-22 12:42:02 +02:00
Christian Grothoff
cb55c1a3af
Changing configuration structure to enable multiple accounts.
This change enables using multiple wire plugins at the same time.
Also, we now distinguish between the wire plugin (i.e. EBICS or
taler_bank) and the wire method (i.e. SEPA or x-taler-bank) that
the wire plugin is implementing.  The "taler-bank" wire method
was renamed from "test" to "x-taler-bank".

This also changes the format of the /wire response of the exchange,
as we now need to return multiple accounts.  Note that wire fees
are specified per wire method, not per wire account.

taler-exchange-keyup now automatically signs all of the /wire
responses in the location specified by the configuration.

Account identification in wire plugins was changed to use
payto://-URLs instead of method-specific JSON fields.  Signing
and validation of /wire responses was moved from each wire
plugin to a generic validation method in libtalerutil (crypto)
or libtalerjson (for JSON-formatted inputs).
Convenience methods were added to generate JSON for wire accounts
(salting, signing).

Various section and option names were adjusted to streamline the
configuration and make it more consistent overall.  Documentation
was updated as well.
2018-04-02 14:29:44 +02:00
Florian Dold
d126b16624
serialize amounts as string instead of an object 2018-01-29 19:26:10 +01:00
Christian Grothoff
c5f9c0ca88
work on making auditor reports nicer (#4962) 2017-11-06 00:03:08 +01:00
Christian Grothoff
2f715c27f8
check return value from TALER_JSON_hash 2017-10-06 20:02:28 +02:00
Christian Grothoff
1da03b95eb
fix indentation 2017-10-06 19:54:48 +02:00
Christian Grothoff
0c522791fe
bump versions for release 2017-06-06 14:03:53 +02:00
Christian Grothoff
a5fedfeeb8
remove redundant check 2017-05-09 13:26:34 +02:00
Christian Grothoff
5e8ef38680
fixing #4980 2017-04-18 21:05:27 +02:00
Christian Grothoff
19f4c50dab
rename and move TALER_EXCHANGE_json_get_error_code to TALER_JSON_get_error_code 2016-10-20 21:19:01 +02:00
Marcello Stanisci
59c6856284 fixing #4594 2016-07-07 17:55:25 +02:00
Christian Grothoff
aee021aa37 update ignore file, fix compiler warning 2016-04-06 11:27:51 +02:00
Christian Grothoff
737e3f4bf6 refactor to eliminate duplicated JSON parsing logic (#4150) 2016-03-19 19:16:35 +01:00
Christian Grothoff
0d1eced630 first refactoring of JSON logic to address #4150 and #4237 2016-03-19 15:23:11 +01:00