diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-06 18:33:02 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-06 18:33:02 +0200 |
commit | 3526c44a38195aaea2ab48a220728df175ab9429 (patch) | |
tree | a2aaf925bb0a73658febb175720c4996ea6e1571 /src/include | |
parent | c334ba61f4b371755cc3e4e5afd22fc4054c0836 (diff) | |
download | exchange-3526c44a38195aaea2ab48a220728df175ab9429.tar.xz |
refactor code to write signing keys in same module where we read them
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchangedb_lib.h | 13 |
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. |