Update the SSL/TLS connection options
[openssl.git] / doc / perlvars.pm
1 #! /usr/bin/env perl
2 # Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
3 #
4 # Licensed under the Apache License 2.0 (the "License").  You may not use
5 # this file except in compliance with the License.  You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7
8 # Set some Perl variables for use by util/dofile.pl when processing
9 # POD files (mainly man1).
10
11 # Verify options
12 $OpenSSL::safe::opt_v_synopsis = ""
13 . "[B<-allow_proxy_certs>]\n"
14 . "[B<-attime> I<timestamp>]\n"
15 . "[B<-no_check_time>]\n"
16 . "[B<-check_ss_sig>]\n"
17 . "[B<-crl_check>]\n"
18 . "[B<-crl_check_all>]\n"
19 . "[B<-explicit_policy>]\n"
20 . "[B<-extended_crl>]\n"
21 . "[B<-ignore_critical>]\n"
22 . "[B<-inhibit_any>]\n"
23 . "[B<-inhibit_map>]\n"
24 . "[B<-partial_chain>]\n"
25 . "[B<-policy> I<arg>]\n"
26 . "[B<-policy_check>]\n"
27 . "[B<-policy_print>]\n"
28 . "[B<-purpose> I<purpose>]\n"
29 . "[B<-suiteB_128>]\n"
30 . "[B<-suiteB_128_only>]\n"
31 . "[B<-suiteB_192>]\n"
32 . "[B<-trusted_first>]\n"
33 . "[B<-no_alt_chains>]\n"
34 . "[B<-use_deltas>]\n"
35 . "[B<-auth_level> I<num>]\n"
36 . "[B<-verify_depth> I<num>]\n"
37 . "[B<-verify_email> I<email>]\n"
38 . "[B<-verify_hostname> I<hostname>]\n"
39 . "[B<-verify_ip> I<ip>]\n"
40 . "[B<-verify_name> I<name>]\n"
41 . "[B<-x509_strict>]\n"
42 . "[B<-issuer_checks>]\n";
43 $OpenSSL::safe::opt_v_item = ""
44 . "=item B<-allow_proxy_certs>, B<-attime>, B<-no_check_time>,\n"
45 . "B<-check_ss_sig>, B<-crl_check>, B<-crl_check_all>,\n"
46 . "B<-explicit_policy>, B<-extended_crl>, B<-ignore_critical>, B<-inhibit_any>,\n"
47 . "B<-inhibit_map>, B<-no_alt_chains>, B<-partial_chain>, B<-policy>,\n"
48 . "B<-policy_check>, B<-policy_print>, B<-purpose>, B<-suiteB_128>,\n"
49 . "B<-suiteB_128_only>, B<-suiteB_192>, B<-trusted_first>, B<-use_deltas>,\n"
50 . "B<-auth_level>, B<-verify_depth>, B<-verify_email>, B<-verify_hostname>,\n"
51 . "B<-verify_ip>, B<-verify_name>, B<-x509_strict> B<-issuer_checks>\n"
52 . "\n"
53 . "Set various options of certificate chain verification.\n"
54 . "See L<openssl(1)/Verification Options> for details.";
55
56
57 # Extended validation options.
58 $OpenSSL::safe::opt_x_synopsis = ""
59 . "[B<-xkey>] I<infile>\n"
60 . "[B<-xcert> I<file>]\n"
61 . "[B<-xchain>] I<file>\n"
62 . "[B<-xchain_build>] I<file>\n"
63 . "[B<-xcertform> B<DER>|B<PEM>]>\n"
64 . "[B<-xkeyform> B<DER>|B<PEM>]>";
65 $OpenSSL::safe::opt_x_item = ""
66 . "=item B<xkey> I<infile>, B<-xcert> I<file>, B<-xchain> I<file>,\n"
67 . "B<-xchain_build> I<file>, B<-xcertform> B<DER>|B<PEM>,\n"
68 . "B<-xkeyform> B<DER>|B<PEM>\n"
69 . "\n"
70 . "Set extended certificate verification options.\n"
71 . "See L<openssl(1)/Extended Verification Options> for details.";
72
73 # Name output options
74 $OpenSSL::safe::opt_name_synopsis = ""
75 . "[B<-nameopt> I<option>]";
76 $OpenSSL::safe::opt_name_item = ""
77 . "=item B<-nameopt> I<option>\n"
78 . "\n"
79 . "This specifies how the subject or issuer names are displayed.\n"
80 . "See L<openssl(1)/Name Format Options> for details.";
81
82 # Random State Options
83 $OpenSSL::safe::opt_r_synopsis = ""
84 . "[B<-rand> I<files>]\n"
85 . "[B<-writerand> I<file>]";
86 $OpenSSL::safe::opt_r_item = ""
87 . "=item B<-rand> I<files>, B<-writerand> I<file>\n"
88 . "\n"
89 . "See L<openssl(1)/Random State Options> for details.";
90
91 # Engine option
92 $OpenSSL::safe::opt_engine_synopsis = ""
93 . "[B<-engine> I<id>]";
94 $OpenSSL::safe::opt_engine_item = ""
95 . "=item B<-engine> I<id>\n"
96 . "\n"
97 . "See L<openssl(1)/Engine Options>.";
98
99 # Trusted certs options
100 $OpenSSL::safe::opt_trust_synopsis = ""
101 . "[B<-CAfile> I<file>]\n"
102 . "[B<-no-CAfile>]\n"
103 . "[B<-CApath> I<dir>]\n"
104 . "[B<-no-CApath>]\n"
105 . "[B<-CAstore> I<uri>]\n"
106 . "[B<-no-CAstore>]";
107 $OpenSSL::safe::opt_trust_item = ""
108 . "=item B<-CAfile> I<file>, B<-no-CAfile>, B<-CApath> I<dir>, B<-no-CApath>,\n"
109 . "B<-CAstore> I<uri>, B<-no-CAstore>\n"
110 . "\n"
111 . "See L<openssl(1)/Trusted Certificate Options> for details.";
112
113 # TLS Version Options
114 $OpenSSL::safe::opt_versiontls_synopsis = ""
115 . "[B<-no_ssl3>]\n"
116 . "[B<-no_tls1>]\n"
117 . "[B<-no_tls1_1>]\n"
118 . "[B<-no_tls1_2>]\n"
119 . "[B<-no_tls1_3>]\n"
120 . "[B<-ssl3>]\n"
121 . "[B<-tls1>]\n"
122 . "[B<-tls1_1>]\n"
123 . "[B<-tls1_2>]\n"
124 . "[B<-tls1_3>]";
125 $OpenSSL::safe::opt_versiontls_item = ""
126 . "=item B<-no_ssl3>, B<-no_tls1>, B<-no_tls1_1>, B<-no_tls1_2>, B<-no_tls1_3>,\n"
127 . "B<-ssl3>, B<-tls1>, B<-tls1_1>, B<-tls1_2>, B<-tls1_3>\n"
128 . "\n"
129 . "See L<openssl(1)/TLS Version Options>.";
130
131 # TLS/DTLS Version Options
132 $OpenSSL::safe::opt_version_synopsis = ""
133 . "$OpenSSL::safe::opt_versiontls_synopsis\n"
134 . "[B<-dtls>]\n"
135 . "[B<-dtls1>]\n"
136 . "[B<-dtls1_2>]";
137 $OpenSSL::safe::opt_version_item = "\n"
138 . "$OpenSSL::safe::opt_versiontls_item\n"
139 . "\n"
140 . "=item B<-dtls>, B<-dtls1>, B<-dtls1_2>\n"
141 . "\n"
142 . "These specify the use of DTLS instead of TLS.\n"
143 . "See L<openssl(1)/TLS Version Options>.";
144
145 # SSL connection options.
146 # TODO # options will probably be re-ordered.
147 $OpenSSL::safe::opt_s_synopsis = ""
148 . "[B<-bugs>]\n"
149 . "[B<-no_comp>]\n"
150 . "[B<-comp>]\n"
151 . "[B<-no_ticket>]\n"
152 . "[B<-serverpref>]\n"
153 . "[B<-legacy_renegotiation>]\n"
154 . "[B<-no_renegotiation>]\n"
155 . "[B<-no_resumption_on_reneg>]\n"
156 . "[B<-legacy_server_connect>]\n"
157 . "[B<-no_legacy_server_connect>]\n"
158 . "[B<-allow_no_dhe_kex>]\n"
159 . "[B<-prioritize_chacha>]\n"
160 . "[B<-strict>]\n"
161 . "[B<-sigalgs> I<algs>]\n"
162 . "[B<-client_sigalgs> I<algs>]\n"
163 . "[B<-groups> I<groups>]\n"
164 . "[B<-curves> I<curves>]\n"
165 . "[B<-named_curve> I<curve>]\n"
166 . "[B<-cipher> I<ciphers>]\n"
167 . "[B<-ciphersuites> I<1.3ciphers>]\n"
168 . "[B<-min_protocol> I<minprot>]\n"
169 . "[B<-max_protocol> I<maxprot>]\n"
170 . "[B<-record_padding> I<padding>]\n"
171 . "[B<-debug_broken_protocol>]\n"
172 . "[B<-no_middlebox>]";
173 $OpenSSL::safe::opt_s_item = ""
174 . "=item B<-bugs>, B<-comp>, B<-no_comp>, B<-no_ticket>, B<-serverpref>,\n"
175 . "B<-legacy_renegotiation>, B<-no_renegotiation>, B<-no_resumption_on_reneg>,\n"
176 . "B<-legacy_server_connect>, B<-no_legacy_server_connect>,\n"
177 . "B<-allow_no_dhe_kex>, B<-prioritize_chacha>, B<-strict>, B<-sigalgs>\n"
178 . "I<algs>, B<-client_sigalgs> I<algs>, B<-groups> I<groups>, B<-curves>\n"
179 . "I<curves>, B<-named_curve> I<curve>, B<-cipher> I<ciphers>, B<-ciphersuites>\n"
180 . "I<1.3ciphers>, B<-min_protocol> I<minprot>, B<-max_protocol> I<maxprot>,\n"
181 . "B<-record_padding> I<padding>, B<-debug_broken_protocol>, B<-no_middlebox>\n"
182 . "\n"
183 . "See L<SSL_CONF_cmd(3)/SUPPORTED COMMAND LINE COMMANDS> for details.";
184
185 package OpenSSL::safe;
186 sub output_do_not_edit_headers {
187     return "\n=begin comment\n\n"
188         . join("\n", @autowarntext)
189         . "\n\n=end comment";
190 }
191 1;