Commit 6161f86
Make
This is a continuation of 07f86ab. On
modern JSch versions, the call to `setPassphrase(...)` will always throw
an `UnsupportedOperationException`.
Instead of using this deprecated method (which is already deprecated in
JSch 0.1.55), the pass-phrase should be passed as an additional argument
when calling `writePrivateKey(...)`.
To reproduce: Run the Eclipse IDE with e.g. `com.github.mwiede.jsch` in
version 2.27.7. Then, open the SSH2 preference page, create a new
RSA-key and then save the private key.org.eclipse.jsch.ui compatible with modern JSch versions1 parent 1fa3c16 commit 6161f86
File tree
1 file changed
+3
-4
lines changed- team/bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/preference
1 file changed
+3
-4
lines changedLines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
746 | | - | |
747 | 745 | | |
748 | 746 | | |
749 | 747 | | |
| |||
777 | 775 | | |
778 | 776 | | |
779 | 777 | | |
780 | | - | |
| 778 | + | |
| 779 | + | |
781 | 780 | | |
782 | 781 | | |
783 | 782 | | |
| |||
0 commit comments