From 08eafb1add8c04fdd57eb4f43793b3377a9fb94c Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Mon, 21 Jan 2019 15:40:07 +0100 Subject: Export testing-cert_cb in the API. This way, this very basic cert_cb can be reused by other testing commands. --- src/include/taler_testing_lib.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/include/taler_testing_lib.h') diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index edca769df..711a13235 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -116,6 +116,21 @@ TALER_TESTING_prepare_exchange (const char *config_filename, char **auditor_base_url, char **exchange_base_url); +/** + * "Canonical" cert_cb used when we are connecting to the + * Exchange. + * + * @param cls closure, typically, the "run" method containing + * all the commands to be run, and a closure for it. + * @param keys the exchange's keys. + * @param compat protocol compatibility information. + */ +void +TALER_TESTING_cert_cb + (void *cls, + const struct TALER_EXCHANGE_Keys *keys, + enum TALER_EXCHANGE_VersionCompatibility compat); + /** * Wait for the exchange to have started. Waits for at * most 10s, after that returns 77 to indicate an error. @@ -1477,6 +1492,14 @@ TALER_TESTING_cmd_batch (const char *label, int TALER_TESTING_cmd_is_batch (const struct TALER_TESTING_Command *cmd); +/** + * Advance internal pointer to next command. + * + * @param is interpreter state. + */ +void +TALER_TESTING_cmd_batch_next + (struct TALER_TESTING_Interpreter *is); /** * Obtain what command the batch is at. -- cgit v1.2.3