aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-transport-certificate-creation.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2014-02-20 10:35:33 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2014-02-20 10:35:33 +0000
commit2a35e345a204cb357361406f28e07bf9076cb092 (patch)
tree8c51b5dae07a1f3a3a6a13ac6c623e0b0df2a070 /src/transport/gnunet-transport-certificate-creation.c
parenta06237deeec4aed38b09f633d7ebbeabb7da4c03 (diff)
downloadgnunet-2a35e345a204cb357361406f28e07bf9076cb092.tar.gz
gnunet-2a35e345a204cb357361406f28e07bf9076cb092.zip
Allow redirection of STDERR when starting processes.
Diffstat (limited to 'src/transport/gnunet-transport-certificate-creation.c')
-rw-r--r--src/transport/gnunet-transport-certificate-creation.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/transport/gnunet-transport-certificate-creation.c b/src/transport/gnunet-transport-certificate-creation.c
index fbf809426..e86696254 100644
--- a/src/transport/gnunet-transport-certificate-creation.c
+++ b/src/transport/gnunet-transport-certificate-creation.c
@@ -94,7 +94,9 @@ main (int argc, char **argv)
94 /* Create RSA Private Key */ 94 /* Create RSA Private Key */
95 /* openssl genrsa -out $1 1024 2> /dev/null */ 95 /* openssl genrsa -out $1 1024 2> /dev/null */
96 openssl = 96 openssl =
97 GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "openssl", "openssl", "genrsa", 97 GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_OUT_AND_ERR,
98 NULL, NULL, NULL,
99 "openssl", "openssl", "genrsa",
98 "-out", argv[1], "1024", NULL); 100 "-out", argv[1], "1024", NULL);
99 if (NULL == openssl) 101 if (NULL == openssl)
100 { 102 {
@@ -108,7 +110,9 @@ main (int argc, char **argv)
108 /* Create a self-signed certificate in batch mode using rsa key */ 110 /* Create a self-signed certificate in batch mode using rsa key */
109 /* openssl req -batch -days 365 -out $2 -new -x509 -key $1 2> /dev/null */ 111 /* openssl req -batch -days 365 -out $2 -new -x509 -key $1 2> /dev/null */
110 openssl = 112 openssl =
111 GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "openssl", "openssl", "req", 113 GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_OUT_AND_ERR,
114 NULL, NULL, NULL,
115 "openssl", "openssl", "req",
112 "-batch", "-days", "365", "-out", argv[2], 116 "-batch", "-days", "365", "-out", argv[2],
113 "-new", "-x509", "-key", argv[1], NULL); 117 "-new", "-x509", "-key", argv[1], NULL);
114 if (NULL == openssl) 118 if (NULL == openssl)