Skip to content

Commit

Permalink
Remove sun SSL provider, as it is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
ogreface committed Apr 9, 2012
1 parent d3adc27 commit 5c15197
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
11 changes: 0 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,6 @@
<timezone>1</timezone>
</developer>
</developers>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>


<scm>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/hudson/plugins/ircbot/v2/IRCConnection.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package hudson.plugins.ircbot.v2;

import com.sun.net.ssl.internal.ssl.Provider;
import hudson.Util;
import hudson.plugins.im.AuthenticationHolder;
import hudson.plugins.im.GroupChatIMMessageTarget;
Expand All @@ -19,6 +18,7 @@
import hudson.plugins.ircbot.v2.PircListener.PartListener;

import java.io.IOException;
import java.security.Provider;
import java.security.Security;
import java.util.Collections;
import java.util.HashMap;
Expand Down Expand Up @@ -131,7 +131,6 @@ public boolean connect() {
if (this.descriptor.shouldIgnoreSslCert()) {
SSLContext ctx = null;
try {
addProvider(new Provider());
ctx = getInstance("TLS");
ctx.init(null, new TrustManager[]{new AlwaysTrustManager()}, null);
} catch (Exception e) {
Expand Down

0 comments on commit 5c15197

Please sign in to comment.