From 3526c44a38195aaea2ab48a220728df175ab9429 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 6 May 2016 18:33:02 +0200 Subject: refactor code to write signing keys in same module where we read them --- src/include/taler_exchangedb_lib.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/include/taler_exchangedb_lib.h') diff --git a/src/include/taler_exchangedb_lib.h b/src/include/taler_exchangedb_lib.h index 1f6445212..fd2149229 100644 --- a/src/include/taler_exchangedb_lib.h +++ b/src/include/taler_exchangedb_lib.h @@ -141,6 +141,19 @@ TALER_EXCHANGEDB_signing_keys_iterate (const char *exchange_base_dir, void *it_cls); +/** + * Exports a signing key to the given file. + * + * @param exchange_base_dir base directory for the keys + * @param start start time of the validity for the key + * @param ski the signing key + * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure. + */ +int +TALER_EXCHANGEDB_signing_key_write (const char *exchange_base_dir, + struct GNUNET_TIME_Absolute start, + const struct TALER_EXCHANGEDB_PrivateSigningKeyInformationP *ski); + /** * @brief Iterator over denomination keys. -- cgit v1.2.3