mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
Bug 315333 - [dstore] Correct Chained Certificates are rejected in the Client
This commit is contained in:
parent
1d37aa00be
commit
7453670f75
2 changed files with 5 additions and 6 deletions
|
@ -14,7 +14,7 @@ feature@org.eclipse.rse.tests=v201005221100,:pserver:anonymous:none@dev.eclipse.
|
|||
feature@org.eclipse.rse.useractions=v201005221100,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/features/org.eclipse.rse.useractions-feature
|
||||
!!feature@org.eclipse.rse.useractions.wrapper=v20080609a,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/features/org.eclipse.rse.useractions.wrapper-feature
|
||||
!!feature@org.eclipse.tm.releng.master=v20080609,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/releng/org.eclipse.tm.releng.master-feature
|
||||
plugin@org.eclipse.dstore.core=v201005221100,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.dstore.core
|
||||
plugin@org.eclipse.dstore.core=v201006030345,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.dstore.core
|
||||
plugin@org.eclipse.dstore.doc.isv=v201005221130,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/doc/org.eclipse.dstore.doc.isv
|
||||
plugin@org.eclipse.dstore.extra=v200907301400,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.dstore.extra
|
||||
plugin@org.eclipse.rse=v201003151933,:pserver:anonymous:none@dev.eclipse.org:/cvsroot/dsdp,,org.eclipse.tm.rse/plugins/org.eclipse.rse
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2009 IBM Corporation and others.
|
||||
* Copyright (c) 2006, 2010 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -14,6 +14,7 @@
|
|||
* Contributors:
|
||||
* David McKnight (IBM) - [225507][api][breaking] RSE dstore API leaks non-API types
|
||||
* David McKnight (IBM) - [264858] [dstore] OpenRSE always picks the first trusted certificate
|
||||
* Noriaki Takatsu (IBM) - [315333] [dstore] Correct Chained Certificates are rejected in the Client
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.dstore.internal.core.util.ssl;
|
||||
|
@ -112,10 +113,8 @@ public class DataStoreTrustManager implements IDataStoreTrustManager
|
|||
X509Certificate tcert = (X509Certificate)_trustedCerts.get(j);
|
||||
try
|
||||
{
|
||||
if (cert.getSubjectDN().equals(tcert.getIssuerDN())) {
|
||||
cert.verify(tcert.getPublicKey());
|
||||
foundMatch = true;
|
||||
}
|
||||
cert.verify(tcert.getPublicKey());
|
||||
foundMatch = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue