diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-09 11:30:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-09 11:30:59 +0000 |
commit | aac6226facba53fffcbd1e31ece00318d0f53855 (patch) | |
tree | a00a045a2e8910b8d1593af155d8ac2961b7e375 /src/transport | |
parent | f25eb6591309f140fc4d8e3196114be8eccfde46 (diff) |
create directory if one does not exist before trying to output certificates
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-transport-certificate-creation.c | 2 | ||||
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/gnunet-transport-certificate-creation.c b/src/transport/gnunet-transport-certificate-creation.c index ff9a331f13..dc7798ec08 100644 --- a/src/transport/gnunet-transport-certificate-creation.c +++ b/src/transport/gnunet-transport-certificate-creation.c @@ -60,6 +60,8 @@ main (int argc, char **argv) return 1; } removecerts (argv[1], argv[2]); + GNUNET_DISK_directory_create_for_file (argv[1]); + GNUNET_DISK_directory_create_for_file (argv[2]); (void) close (2); /* eliminate stderr */ /* Create RSA Private Key */ /* openssl genrsa -out $1 1024 2> /dev/null */ diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 8e6eff072e..15a0be2976 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -1960,10 +1960,10 @@ server_load_certificate (struct HTTP_Server_Plugin *plugin) if ((plugin->key == NULL) || (plugin->cert == NULL)) { - GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name, - _ - ("No usable TLS certificate found and creating one failed!\n"), - "transport-https"); + GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, + plugin->name, + _("No usable TLS certificate found and creating one at `%s/%s' failed!\n"), + key_file, cert_file); GNUNET_free (key_file); GNUNET_free (cert_file); |