File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 2626
2727 <framework src =" commons-io:commons-io:2.11.0" />
2828 <framework src =" com.sshtools:maverick-synergy-client:3.1.2" />
29+ <framework src =" com.sshtools:maverick-bc:3.1.2" />
2930</plugin >
Original file line number Diff line number Diff line change 1919import com .sshtools .common .sftp .SftpStatusException ;
2020import com .sshtools .common .ssh .SshException ;
2121import com .sshtools .common .ssh .components .SshKeyPair ;
22+ import com .sshtools .common .ssh .components .jce .JCEProvider ;
2223import com .sshtools .common .util .FileUtils ;
2324import java .io .File ;
2425import java .io .IOException ;
@@ -94,6 +95,7 @@ public void run() {
9495 int port = args .optInt (1 );
9596 String username = args .optString (2 );
9697 String password = args .optString (3 );
98+ JCEProvider .enableBouncyCastle (true );
9799 Log .d (
98100 TAG ,
99101 "Connecting to " + host + ":" + port + " as " + username
@@ -176,6 +178,8 @@ public void run() {
176178 ContentResolver contentResolver = context .getContentResolver ();
177179 InputStream in = contentResolver .openInputStream (uri );
178180
181+ JCEProvider .enableBouncyCastle (true );
182+
179183 SshKeyPair keyPair = null ;
180184 try {
181185 keyPair = SshKeyUtils .getPrivateKey (in , passphrase );
You can’t perform that action at this time.
0 commit comments