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