Skip to content

Commit b88c206

Browse files
committed
at least (internal) debug when BC provider fails to instantiate
1 parent 941d7ed commit b88c206

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/jruby/ext/openssl/SecurityHelper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ private static Provider newBouncyCastleProvider() {
182182
try {
183183
return (Provider) Class.forName(BC_PROVIDER_CLASS).newInstance();
184184
}
185-
catch (Throwable ignored) { /* no bouncy castle available */ }
185+
catch (Throwable ignored) {
186+
OpenSSL.debug("can not instantiate bouncy-castle provider:", ignored);
187+
}
186188
return null;
187189
}
188190

0 commit comments

Comments
 (0)