From: Dave B. <bla...@us...> - 2010-12-06 19:43:10
|
Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/http In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv9388/src/org/sblim/cimclient/internal/http Modified Files: HttpSocketFactory.java Log Message: 3111718 - org.sblim.cimclient SSL Code is using the wrong SSL Property Index: HttpSocketFactory.java =================================================================== RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/http/HttpSocketFactory.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- HttpSocketFactory.java 16 Aug 2010 17:36:24 -0000 1.18 +++ HttpSocketFactory.java 6 Dec 2010 19:43:02 -0000 1.19 @@ -31,6 +31,7 @@ * 2531371 2009-02-10 raman_arora Upgrade client to JDK 1.5 (Phase 2) * 3001345 2010-05-18 blaschke-oss File handle leaks in HttpSocketFactory and LogAndTraceBroker * 3027618 2010-07-14 blaschke-oss Close files/readers in finally blocks + * 3111718 2010-11-18 blaschke-oss org.sblim.cimclient SSL Code is using the wrong SSL Property */ package org.sblim.cimclient.internal.http; @@ -160,10 +161,9 @@ try { Class<?> providerClass = Class.forName(provider); securityProvider = (java.security.Provider) providerClass.newInstance(); - if (Security.getProvider(securityProvider.getName()) != null) { - Security.removeProvider(securityProvider.getName()); + if (Security.getProvider(securityProvider.getName()) == null) { + Security.addProvider(securityProvider); } - Security.insertProviderAt(securityProvider, 1); } catch (Exception e) { logger.trace(Level.FINER, "Exception while loading JSSE provider", e); logger.message(Messages.SSL_JSSE_PROVIDER_LOAD_FAILED, provider); |