]> source.dussan.org Git - gitblit.git/commitdiff
Register BouncyCastle as a JCE provider 94/194/1
authorJames Moger <james.moger@gitblit.com>
Tue, 30 Sep 2014 11:54:51 +0000 (07:54 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 30 Sep 2014 11:54:51 +0000 (07:54 -0400)
src/main/java/com/gitblit/transport/ssh/SshDaemon.java

index 261daa66cf352f89e74b0e199d076b4c4b7f17d3..6bcc03903a57a4bc45d644e7899e63dad9f21695 100644 (file)
@@ -85,6 +85,9 @@ public class SshDaemon {
 
                // Ensure that Bouncy Castle is our JCE provider
                SecurityUtils.setRegisterBouncyCastle(true);
+               if (SecurityUtils.isBouncyCastleRegistered()) {
+                       log.debug("BouncyCastle is registered as a JCE provider");
+               }
 
                // Generate host RSA and DSA keypairs and create the host keypair provider
                File rsaKeyStore = new File(gitblit.getBaseFolder(), "ssh-rsa-hostkey.pem");