373569: fix jdk7/macos ssl issue leading to SSLClostTest failures

Change-Id: I7af7e71581e1e56f308a5e1ca1f8e84fcbad7413
This commit is contained in:
Thomas Becker 2012-03-07 18:58:12 +01:00
parent 5416b93c7e
commit 3c0c010690
1 changed files with 5 additions and 1 deletions

View File

@ -51,16 +51,19 @@ public class SSLCloseTest extends TestCase
private static AsyncEndPoint __endp;
private static class CredulousTM implements TrustManager, X509TrustManager
{
@Override
public X509Certificate[] getAcceptedIssuers()
{
return null;
return new X509Certificate[]{};
}
@Override
public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException
{
return;
}
@Override
public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException
{
return;
@ -129,6 +132,7 @@ public class SSLCloseTest extends TestCase
private static class WriteHandler extends AbstractHandler
{
@Override
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
try