1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[205986] need to check for certs when using daemon

This commit is contained in:
David McKnight 2007-10-11 15:54:48 +00:00
parent c7a377406d
commit 80ffbb4b26

View file

@ -633,6 +633,29 @@ public class DStoreConnectorService extends StandardConnectorService implements
launchStatus = launchServer(clientConnection, info, daemonPort, monitor);
if (!launchStatus.isConnected() && !clientConnection.isKnownStatus(launchStatus.getMessage()))
{
Throwable conE = launchStatus.getException();
if (conE instanceof SSLHandshakeException)
{
List certs = launchStatus.getUntrustedCertificates();
if (certs != null && certs.size() > 0)
{
ISystemKeystoreProvider provider = SystemKeystoreProviderManager.getInstance().getDefaultProvider();
if (provider != null)
{
if (provider.importCertificates(certs, getHostName()))
{
connect(monitor);
return;
}
else
{
throw new InterruptedException();
}
}
}
}
if (setSSLProperties(false))
{
usedSSL = false;