aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_helper_denom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/crypto_helper_denom.c')
-rw-r--r--src/util/crypto_helper_denom.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c
index bd9802d2f..2cc140c8e 100644
--- a/src/util/crypto_helper_denom.c
+++ b/src/util/crypto_helper_denom.c
@@ -228,29 +228,32 @@ TALER_CRYPTO_helper_denom_connect (
228 228
229 if (GNUNET_OK != 229 if (GNUNET_OK !=
230 GNUNET_CONFIGURATION_get_value_filename (cfg, 230 GNUNET_CONFIGURATION_get_value_filename (cfg,
231 "PATHS", 231 "taler-exchange-secmod-rsa",
232 "TALER_RUNTIME_DIR", 232 "CLIENT_DIR",
233 &tmpdir)) 233 &tmpdir))
234 { 234 {
235 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING, 235 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
236 "PATHS", 236 "taler-exchange-secmod-rsa",
237 "TALER_RUNTIME_DIR"); 237 "CLIENT_DIR");
238 tmpdir = GNUNET_strdup ("/tmp"); 238 return NULL;
239 } 239 }
240 GNUNET_asprintf (&template, 240 GNUNET_asprintf (&template,
241 "%s/crypto-rsa-client/cli", 241 "%s/cli",
242 tmpdir); 242 tmpdir);
243 GNUNET_free (tmpdir); 243 /* We expect the service to create the client directory */
244 if (GNUNET_OK != 244 if (GNUNET_OK !=
245 GNUNET_DISK_directory_create_for_file (template)) 245 GNUNET_DISK_directory_test (tmpdir,
246 GNUNET_YES))
246 { 247 {
247 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, 248 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
248 "mkdir", 249 "Unable to read secmod client directory (%s)\n",
249 template); 250 tmpdir);
250 GNUNET_free (dh); 251 GNUNET_free (dh);
251 GNUNET_free (template); 252 GNUNET_free (template);
253 GNUNET_free (tmpdir);
252 return NULL; 254 return NULL;
253 } 255 }
256 GNUNET_free (tmpdir);
254 dh->template = template; 257 dh->template = template;
255 if (strlen (template) >= sizeof (dh->sa.sun_path)) 258 if (strlen (template) >= sizeof (dh->sa.sun_path))
256 { 259 {