diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:54:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:54:06 +0000 |
commit | 5746309cb4be2073d550ad7a6885e918631dbc38 (patch) | |
tree | 89455bc4aadf977816b38df13f990372cd81d71a /src/transport/gnunet-transport-certificate-creation.c | |
parent | 6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (diff) | |
download | gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.tar.gz gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.zip |
indentation
Diffstat (limited to 'src/transport/gnunet-transport-certificate-creation.c')
-rw-r--r-- | src/transport/gnunet-transport-certificate-creation.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/transport/gnunet-transport-certificate-creation.c b/src/transport/gnunet-transport-certificate-creation.c index a63c21c60..9fd62fc9f 100644 --- a/src/transport/gnunet-transport-certificate-creation.c +++ b/src/transport/gnunet-transport-certificate-creation.c | |||
@@ -56,10 +56,9 @@ main (int argc, char **argv) | |||
56 | close (2); /* eliminate stderr */ | 56 | close (2); /* eliminate stderr */ |
57 | /* Create RSA Private Key */ | 57 | /* Create RSA Private Key */ |
58 | /* openssl genrsa -out $1 1024 2> /dev/null */ | 58 | /* openssl genrsa -out $1 1024 2> /dev/null */ |
59 | openssl = GNUNET_OS_start_process (NULL, NULL, | 59 | openssl = |
60 | "openssl", | 60 | GNUNET_OS_start_process (NULL, NULL, "openssl", "openssl", "genrsa", |
61 | "openssl", | 61 | "-out", argv[1], "1024", NULL); |
62 | "genrsa", "-out", argv[1], "1024", NULL); | ||
63 | if (openssl == NULL) | 62 | if (openssl == NULL) |
64 | return 2; | 63 | return 2; |
65 | GNUNET_assert (GNUNET_OS_process_wait (openssl) == GNUNET_OK); | 64 | GNUNET_assert (GNUNET_OS_process_wait (openssl) == GNUNET_OK); |
@@ -67,12 +66,10 @@ main (int argc, char **argv) | |||
67 | 66 | ||
68 | /* Create a self-signed certificate in batch mode using rsa key */ | 67 | /* Create a self-signed certificate in batch mode using rsa key */ |
69 | /* openssl req -batch -days 365 -out $2 -new -x509 -key $1 2> /dev/null */ | 68 | /* openssl req -batch -days 365 -out $2 -new -x509 -key $1 2> /dev/null */ |
70 | openssl = GNUNET_OS_start_process (NULL, NULL, | 69 | openssl = |
71 | "openssl", | 70 | GNUNET_OS_start_process (NULL, NULL, "openssl", "openssl", "req", |
72 | "openssl", | 71 | "-batch", "-days", "365", "-out", argv[2], |
73 | "req", "-batch", "-days", "365", | 72 | "-new", "-x509", "-key", argv[1], NULL); |
74 | "-out", argv[2], "-new", "-x509", "-key", | ||
75 | argv[1], NULL); | ||
76 | if (openssl == NULL) | 73 | if (openssl == NULL) |
77 | return 3; | 74 | return 3; |
78 | GNUNET_assert (GNUNET_OS_process_wait (openssl) == GNUNET_OK); | 75 | GNUNET_assert (GNUNET_OS_process_wait (openssl) == GNUNET_OK); |