mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-25 23:21:03 -04:00
Fix removing encrypted ASN.1 keys from ssh-agent (#6804)
Contents of id_rsa-encrypted-asn1 are from TestOpenSSHKey::testDecryptRSAAES128CBC(). Closes #6788
This commit is contained in:
parent
0921bf2d61
commit
bc5d0df19e
4 changed files with 45 additions and 1 deletions
|
@ -478,7 +478,7 @@ bool KeeAgentSettings::toOpenSSHKey(const QString& username,
|
|||
return false;
|
||||
}
|
||||
|
||||
if (key.encrypted() && decrypt) {
|
||||
if (key.encrypted() && (decrypt || key.publicKey().isEmpty())) {
|
||||
if (!key.openKey(password)) {
|
||||
m_error = key.errorString();
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue