1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-23 00:03:53 +02:00

just disable ssl if no ssl.properties file

This commit is contained in:
David McKnight 2006-04-24 13:15:47 +00:00
parent f463e41fb7
commit b2caa10117

View file

@ -46,6 +46,8 @@ public class ServerSSLProperties implements ISSLProperties
try try
{ {
ResourceBundle properties = ResourceBundle.getBundle("ssl"); ResourceBundle properties = ResourceBundle.getBundle("ssl");
if (properties != null)
{
_enableSSL = properties.getString(ENABLE_SSL).equals("true"); _enableSSL = properties.getString(ENABLE_SSL).equals("true");
if (_enableSSL) if (_enableSSL)
{ {
@ -88,9 +90,17 @@ public class ServerSSLProperties implements ISSLProperties
System.out.println("[server keystore pw:\t"+_serverKeyStorePassword+"]"); System.out.println("[server keystore pw:\t"+_serverKeyStorePassword+"]");
} }
} }
else
{
_enableSSL = false;
}
}
catch (Exception e) catch (Exception e)
{ {
e.printStackTrace(); // no ssl properties...set to disabled
_enableSSL = false;
//e.printStackTrace();
} }
} }