On 09/10/17 22:55, schu...@apache.org wrote:
> Author: schultz
> Date: Mon Oct  9 21:55:29 2017
> New Revision: 1811614
> 
> URL: http://svn.apache.org/viewvc?rev=1811614&view=rev
> Log:
> Add main method to OpenSSLCipherConfigurationParser and wrapper script to 
> mimic "openssl ciphers" command.

<snip/>

> +# 
> -----------------------------------------------------------------------------
> +# Script to digest password using the algorithm specified
> +# 
> -----------------------------------------------------------------------------

Copy / paste error?

Actually, there is a large amount of duplication between this and other
scripts. Time for some refactoring?

> Modified: 
> tomcat/trunk/java/org/apache/tomcat/util/net/openssl/ciphers/OpenSSLCipherConfigurationParser.java
> URL: 
> http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/openssl/ciphers/OpenSSLCipherConfigurationParser.java?rev=1811614&r1=1811613&r2=1811614&view=diff
> ==============================================================================
> --- 
> tomcat/trunk/java/org/apache/tomcat/util/net/openssl/ciphers/OpenSSLCipherConfigurationParser.java
>  (original)
> +++ 
> tomcat/trunk/java/org/apache/tomcat/util/net/openssl/ciphers/OpenSSLCipherConfigurationParser.java
>  Mon Oct  9 21:55:29 2017
> @@ -824,4 +824,77 @@ public class OpenSSLCipherConfigurationP
>          }
>          return builder.toString().substring(0, builder.length() - 1);
>      }
> +
> +    public static void usage() {
> +        System.out.println("Usage: java " + 
> OpenSSLCipherConfigurationParser.class.getName() + " [options] cipherspec");
> +        System.out.println();
> +        System.out.println("Displays the TLS cipher suites matching the 
> cipherspec.");
> +        System.out.println();
> +        System.out.println(" --help,");
> +        System.out.println(" -h          Print this help message");
> +        System.out.println(" --openssl   Show OpenSSL cipher suite names 
> instead of IANA cipher suite names.");
> +        System.out.println(" --verbose,");
> +        System.out.println(" -v          Provide detailed cipher listing");

Maybe clarify in the text above that Java accepts the IANA names?

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to