IBM JVM does not allow renegotiate

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1229 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-02-02 14:09:29 +00:00
parent 1a995d876d
commit 3e15950eed
2 changed files with 8 additions and 3 deletions

View File

@ -18,7 +18,7 @@ import org.eclipse.jetty.server.Connector;
*/
public interface SslConnector extends Connector
{
public static final String DEFAULT_KEYSTORE_ALGORITHM=(Security.getProperty("ssl.KeyManagerFactory.algorithm")==null?"SunX509":Security.getProperty("ssl.KeyManagerFactory.algorithm"));;
public static final String DEFAULT_KEYSTORE_ALGORITHM=(Security.getProperty("ssl.KeyManagerFactory.algorithm")==null?"SunX509":Security.getProperty("ssl.KeyManagerFactory.algorithm"));
public static final String DEFAULT_TRUSTSTORE_ALGORITHM=(Security.getProperty("ssl.TrustManagerFactory.algorithm")==null?"SunX509":Security.getProperty("ssl.TrustManagerFactory.algorithm"));
/** Default value for the keystore location path. */

View File

@ -11,6 +11,7 @@ import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLEngineResult;
import javax.net.ssl.SSLProtocolException;
import javax.net.ssl.SSLSession;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
@ -169,8 +170,12 @@ public class SslRenegotiateTest extends TestCase
}
catch(IOException e)
{
// System.err.println(e);
assertFalse(reneg);
if (!(e instanceof SSLProtocolException))
{
if (reneg)
Log.warn(e);
assertFalse(reneg);
}
return;
}