fix cyclic dependency by combining exchange-lib and auditor-lib directories

This commit is contained in:
Christian Grothoff 2019-01-11 21:27:34 +01:00
parent 57ab9f9fdb
commit 54fc83ee6b
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
111 changed files with 135 additions and 222 deletions

22
.gitignore vendored
View File

@ -40,14 +40,14 @@ src/bank-lib/test_bank_api_new
src/bank-lib/test_bank_api_with_fakebank src/bank-lib/test_bank_api_with_fakebank
src/bank-lib/test_bank_api_with_fakebank_new src/bank-lib/test_bank_api_with_fakebank_new
src/bank-lib/test_bank_api_with_fakebank_twisted src/bank-lib/test_bank_api_with_fakebank_twisted
src/exchange-lib/test_exchange_api_new src/lib/test_exchange_api_new
src/exchange-lib/test_exchange_api src/lib/test_exchange_api
src/exchange-lib/test_exchange_api_home/.local/share/taler/exchange/live-keys/ src/lib/test_exchange_api_home/.local/share/taler/exchange/live-keys/
src/exchange-lib/test_exchange_api_home/.local/share/taler/exchange/wirefees/ src/lib/test_exchange_api_home/.local/share/taler/exchange/wirefees/
src/exchange-lib/test_exchange_api_home/.local/share/taler/auditor/ src/lib/test_exchange_api_home/.local/share/taler/auditor/
src/exchange-lib/test_exchange_api_home/.local/share/taler/auditors/ src/lib/test_exchange_api_home/.local/share/taler/auditors/
src/exchange-lib/auditor.in src/lib/auditor.in
src/exchange-lib/test_exchange_api_twisted src/lib/test_exchange_api_twisted
src/exchange/taler-exchange-aggregator src/exchange/taler-exchange-aggregator
src/exchange/test_taler_exchange_aggregator-postgres src/exchange/test_taler_exchange_aggregator-postgres
src/exchange/test_taler_exchange_httpd_home/.local/share/taler/exchange/live-keys/ src/exchange/test_taler_exchange_httpd_home/.local/share/taler/exchange/live-keys/
@ -97,8 +97,8 @@ doc/manual/manual.tp
doc/manual/manual.vr doc/manual/manual.vr
contrib/taler-exchange.tag contrib/taler-exchange.tag
doxygen-doc/ doxygen-doc/
src/exchange-lib/test_exchange_api_keys_cherry_picking src/lib/test_exchange_api_keys_cherry_picking
src/exchange-lib/test_exchange_api_keys_cherry_picking_new src/lib/test_exchange_api_keys_cherry_picking_new
src/auditor/taler-wire-auditor src/auditor/taler-wire-auditor
contrib/auditor-report.aux contrib/auditor-report.aux
contrib/auditor-report.log contrib/auditor-report.log
@ -106,4 +106,4 @@ contrib/auditor-report.tex
contrib/auditor-report.pdf contrib/auditor-report.pdf
src/bank-lib/taler-bank-transfer src/bank-lib/taler-bank-transfer
src/bank-lib/test_bank_api_twisted src/bank-lib/test_bank_api_twisted
src/exchange-lib/test_exchange_api_new src/lib/test_exchange_api_new

View File

