donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit a095a6c4e3139b64d0ba63439ce2196199646b56
parent bddae683fca33dc84afb1e857b1307ebfd008599
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 16 Jan 2024 13:34:52 +0100

add missing files

Diffstat:
Msrc/donau/donau-httpd_keys.c | 4++--
Msrc/util/Makefile.am | 12+++++++++++-
Asrc/util/donau-secmod-rsa.conf | 27+++++++++++++++++++++++++++
Asrc/util/paths.conf | 29+++++++++++++++++++++++++++++
4 files changed, 69 insertions(+), 3 deletions(-)

diff --git a/src/donau/donau-httpd_keys.c b/src/donau/donau-httpd_keys.c @@ -1199,7 +1199,7 @@ setup_key_helpers (struct HelperState *hs) hs->esign_keys = GNUNET_CONTAINER_multipeermap_create (32, GNUNET_NO /* MUST BE NO! */); - hs->rsadh = DONAU_CRYPTO_helper_rsa_connect (DH_cfg, + hs->rsadh = TALER_CRYPTO_helper_rsa_connect (DH_cfg, "donau", &helper_rsa_cb, hs); @@ -1208,7 +1208,7 @@ setup_key_helpers (struct HelperState *hs) destroy_key_helpers (hs); return GNUNET_SYSERR; } - hs->csdh = DONAU_CRYPTO_helper_cs_connect (DH_cfg, + hs->csdh = TALER_CRYPTO_helper_cs_connect (DH_cfg, "donau", &helper_cs_cb, hs); diff --git a/src/util/Makefile.am b/src/util/Makefile.am @@ -7,7 +7,16 @@ if USE_COVERAGE endif -pkgcfgdir = $(prefix)/share/taler/config.d/ +pkgcfgdir = $(prefix)/share/donau/config.d/ + +pkgcfg_DATA = \ + currencies.conf \ + paths.conf \ + donau-secmod-eddsa.conf \ + donau-secmod-rsa.conf \ + donau-secmod-cs.conf + + lib_LTLIBRARIES = \ libdonauutil.la @@ -32,6 +41,7 @@ libdonauutil_la_LIBADD = \ -lm EXTRA_DIST = \ + $(pkgcfg_DATA) \ donau-config.in bin_SCRIPTS = \ diff --git a/src/util/donau-secmod-rsa.conf b/src/util/donau-secmod-rsa.conf @@ -0,0 +1,26 @@ +[donau-secmod-rsa] + +# How long should generated coins overlap in their validity +# periods. Should be long enough to avoid problems with +# wallets picking one key and then due to network latency +# another key being valid. The DURATION_WITHDRAW period +# must be longer than this value. +OVERLAP_DURATION = 5 m + +# Where do we store the generated private keys. +KEY_DIR = ${DONAU_DATA_HOME}donau-secmod-rsa/keys + +# Where does the helper listen for requests? +UNIXPATH = ${DONAU_RUNTIME_DIR}donau-secmod-rsa/server.sock + +# Directory for clients. +CLIENT_DIR = ${DONAU_RUNTIME_DIR}donau-secmod-rsa/clients + +# Where should the security module store its own private key? +SM_PRIV_KEY = ${DONAU_DATA_HOME}donau-secmod-rsa/secmod-private-key + +# For how long into the future do we pre-generate keys? +LOOKAHEAD_SIGN = 2 year + +# Round down anchor key start date to multiples of this time. +ANCHOR_ROUND = 1 year +\ No newline at end of file diff --git a/src/util/paths.conf b/src/util/paths.conf @@ -0,0 +1,29 @@ +# This file is in the public domain. +# +[PATHS] +# The PATHS section is special, as filenames including $-expression are +# expanded using the values from PATHS or the system environment (PATHS +# is checked first). Donau also supports expanding $-expressions using +# defaults with the syntax "${VAR:-default}". Here, "default" can again +# be a $-expression. +# +# We usually want $HOME for $DONAU_HOME, but we allow testcases to +# easily override this by setting $DONAU_TEST_HOME. +# +DONAU_HOME = ${DONAU_TEST_HOME:-${HOME:-${USERPROFILE}}} + +# see XDG Base Directory Specification at +# http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html +# for how these should be used. + +# Persistent data storage +DONAU_DATA_HOME = ${XDG_DATA_HOME:-${DONAU_HOME}/.local/share}/donau/ + +# Configuration files +DONAU_CONFIG_HOME = ${XDG_CONFIG_HOME:-${DONAU_HOME}/.config}/donau/ + +# Cached data, no big deal if lost +DONAU_CACHE_HOME = ${XDG_CACHE_HOME:-${DONAU_HOME}/.cache}/donau/ + +# Runtime data (always lost on system boot) +DONAU_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/donau-system-runtime/