mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 13:27:46 +00:00
Temporarily work around SSHJ compatibility issues (#1142)
Using ECDSA either as a key exchange or a host key algorithm fails with SSHJ 0.30.0 on Android, but should again become possible in 0.31.0. While we wait for the release, demote ECDSA in the list of key algorithms (as it should still be available for public key auth) and remove it from the list of key exchange algorithms. (cherry picked from commit 0d2788ab54b7898c88e8dc03d88323d70781a795)
This commit is contained in:
parent
c70c1792f6
commit
6139693d4f
@ -214,9 +214,6 @@ class SshjConfig : ConfigImpl() {
|
|||||||
keyExchangeFactories = listOf(
|
keyExchangeFactories = listOf(
|
||||||
Curve25519SHA256.Factory(),
|
Curve25519SHA256.Factory(),
|
||||||
FactoryLibSsh(),
|
FactoryLibSsh(),
|
||||||
ECDHNistP.Factory521(),
|
|
||||||
ECDHNistP.Factory384(),
|
|
||||||
ECDHNistP.Factory256(),
|
|
||||||
DHGexSHA256.Factory(),
|
DHGexSHA256.Factory(),
|
||||||
// Sends "ext-info-c" with the list of key exchange algorithms. This is needed to get
|
// Sends "ext-info-c" with the list of key exchange algorithms. This is needed to get
|
||||||
// rsa-sha2-* key types to work with some servers (e.g. GitHub).
|
// rsa-sha2-* key types to work with some servers (e.g. GitHub).
|
||||||
@ -230,10 +227,10 @@ class SshjConfig : ConfigImpl() {
|
|||||||
KeyAlgorithms.EdDSA25519(),
|
KeyAlgorithms.EdDSA25519(),
|
||||||
KeyAlgorithms.RSASHA512(),
|
KeyAlgorithms.RSASHA512(),
|
||||||
KeyAlgorithms.RSASHA256(),
|
KeyAlgorithms.RSASHA256(),
|
||||||
|
KeyAlgorithms.SSHRSA(),
|
||||||
KeyAlgorithms.ECDSASHANistp521(),
|
KeyAlgorithms.ECDSASHANistp521(),
|
||||||
KeyAlgorithms.ECDSASHANistp384(),
|
KeyAlgorithms.ECDSASHANistp384(),
|
||||||
KeyAlgorithms.ECDSASHANistp256(),
|
KeyAlgorithms.ECDSASHANistp256(),
|
||||||
KeyAlgorithms.SSHRSA(),
|
|
||||||
).map {
|
).map {
|
||||||
OpenKeychainWrappedKeyAlgorithmFactory(it)
|
OpenKeychainWrappedKeyAlgorithmFactory(it)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user