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