summaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-06 18:33:02 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-06 18:33:02 +0200
commit3526c44a38195aaea2ab48a220728df175ab9429 (patch)
treea2aaf925bb0a73658febb175720c4996ea6e1571 /src/include/taler_exchangedb_lib.h
parentc334ba61f4b371755cc3e4e5afd22fc4054c0836 (diff)
downloadexchange-3526c44a38195aaea2ab48a220728df175ab9429.tar.gz
exchange-3526c44a38195aaea2ab48a220728df175ab9429.tar.bz2
exchange-3526c44a38195aaea2ab48a220728df175ab9429.zip
refactor code to write signing keys in same module where we read them
Diffstat (limited to 'src/include/taler_exchangedb_lib.h')
-rw-r--r--src/include/taler_exchangedb_lib.h13
1 files changed, 13 insertions, 0 deletions
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.