2
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation
4
* This file is part of GNUTLS.
6
* GNUTLS is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
2
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
3
* Software Foundation, Inc.
5
* This file is part of GnuTLS.
7
* GnuTLS is free software: you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License as published by
8
9
* the Free Software Foundation, either version 3 of the License, or
9
10
* (at your option) any later version.
11
* GNUTLS is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
12
* GnuTLS is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
* along with this program. If not, see
19
* <http://www.gnu.org/licenses/>.
21
* Written by Nikos Mavrogiannopoulos <nmav@gnutls.org>.
20
24
#include <config.h>
162
167
(void *) &cfg.ocsp_sign_key, 0},
163
168
{NULL, '\0', "time_stamping_key", CFG_BOOL,
164
169
(void *) &cfg.time_stamping_key, 0},
170
{NULL, '\0', "ipsec_ike_key", CFG_BOOL,
171
(void *) &cfg.ipsec_ike_key, 0},
165
172
{NULL, '\0', "proxy_policy_language", CFG_STR,
166
173
(void *) &cfg.proxy_policy_language, 0},
200
207
fputs (input_str, stderr);
201
fgets (input, sizeof (input), stdin);
208
if (fgets (input, sizeof (input), stdin) == NULL)
203
211
if (strlen (input) == 1) /* only newline */
221
229
fputs (input_str, stderr);
222
fgets (input, sizeof (input), stdin);
230
if (fgets (input, sizeof (input), stdin) == NULL)
224
233
if (strlen (input) == 1) /* only newline */
304
317
fputs (input_str, stderr);
305
fgets (input, sizeof (input), stdin);
318
if (fgets (input, sizeof (input), stdin) == NULL)
307
321
if (strlen (input) == 1) /* only newline */
598
612
if (!cfg.key_purpose_oids)
600
for (i = 0; cfg.key_purpose_oids[i] != NULL; i ++)
614
for (i = 0; cfg.key_purpose_oids[i] != NULL; i++)
602
ret = gnutls_x509_crt_set_key_purpose_oid (crt, cfg.key_purpose_oids[i], 0);
617
gnutls_x509_crt_set_key_purpose_oid (crt, cfg.key_purpose_oids[i],
606
fprintf (stderr, "set_key_purpose_oid (%s): %s\n", cfg.key_purpose_oids[i], gnutls_strerror (ret));
622
fprintf (stderr, "set_key_purpose_oid (%s): %s\n",
623
cfg.key_purpose_oids[i], gnutls_strerror (ret));