@ -546,12 +546,11 @@ AC_CONFIG_FILES([Makefile
src/Makefile src/Makefile
src/auditor/Makefile src/auditor/Makefile
src/auditordb/Makefile src/auditordb/Makefile
src/auditor-lib/Makefile
src/bank-lib/Makefile src/bank-lib/Makefile
src/exchange/Makefile src/exchange/Makefile
src/exchangedb/Makefile src/exchangedb/Makefile
src/exchange-tools/Makefile src/exchange-tools/Makefile
src/exchange-lib/Makefile src/lib/Makefile
src/benchmark/Makefile src/benchmark/Makefile
src/include/Makefile src/include/Makefile
src/json/Makefile src/json/Makefile

View File

@ -22,12 +22,12 @@ pkgcfg_DATA = \
EXTRA_DIST = \ EXTRA_DIST = \
taler.conf taler.conf
SUBDIRS = include util wire json $(PQ_DIR) $(BANK_LIB) wire-plugins exchangedb exchange exchange-tools auditordb auditor SUBDIRS = include util wire json $(PQ_DIR) $(BANK_LIB) wire-plugins exchangedb exchange exchange-tools auditordb auditor
if HAVE_LIBCURL if HAVE_LIBCURL
SUBDIRS += exchange-lib auditor-lib benchmark SUBDIRS += lib benchmark
else else
if HAVE_LIBGNURL if HAVE_LIBGNURL
SUBDIRS += exchange-lib auditor-lib benchmark SUBDIRS += lib benchmark
endif endif
endif endif

View File

@ -1,90 +0,0 @@
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include
if USE_COVERAGE
AM_CFLAGS = --coverage -O0
XLIB = -lgcov
endif
lib_LTLIBRARIES = \
libtalerauditor.la \
libtalerauditortesting.la
libtalerauditor_la_LDFLAGS = \
-version-info 0:0:0 \
-no-undefined
libtalerauditor_la_SOURCES = \
curl_defaults.c \
auditor_api_handle.c auditor_api_handle.h \
auditor_api_deposit_confirmation.c \
auditor_api_exchanges.c
libtalerauditor_la_LIBADD = \
$(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \
-lgnunetjson \
-lgnunetutil \
-ljansson \
$(XLIB)
if HAVE_LIBCURL
libtalerauditor_la_LIBADD += -lcurl
else
if HAVE_LIBGNURL
libtalerauditor_la_LIBADD += -lgnurl
endif
endif
libtalerauditortesting_la_LDFLAGS = \
-version-info 0:0:0 \
-no-undefined
libtalerauditortesting_la_SOURCES = \
testing_auditor_api_helpers.c \
testing_auditor_api_cmd_deposit_confirmation.c \
testing_auditor_api_cmd_exchanges.c \
testing_auditor_api_cmd_exec_auditor.c \
testing_auditor_api_cmd_exec_auditor_dbinit.c \
testing_auditor_api_cmd_exec_wire_auditor.c
libtalerauditortesting_la_LIBADD = \
libtalerauditor.la \
$(top_builddir)/src/exchange-lib/libtalerexchange.la \
$(top_builddir)/src/exchange-lib/libtalertesting.la \
$(top_builddir)/src/wire/libtalerwire.la \
$(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \
-lgnunetjson \
-lgnunetutil \
-ljansson \
$(XLIB)
check_PROGRAMS = \
test_auditor_api
AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH;
TESTS = \
$(check_PROGRAMS)
test_auditor_api_SOURCES = \
test_auditor_api.c
test_auditor_api_LDADD = \
libtalerauditortesting.la \
libtalerauditor.la \
$(top_builddir)/src/exchange-lib/libtalertesting.la \
$(top_builddir)/src/exchange-lib/libtalerexchange.la \
$(LIBGCRYPT_LIBS) \
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
$(top_builddir)/src/bank-lib/libtalerbank.la \
$(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \
-lgnunetutil \
-ljansson
EXTRA_DIST = \
test_auditor_api.conf \
test_auditor_api_expire_reserve_now.conf

View File

@ -1,38 +0,0 @@
/*
This file is part of TALER
Copyright (C) 2014-2018 GNUnet e.V.
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 3, or (at your option) any later version.
TALER is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
TALER; see the file COPYING. If not, see
<http://www.gnu.org/licenses/>
*/
/**
* @file auditor-lib/backoff.h
* @brief backoff computation for the auditor lib
* @author Florian Dold
*/
#ifndef _TALER_BACKOFF_H
#define _TALER_BACKOFF_H
#include "platform.h"
#include <gnunet/gnunet_time_lib.h>
/**
* Random exponential backoff used in the auditor lib.
*/
#define AUDITOR_LIB_BACKOFF(r) GNUNET_TIME_randomized_backoff ( \
(r), \
GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2));
#endif

View File

@ -1 +0,0 @@
~<7E>}K<>+*hm<68><0E>^<5E>-<2D><>{<7B><1F>{<7B><>0<EFBFBD>Z4<5A>

View File

@ -20,8 +20,8 @@ taler_exchange_benchmark_LDADD = \
$(top_builddir)/src/wire/libtalerwire.la \ $(top_builddir)/src/wire/libtalerwire.la \
$(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/util/libtalerutil.la \
$(top_builddir)/src/exchange-lib/libtalerexchange.la \ $(top_builddir)/src/lib/libtalerexchange.la \
$(top_builddir)/src/exchange-lib/libtalertesting.la \ $(top_builddir)/src/lib/libtalertesting.la \
$(top_builddir)/src/bank-lib/libtalerfakebank.la \ $(top_builddir)/src/bank-lib/libtalerfakebank.la \
$(top_builddir)/src/bank-lib/libtalerbank.la \ $(top_builddir)/src/bank-lib/libtalerbank.la \
$(top_builddir)/src/bank-lib/libtalerbanktesting.la \ $(top_builddir)/src/bank-lib/libtalerbanktesting.la \

View File

@ -1,5 +0,0 @@
{
"url": "payto://sepa/CH9300762011623852957",
"salt": "N83T9J9202WCC8TQFDMJDWEGZNBEKA33C1ZM241VNYH88RZNTHPW509Y1M2YF7Y098R8VRESWQ05H03BK1SPAZCWE54KARDCKT5N8AG",
"master_sig": "D4V5GJ998YK7D6N0N56AD0J6MZNFEW6MRZT2CFPVQ5ME3NMQ59AA2007CXYESSFGRN70CNCFM06858QSSENCWTZM8VHEJ93YQ20ZJ1R"
}

View File

@ -1,4 +0,0 @@
{
"url": "payto://x-taler-bank/localhost:8082/2",
"master_sig": "HC47BZN3C0KJ2VPMJ5EJWD2FXJ72AET0NWFE6JGSGK5CXS4GSKJJ6Z7BTS56JWM7B40SD61Z5GYYMRRE3X9JTJBVMWE0X7XHNXQ9P38"
}

View File

@ -1,9 +0,0 @@
{
"name": "Max Musterman",
"bic": "COBADEFF370",
"type": "sepa",
"sig": "4EVRC2MCJPXQC8MC00831DNWEXMZAP4JQDDE1A7R6KR3MANG24RC1VQ55AX5A2E35S58VW1VSTENFTPHG5MWG9BSN8B8WXSV21KKW20",
"address": "Musterstadt",
"salt": "3KTM1ZRMWGEQPQ254S4R5R4Q8XM0ZYWTCTE01TZ76MVBSQ6RX7A5DR08WXVH1DCHR1R7ACRB7X0EVC2XDW1CBZM9WFSD9TRMZ90BR98",
"iban": "DE89370400440532013000"
}

View File

@ -1,8 +0,0 @@
{
"salt": "AZPRFVJ58NM6M7J5CZQPJAH3EW5DYM52AEZ9Y1C1ER3W94QV8D8TQKF6CK8MYQRA9QMSKDQTGZ306ZS9GQ0M6R01CJ20KPP49WFDZK8",
"name": "The exchange",
"account_number": 3,
"bank_url": "http://localhost:8082/",
"type": "test",
"sig": "RPQXP9S4P8PQP7HEZQNRSZCT0ATNEP8GW0P5TPM34V5RX86FCD670V44R9NETSYDDKB8SZV7TKY9PAJYTY51D3VDWY9XXQ5BPFRXR28"
}

View File

@ -1,4 +0,0 @@
{
"url": "payto://x-taler-bank/http://localhost:8082/2",
"master_sig": "KQ0BWSCNVR7HGGSAMCYK8ZM30RBS1MHMXT3QBN01PZWC9TV72FEE5RJ7T84C8134EPV6WEBXXY2MTFNE8ZXST6JEJQKR8HX6FQPVY10"
}

View File

@ -1 +0,0 @@
p<EFBFBD>^<5E>-<2D>33<33><33>XX<>!<04>\0q<30><71><EFBFBD><EFBFBD><18>mU<6D>_<EFBFBD><5F>

View File

@ -8,13 +8,15 @@ endif
lib_LTLIBRARIES = \ lib_LTLIBRARIES = \
libtalerexchange.la \ libtalerexchange.la \
libtalertesting.la libtalertesting.la \
libtalerauditor.la \
libtalerauditortesting.la
libtalerexchange_la_LDFLAGS = \ libtalerexchange_la_LDFLAGS = \
-version-info 4:0:0 \ -version-info 4:0:0 \
-no-undefined -no-undefined
libtalerexchange_la_SOURCES = \ libtalerexchange_la_SOURCES = \
curl_defaults.c \ exchange_api_curl_defaults.c exchange_api_curl_defaults.h \
exchange_api_common.c \ exchange_api_common.c \
exchange_api_handle.c exchange_api_handle.h \ exchange_api_handle.c exchange_api_handle.h \
exchange_api_deposit.c \ exchange_api_deposit.c \
@ -27,7 +29,7 @@ libtalerexchange_la_SOURCES = \
exchange_api_track_transfer.c \ exchange_api_track_transfer.c \
exchange_api_wire.c exchange_api_wire.c
libtalerexchange_la_LIBADD = \ libtalerexchange_la_LIBADD = \
$(top_builddir)/src/auditor-lib/libtalerauditor.la \ libtalerauditor.la \
$(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \ -lgnunetcurl \
@ -36,11 +38,38 @@ libtalerexchange_la_LIBADD = \
-ljansson \ -ljansson \
$(XLIB) $(XLIB)
libtalerauditor_la_LDFLAGS = \
-version-info 0:0:0 \
-no-undefined
libtalerauditor_la_SOURCES = \
auditor_api_curl_defaults.c auditor_api_curl_defaults.h \
auditor_api_handle.c auditor_api_handle.h \
auditor_api_deposit_confirmation.c \
auditor_api_exchanges.c
libtalerauditor_la_LIBADD = \
$(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \
-lgnunetjson \
-lgnunetutil \
-ljansson \
$(XLIB)
if HAVE_LIBCURL
libtalerauditor_la_LIBADD += -lcurl
else
if HAVE_LIBGNURL
libtalerauditor_la_LIBADD += -lgnurl
endif
endif
libtalertesting_la_LDFLAGS = \ libtalertesting_la_LDFLAGS = \
-version-info 0:0:0 \ -version-info 0:0:0 \
-no-undefined -no-undefined
libtalertesting_la_SOURCES = \ libtalertesting_la_SOURCES = \
curl_defaults.c \ exchange_api_curl_defaults.c \
testing_api_cmd_exec_aggregator.c \ testing_api_cmd_exec_aggregator.c \
testing_api_cmd_exec_wirewatch.c \ testing_api_cmd_exec_wirewatch.c \
testing_api_cmd_exec_keyup.c \ testing_api_cmd_exec_keyup.c \
@ -92,6 +121,30 @@ libtalertesting_la_LIBADD = \
-ljansson \ -ljansson \
$(XLIB) $(XLIB)
libtalerauditortesting_la_LDFLAGS = \
-version-info 0:0:0 \
-no-undefined
libtalerauditortesting_la_SOURCES = \
testing_auditor_api_helpers.c \
testing_auditor_api_cmd_deposit_confirmation.c \
testing_auditor_api_cmd_exchanges.c \
testing_auditor_api_cmd_exec_auditor.c \
testing_auditor_api_cmd_exec_auditor_dbinit.c \
testing_auditor_api_cmd_exec_wire_auditor.c
libtalerauditortesting_la_LIBADD = \
libtalerauditor.la \
libtalerexchange.la \
libtalertesting.la \
$(top_builddir)/src/wire/libtalerwire.la \
$(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \
-lgnunetjson \
-lgnunetutil \
-ljansson \
$(XLIB)
if HAVE_LIBCURL if HAVE_LIBCURL
libtalerexchange_la_LIBADD += -lcurl libtalerexchange_la_LIBADD += -lcurl
else else
@ -103,7 +156,8 @@ endif
check_PROGRAMS = \ check_PROGRAMS = \
test_exchange_api_keys_cherry_picking_new \ test_exchange_api_keys_cherry_picking_new \
test_exchange_api_overlapping_keys_bug \ test_exchange_api_overlapping_keys_bug \
test_exchange_api_new test_exchange_api_new \
test_auditor_api
if HAVE_TWISTER if HAVE_TWISTER
check_PROGRAMS += \ check_PROGRAMS += \
@ -113,10 +167,10 @@ test_exchange_api_twisted_SOURCES = \
test_exchange_api_twisted.c test_exchange_api_twisted.c
test_exchange_api_twisted_LDADD = \ test_exchange_api_twisted_LDADD = \
$(LIBGCRYPT_LIBS) \ $(LIBGCRYPT_LIBS) \
$(top_builddir)/src/exchange-lib/libtalertesting.la \ libtalertesting.la \
libtalerexchange.la \
$(top_builddir)/src/bank-lib/libtalerfakebank.la \ $(top_builddir)/src/bank-lib/libtalerfakebank.la \
$(top_builddir)/src/bank-lib/libtalerbank.la \ $(top_builddir)/src/bank-lib/libtalerbank.la \
$(top_builddir)/src/exchange-lib/libtalerexchange.la \
$(top_builddir)/src/json/libtalerjson.la \ $(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \ $(top_builddir)/src/util/libtalerutil.la \
-ltalertwistertesting \ -ltalertwistertesting \
@ -172,10 +226,30 @@ test_exchange_api_keys_cherry_picking_new_LDADD = \
-lgnunetutil \ -lgnunetutil \
-ljansson -ljansson
test_auditor_api_SOURCES = \
test_auditor_api.c
test_auditor_api_LDADD = \
libtalerauditortesting.la \
libtalerauditor.la \
libtalertesting.la \
libtalerexchange.la \
$(LIBGCRYPT_LIBS) \
$(top_builddir)/src/bank-lib/libtalerfakebank.la \
$(top_builddir)/src/bank-lib/libtalerbank.la \
$(top_builddir)/src/json/libtalerjson.la \
$(top_builddir)/src/util/libtalerutil.la \
-lgnunetcurl \
-lgnunetutil \
-ljansson
EXTRA_DIST = \ EXTRA_DIST = \
test_exchange_api_home/.local/share/taler/exchange/offline-keys/master.priv \ test_exchange_api_home/.local/share/taler/exchange/offline-keys/master.priv \
test_exchange_api_home/.config/taler/test.json \ test_exchange_api_home/.config/taler/test.json \
test_exchange_api_home/.config/taler/sepa.json \ test_exchange_api_home/.config/taler/sepa.json \
test_exchange_api.conf \ test_exchange_api.conf \
test_exchange_api_keys_cherry_picking.conf \ test_exchange_api_keys_cherry_picking.conf \
test_exchange_api_keys_cherry_picking_extended.conf test_exchange_api_keys_cherry_picking_extended.conf \
test_auditor_api.conf \
test_auditor_api_expire_reserve_now.conf

View File

@ -20,7 +20,7 @@
* @author Florian Dold * @author Florian Dold
*/ */
#include "curl_defaults.h" #include "auditor_api_curl_defaults.h"
/** /**

View File

@ -29,7 +29,7 @@
#include "taler_auditor_service.h" #include "taler_auditor_service.h"
#include "auditor_api_handle.h" #include "auditor_api_handle.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "curl_defaults.h" #include "auditor_api_curl_defaults.h"
/** /**

View File

@ -29,7 +29,7 @@
#include "taler_auditor_service.h" #include "taler_auditor_service.h"
#include "auditor_api_handle.h" #include "auditor_api_handle.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "curl_defaults.h" #include "auditor_api_curl_defaults.h"
/** /**
* How many exchanges do we allow a single auditor to * How many exchanges do we allow a single auditor to

View File

@ -27,7 +27,7 @@
#include "taler_auditor_service.h" #include "taler_auditor_service.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "auditor_api_handle.h" #include "auditor_api_handle.h"
#include "curl_defaults.h" #include "auditor_api_curl_defaults.h"
#include "backoff.h" #include "backoff.h"
/** /**
@ -299,7 +299,7 @@ version_completed_cb (void *cls,
free_version_request (vr); free_version_request (vr);
auditor->vr = NULL; auditor->vr = NULL;
GNUNET_assert (NULL == auditor->retry_task); GNUNET_assert (NULL == auditor->retry_task);
auditor->retry_delay = AUDITOR_LIB_BACKOFF (auditor->retry_delay); auditor->retry_delay = EXCHANGE_LIB_BACKOFF (auditor->retry_delay);
auditor->retry_task = GNUNET_SCHEDULER_add_delayed (auditor->retry_delay, auditor->retry_task = GNUNET_SCHEDULER_add_delayed (auditor->retry_delay,
&request_version, &request_version,
auditor); auditor);

View File

@ -15,12 +15,12 @@
<http://www.gnu.org/licenses/> <http://www.gnu.org/licenses/>
*/ */
/** /**
* @file exchange-lib/curl_defaults.c * @file lib/exchange_api_curl_defaults.c
* @brief curl easy handle defaults * @brief curl easy handle defaults
* @author Florian Dold * @author Florian Dold
*/ */
#include "curl_defaults.h" #include "exchange_api_curl_defaults.h"
/** /**

View File

@ -16,7 +16,7 @@
*/ */
/** /**
* @file exchange-lib/curl_defaults.h * @file lib/exchange_api_curl_defaults.h
* @brief curl easy handle defaults * @brief curl easy handle defaults
* @author Florian Dold * @author Florian Dold
*/ */

View File

@ -31,7 +31,7 @@
#include "taler_exchange_service.h" #include "taler_exchange_service.h"
#include "exchange_api_handle.h" #include "exchange_api_handle.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "curl_defaults.h" #include "exchange_api_curl_defaults.h"
/** /**
@ -84,7 +84,7 @@ struct TALER_EXCHANGE_DepositHandle
* Total value of the coin being transacted with. * Total value of the coin being transacted with.
*/ */
struct TALER_Amount coin_value; struct TALER_Amount coin_value;
}; };
@ -160,7 +160,7 @@ verify_deposit_signature_ok (const struct TALER_EXCHANGE_DepositHandle *dh,
struct TALER_AUDITOR_DepositConfirmationHandle *dch; struct TALER_AUDITOR_DepositConfirmationHandle *dch;
const struct TALER_EXCHANGE_SigningPublicKey *spk; const struct TALER_EXCHANGE_SigningPublicKey *spk;
struct TALER_Amount amount_without_fee; struct TALER_Amount amount_without_fee;
spk = TALER_EXCHANGE_get_signing_key_details (key_state, spk = TALER_EXCHANGE_get_signing_key_details (key_state,
exchange_pub); exchange_pub);
GNUNET_assert (NULL != spk); GNUNET_assert (NULL != spk);
@ -185,7 +185,7 @@ verify_deposit_signature_ok (const struct TALER_EXCHANGE_DepositHandle *dh,
NULL /* FIXME: context! */); NULL /* FIXME: context! */);
} }
return GNUNET_OK; return GNUNET_OK;
} }

View File

@ -31,7 +31,7 @@
#include "taler_auditor_service.h" #include "taler_auditor_service.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "exchange_api_handle.h" #include "exchange_api_handle.h"
#include "curl_defaults.h" #include "exchange_api_curl_defaults.h"
#include "backoff.h" #include "backoff.h"
/** /**
@ -100,7 +100,7 @@ struct AuditorInteractionEntry
* DLL entry. * DLL entry.
*/ */
struct AuditorInteractionEntry *next; struct AuditorInteractionEntry *next;
/** /**
* DLL entry. * DLL entry.
*/ */
@ -142,7 +142,7 @@ struct AuditorListEntry
* Head of DLL of interactions with this auditor. * Head of DLL of interactions with this auditor.
*/ */
struct AuditorInteractionEntry *ai_head; struct AuditorInteractionEntry *ai_head;
/** /**
* Tail of DLL of interactions with this auditor. * Tail of DLL of interactions with this auditor.
*/ */
@ -158,7 +158,7 @@ struct AuditorListEntry
* version compatibility is given. * version compatibility is given.
*/ */
int is_up; int is_up;
}; };
@ -214,7 +214,7 @@ struct TALER_EXCHANGE_Handle
* Tail of DLL of auditors of this exchange. * Tail of DLL of auditors of this exchange.
*/ */
struct AuditorListEntry *auditors_tail; struct AuditorListEntry *auditors_tail;
/** /**
* Key data of the exchange, only valid if * Key data of the exchange, only valid if
* @e handshake_complete is past stage #MHS_CERT. * @e handshake_complete is past stage #MHS_CERT.
@ -234,8 +234,8 @@ struct TALER_EXCHANGE_Handle
/** /**
* Stage of the exchange's initialization routines. * Stage of the exchange's initialization routines.
*/ */
enum ExchangeHandleState state; enum ExchangeHandleState state;
}; };
@ -559,7 +559,7 @@ parse_json_auditor (struct TALER_EXCHANGE_AuditorInformation *auditor,
} }
if (NULL == dk) if (NULL == dk)
{ {
GNUNET_break_op (0); GNUNET_break_op (0);
continue; continue;
} }
if (check_sigs) if (check_sigs)
@ -770,7 +770,7 @@ decode_keys_json (const json_t *resp_obj,
/* Update "last_denom_issue_date" */ /* Update "last_denom_issue_date" */
TALER_LOG_DEBUG ("Crawling DK 'valid_from': %s\n", TALER_LOG_DEBUG ("Crawling DK 'valid_from': %s\n",
GNUNET_STRINGS_absolute_time_to_string (dk.valid_from)); GNUNET_STRINGS_absolute_time_to_string (dk.valid_from));
key_data->last_denom_issue_date key_data->last_denom_issue_date
= GNUNET_TIME_absolute_max (key_data->last_denom_issue_date, = GNUNET_TIME_absolute_max (key_data->last_denom_issue_date,
dk.valid_from); dk.valid_from);
@ -1655,7 +1655,7 @@ TALER_EXCHANGE_get_signing_key_details (const struct TALER_EXCHANGE_Keys *keys,
for (unsigned int i=0;i<keys->num_sign_keys;i++) for (unsigned int i=0;i<keys->num_sign_keys;i++)
{ {
struct TALER_EXCHANGE_SigningPublicKey *spk = &keys->sign_keys[i]; struct TALER_EXCHANGE_SigningPublicKey *spk = &keys->sign_keys[i];
if (0 == memcmp (pub, if (0 == memcmp (pub,
&spk->key, &spk->key,
sizeof (struct TALER_ExchangePublicKeyP))) sizeof (struct TALER_ExchangePublicKeyP)))

View File

@ -29,7 +29,7 @@
#include "taler_exchange_service.h" #include "taler_exchange_service.h"
#include "exchange_api_handle.h" #include "exchange_api_handle.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "curl_defaults.h" #include "exchange_api_curl_defaults.h"
/** /**

View File

@ -29,7 +29,7 @@
#include "taler_exchange_service.h" #include "taler_exchange_service.h"
#include "exchange_api_handle.h" #include "exchange_api_handle.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "curl_defaults.h" #include "exchange_api_curl_defaults.h"
/* ********************* /refresh/ common ***************************** */ /* ********************* /refresh/ common ***************************** */

View File

@ -27,7 +27,7 @@
#include "taler_json_lib.h" #include "taler_json_lib.h"
#include "exchange_api_handle.h" #include "exchange_api_handle.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "curl_defaults.h" #include "exchange_api_curl_defaults.h"
/** /**

View File

@ -29,7 +29,7 @@
#include "taler_exchange_service.h" #include "taler_exchange_service.h"
#include "exchange_api_handle.h" #include "exchange_api_handle.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "curl_defaults.h" #include "exchange_api_curl_defaults.h"
/** /**
@ -284,7 +284,7 @@ TALER_EXCHANGE_refund (struct TALER_EXCHANGE_Handle *exchange,
cb_cls); cb_cls);
} }
/** /**
* Submit a refund request to the exchange and get the exchange's * Submit a refund request to the exchange and get the exchange's
* response. This API is used by a merchant. Note that * response. This API is used by a merchant. Note that

View File

@ -29,7 +29,7 @@
#include "taler_json_lib.h" #include "taler_json_lib.h"
#include "exchange_api_handle.h" #include "exchange_api_handle.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "curl_defaults.h" #include "exchange_api_curl_defaults.h"
/* ********************** /reserve/status ********************** */ /* ********************** /reserve/status ********************** */

View File

@ -29,7 +29,7 @@
#include "taler_exchange_service.h" #include "taler_exchange_service.h"
#include "exchange_api_handle.h" #include "exchange_api_handle.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "curl_defaults.h" #include "exchange_api_curl_defaults.h"
/** /**

View File

@ -28,7 +28,7 @@
#include "taler_json_lib.h" #include "taler_json_lib.h"
#include "exchange_api_handle.h" #include "exchange_api_handle.h"
#include "taler_signatures.h" #include "taler_signatures.h"
#include "curl_defaults.h" #include "exchange_api_curl_defaults.h"
/** /**

View File

@ -30,7 +30,7 @@
#include "taler_signatures.h" #include "taler_signatures.h"
#include "taler_wire_plugin.h" #include "taler_wire_plugin.h"
#include "exchange_api_handle.h" #include "exchange_api_handle.h"
#include "curl_defaults.h" #include "exchange_api_curl_defaults.h"
/** /**

Some files were not shown because too many files have changed in this diff Show More