Skip to content

Commit f513fb3

Browse files
authored
Merge pull request #175 from scottslewis/master
Added system properties for configuring ECFSSLContextFactory
2 parents 1135a0f + bd01575 commit f513fb3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

framework/bundles/org.eclipse.ecf/META-INF/MANIFEST.MF

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-Name: %plugin.name
33
Bundle-SymbolicName: org.eclipse.ecf;singleton:=true
44
Automatic-Module-Name: org.eclipse.ecf
5-
Bundle-Version: 3.12.1.qualifier
5+
Bundle-Version: 3.13.0.qualifier
66
Bundle-Activator: org.eclipse.ecf.internal.core.ECFPlugin
77
Bundle-Vendor: %plugin.provider
88
Bundle-Localization: plugin

framework/bundles/org.eclipse.ecf/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
</parent>
1111

1212
<artifactId>org.eclipse.ecf</artifactId>
13-
<version>3.12.1-SNAPSHOT</version>
13+
<version>3.13.0-SNAPSHOT</version>
1414
<packaging>eclipse-plugin</packaging>
1515
</project>

framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/core/ECFPlugin.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,10 @@ public void ungetService(Bundle bundle, ServiceRegistration registration, Object
228228
containerManagerServiceRegistration = ctxt.registerService(IContainerManager.class.getName(), sf, null);
229229

230230
// Register SSLContextFactory
231-
ecfSSLContextFactory = new ECFSSLContextFactory(ctxt);
231+
String defaultProtocol = System.getProperty("org.eclipse.ecf.core.security.sslcontextfactory.defaultProtocol"); //$NON-NLS-1$
232+
String defaultProvider = System.getProperty("org.eclipse.ecf.core.security.sslcontextfactory.defaultProvider"); //$NON-NLS-1$
233+
234+
ecfSSLContextFactory = new ECFSSLContextFactory(ctxt, defaultProtocol, defaultProvider);
232235
sslContextFactoryRegistration = ctxt.registerService(SSLContextFactory.class, ecfSSLContextFactory, null);
233236

234237
SafeRunner.run(new ExtensionRegistryRunnable(this.context) {

0 commit comments

Comments
 (0)