corrected news entry.
[gnutls.git] / src / certtool-cfg.h
blob878ecac34f73be2ee7d0740a39528f275f2868d2
1 /*
2 * Copyright (C) 2004-2012 Free Software Foundation, Inc.
4 * This file is part of GnuTLS.
6 * GnuTLS is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * GnuTLS is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see
18 * <http://www.gnu.org/licenses/>.
20 * Written by Nikos Mavrogiannopoulos <nmav@gnutls.org>.
23 #include <stdbool.h>
24 #include <gnutls/x509.h>
26 void cfg_init (void);
27 int template_parse (const char *template);
29 void read_crt_set (gnutls_x509_crt_t crt, const char *input_str,
30 const char *oid);
31 void read_crq_set (gnutls_x509_crq_t crq, const char *input_str,
32 const char *oid);
33 int read_int (const char *input_str);
34 const char *read_str (const char *input_str);
35 int read_yesno (const char *input_str);
37 const char *get_pass (void);
38 const char *get_confirmed_pass (bool empty_ok);
39 const char *get_challenge_pass (void);
40 const char *get_crl_dist_point_url (void);
41 void get_country_crt_set (gnutls_x509_crt_t crt);
42 void get_organization_crt_set (gnutls_x509_crt_t crt);
43 void get_unit_crt_set (gnutls_x509_crt_t crt);
44 void get_state_crt_set (gnutls_x509_crt_t crt);
45 void get_locality_crt_set (gnutls_x509_crt_t crt);
46 void get_cn_crt_set (gnutls_x509_crt_t crt);
47 void get_uid_crt_set (gnutls_x509_crt_t crt);
48 void get_pkcs9_email_crt_set (gnutls_x509_crt_t crt);
49 void get_oid_crt_set (gnutls_x509_crt_t crt);
50 void get_key_purpose_set (gnutls_x509_crt_t crt);
51 int get_serial (void);
52 int get_days (void);
53 int get_ca_status (void);
54 int get_crl_number (void);
55 int get_path_len (void);
56 int get_crq_extensions_status (void);
57 const char *get_pkcs12_key_name (void);
58 int get_tls_client_status (void);
59 int get_tls_server_status (void);
60 int get_crl_next_update (void);
61 int get_time_stamp_status (void);
62 int get_ocsp_sign_status (void);
63 int get_code_sign_status (void);
64 int get_crl_sign_status (void);
65 int get_cert_sign_status (void);
66 int get_encrypt_status (int server);
67 int get_sign_status (int server);
68 void get_ip_addr_set (int type, void *crt);
69 void get_dns_name_set (int type, void *crt);
70 void get_uri_set (int type, void *crt);
71 void get_email_set (int type, void *crt);
72 int get_ipsec_ike_status (void);
73 void get_dc_set (int type, void *crt);
74 void get_ca_issuers_set (gnutls_x509_crt_t crt);
75 void get_ocsp_issuer_set (gnutls_x509_crt_t crt);
77 void get_cn_crq_set (gnutls_x509_crq_t crq);
78 void get_uid_crq_set (gnutls_x509_crq_t crq);
79 void get_locality_crq_set (gnutls_x509_crq_t crq);
80 void get_state_crq_set (gnutls_x509_crq_t crq);
81 void get_unit_crq_set (gnutls_x509_crq_t crq);
82 void get_organization_crq_set (gnutls_x509_crq_t crq);
83 void get_country_crq_set (gnutls_x509_crq_t crq);
84 void get_oid_crq_set (gnutls_x509_crq_t crq);
85 const char *get_proxy_policy (char **policy, size_t * policylen);