perlvars.pm 6.3 KB

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