avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/sockets SSLFactoryBuilder.java
Date Tue, 08 Oct 2002 21:43:32 GMT
hammant     2002/10/08 14:43:32

  Modified:    src/java/org/apache/avalon/cornerstone/blocks/sockets
                        SSLFactoryBuilder.java
  Log:
  Zero arraysize patch from Greg Steuck
  
  Revision  Changes    Path
  1.2       +4 -1      jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/sockets/SSLFactoryBuilder.java
  
  Index: SSLFactoryBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/sockets/SSLFactoryBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SSLFactoryBuilder.java	22 Sep 2002 05:46:19 -0000	1.1
  +++ SSLFactoryBuilder.java	8 Oct 2002 21:43:32 -0000	1.2
  @@ -195,7 +195,10 @@
                                                   keystorePassword,
                                                   keystoreFormat );
           final KeyManagerFactory kmf = KeyManagerFactory.getInstance( provider );
  -        final char [] passChars = keyPassword.toCharArray();
  +        // even though undocumented Sun's implementation doesn't allow
  +        // null passphrases, but zero sized arrays are OK
  +        final char [] passChars = ( keyPassword != null ) ?
  +            keyPassword.toCharArray() : new char [0];
           try
           {
               kmf.init( keystore, passChars );
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message