summaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_lookup_kyc_requirement_by_row.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-07-23 15:57:37 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-07-23 15:57:37 +0200
commit5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173 (patch)
treec1b765e8d49a0f5fcea49a66d91cf2d032f0253b /src/exchangedb/pg_lookup_kyc_requirement_by_row.c
parentd189fccd790a36046e1191d7170f45feb3dfb122 (diff)
downloadexchange-5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173.tar.gz
exchange-5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173.tar.bz2
exchange-5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173.zip
[kyc] put reserve_pub into legitimization_requirements
Diffstat (limited to 'src/exchangedb/pg_lookup_kyc_requirement_by_row.c')
-rw-r--r--src/exchangedb/pg_lookup_kyc_requirement_by_row.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/exchangedb/pg_lookup_kyc_requirement_by_row.c b/src/exchangedb/pg_lookup_kyc_requirement_by_row.c
index a167c0458..6f9d76786 100644
--- a/src/exchangedb/pg_lookup_kyc_requirement_by_row.c
+++ b/src/exchangedb/pg_lookup_kyc_requirement_by_row.c
@@ -31,8 +31,7 @@ TEH_PG_lookup_kyc_requirement_by_row (
uint64_t requirement_row,
char **requirements,
enum TALER_AmlDecisionState *aml_status,
- struct TALER_PaytoHashP *h_payto,
- struct TALER_ReservePublicKeyP **reserve_pub)
+ struct TALER_PaytoHashP *h_payto)
{
struct PostgresClosure *pg = cls;
uint32_t status = TALER_AML_NORMAL;
@@ -40,19 +39,12 @@ TEH_PG_lookup_kyc_requirement_by_row (
GNUNET_PQ_query_param_uint64 (&requirement_row),
GNUNET_PQ_query_param_end
};
- bool no_reserve_pub;
- struct TALER_ReservePublicKeyP *rp =
- GNUNET_new (struct TALER_ReservePublicKeyP);
struct GNUNET_PQ_ResultSpec rs[] = {
GNUNET_PQ_result_spec_string ("required_checks",
requirements),
GNUNET_PQ_result_spec_auto_from_type ("h_payto",
h_payto),
GNUNET_PQ_result_spec_allow_null (
- GNUNET_PQ_result_spec_auto_from_type ("reserve_pub",
- rp),
- &no_reserve_pub),
- GNUNET_PQ_result_spec_allow_null (
GNUNET_PQ_result_spec_uint32 ("status",
&status),
NULL),
@@ -65,7 +57,6 @@ TEH_PG_lookup_kyc_requirement_by_row (
"SELECT "
" lr.required_checks"
",lr.h_payto"
- ",lr.reserve_pub"
",aml.status"
" FROM legitimization_requirements lr"
" LEFT JOIN aml_status aml USING (h_payto)"
@@ -76,11 +67,5 @@ TEH_PG_lookup_kyc_requirement_by_row (
params,
rs);
*aml_status = (enum TALER_AmlDecisionState) status;
- if (no_reserve_pub)
- {
- GNUNET_free (rp);
- rp = NULL;
- }
- *reserve_pub = rp;
return qs;
}