No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / lib / hx509 / hxtool-commands.h
blobfe09673451e36d9bb25b34274048ed5f56240ae8
1 #include <stdio.h>
2 #include <sl.h>
4 struct cms_create_sd_options {
5 struct getarg_strings certificate_strings;
6 char* signer_string;
7 struct getarg_strings anchors_strings;
8 struct getarg_strings pool_strings;
9 struct getarg_strings pass_strings;
10 struct getarg_strings peer_alg_strings;
11 char* content_type_string;
12 int content_info_flag;
13 int pem_flag;
14 int detached_signature_flag;
15 int id_by_name_flag;
17 int cms_create_sd(struct cms_create_sd_options*, int, char **);
18 struct cms_verify_sd_options {
19 struct getarg_strings anchors_strings;
20 struct getarg_strings certificate_strings;
21 struct getarg_strings pass_strings;
22 int missing_revoke_flag;
23 int content_info_flag;
24 char* signed_content_string;
26 int cms_verify_sd(struct cms_verify_sd_options*, int, char **);
27 struct cms_unenvelope_options {
28 struct getarg_strings certificate_strings;
29 struct getarg_strings pass_strings;
30 int content_info_flag;
32 int cms_unenvelope(struct cms_unenvelope_options*, int, char **);
33 struct cms_envelope_options {
34 struct getarg_strings certificate_strings;
35 struct getarg_strings pass_strings;
36 char* encryption_type_string;
37 char* content_type_string;
38 int content_info_flag;
40 int cms_create_enveloped(struct cms_envelope_options*, int, char **);
41 struct verify_options {
42 struct getarg_strings pass_strings;
43 int allow_proxy_certificate_flag;
44 int missing_revoke_flag;
45 char* time_string;
46 int verbose_flag;
47 int max_depth_integer;
48 char* hostname_string;
50 int pcert_verify(struct verify_options*, int, char **);
51 struct print_options {
52 struct getarg_strings pass_strings;
53 int content_flag;
54 int info_flag;
56 int pcert_print(struct print_options*, int, char **);
57 struct validate_options {
58 struct getarg_strings pass_strings;
60 int pcert_validate(struct validate_options*, int, char **);
61 struct certificate_copy_options {
62 struct getarg_strings in_pass_strings;
63 char* out_pass_string;
65 int certificate_copy(struct certificate_copy_options*, int, char **);
66 struct ocsp_fetch_options {
67 struct getarg_strings pass_strings;
68 char* sign_string;
69 char* url_path_string;
70 int nonce_flag;
71 struct getarg_strings pool_strings;
73 int ocsp_fetch(struct ocsp_fetch_options*, int, char **);
74 struct ocsp_verify_options {
75 char* ocsp_file_string;
77 int ocsp_verify(struct ocsp_verify_options*, int, char **);
78 struct ocsp_print_options {
79 int verbose_flag;
81 int ocsp_print(struct ocsp_print_options*, int, char **);
82 struct request_create_options {
83 char* subject_string;
84 struct getarg_strings email_strings;
85 struct getarg_strings dnsname_strings;
86 char* type_string;
87 char* key_string;
88 char* generate_key_string;
89 int key_bits_integer;
90 int verbose_flag;
92 int request_create(struct request_create_options*, int, char **);
93 struct request_print_options {
94 int verbose_flag;
96 int request_print(struct request_print_options*, int, char **);
97 struct query_options {
98 int exact_flag;
99 int private_key_flag;
100 char* friendlyname_string;
101 int keyEncipherment_flag;
102 int digitalSignature_flag;
103 int print_flag;
104 struct getarg_strings pass_strings;
106 int query(struct query_options*, int, char **);
107 int info(void*, int, char **);
108 int random_data(void*, int, char **);
109 struct crypto_available_options {
110 char* type_string;
112 int crypto_available(struct crypto_available_options*, int, char **);
113 struct crypto_select_options {
114 char* type_string;
115 char* certificate_string;
116 struct getarg_strings peer_cmstype_strings;
118 int crypto_select(struct crypto_select_options*, int, char **);
119 struct hex_options {
120 int decode_flag;
122 int hxtool_hex(struct hex_options*, int, char **);
123 struct certificate_sign_options {
124 int issue_ca_flag;
125 int issue_proxy_flag;
126 int domain_controller_flag;
127 char* subject_string;
128 char* ca_certificate_string;
129 int self_signed_flag;
130 char* ca_private_key_string;
131 char* certificate_string;
132 struct getarg_strings type_strings;
133 char* lifetime_string;
134 char* serial_number_string;
135 int path_length_integer;
136 struct getarg_strings hostname_strings;
137 struct getarg_strings email_strings;
138 char* pk_init_principal_string;
139 char* ms_upn_string;
140 char* jid_string;
141 char* req_string;
142 char* certificate_private_key_string;
143 char* generate_key_string;
144 int key_bits_integer;
145 char* crl_uri_string;
146 char* template_certificate_string;
147 char* template_fields_string;
149 int hxtool_ca(struct certificate_sign_options*, int, char **);
150 struct test_crypto_options {
151 struct getarg_strings pass_strings;
152 int verbose_flag;
154 int test_crypto(struct test_crypto_options*, int, char **);
155 struct statistic_print_options {
156 int type_integer;
158 int statistic_print(struct statistic_print_options*, int, char **);
159 struct crl_sign_options {
160 char* signer_string;
161 struct getarg_strings pass_strings;
162 char* crl_file_string;
163 char* lifetime_string;
165 int crl_sign(struct crl_sign_options*, int, char **);
166 int help(void*, int, char **);
167 extern SL_cmd commands[];