Skip to content

Commit

Permalink
remove some old ssh code
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed Aug 3, 2021
1 parent 4ff660c commit c5d5f36
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/src/main/java/app/trigger/ssh/SshTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ public static KeyPairBean deserializeKeyPair_3_2_3(String str) {
}

try {
//JSch jsch = new JSch();
//KeyPair keypair = KeyPair.load(jsch, str.getBytes(), null);
//keypair.setPublicKeyComment(null);
//return keypair;
return parsePrivateKeyPEM(str);
} catch (Exception e) {
Log.e(TAG, "deserialize error: " + e.toString());
Expand All @@ -96,11 +92,6 @@ public static KeyPairBean deserializeKeyPair_1_9_1(String str) {
KeyPairData obj = (KeyPairData) ios.readObject();

return parsePrivateKeyPEM(new String(obj.prvkey));

// KeyParData to KeyPair
//JSch jsch = new JSch();
//KeyPair keypair = KeyPair.load(jsch, obj.prvkey, obj.pubkey);
//return keypair;
} catch (Exception e) {
Log.e(TAG, "deserialize error: " + e.toString());
}
Expand Down

0 comments on commit c5d5f36

Please sign in to comment.