Skip to content

Commit

Permalink
note on no longer needed provider registration hack
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Nov 4, 2016
1 parent 6230c59 commit 38f26c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jruby/ext/openssl/SecurityHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static CertificateFactory getCertificateFactory(final String type, final Provide
final CertificateFactorySpi spi;
boolean addedBC = false;
synchronized(SecurityHelper.class) {
try {
try { // TODO fixed since BC 1.55 (only needed on 1.54) and should be removed eventually ...
if (provider.getName().equals(BC_PROVIDER_NAME) && Security.getProvider(BC_PROVIDER_NAME) == null) {
Security.addProvider(provider);
addedBC = true;
Expand Down

0 comments on commit 38f26c0

Please sign in to comment.