-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bugs introduced by database refactor #2491 #2503
Conversation
07862f2
to
62dc4f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, this will be further fixed by a refactor on the unlock widgets.
void SSHAgent::removeIdentityAtLock(const OpenSSHKey& key, const QUuid& uuid) | ||
/** | ||
* Change "remove identity on lock" setting for a key already added to the agent. | ||
* Will to nothing if the key has not been added to the agent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do nothing
@@ -201,9 +211,18 @@ bool SSHAgent::addIdentity(OpenSSHKey& key, quint32 lifetime, bool confirm) | |||
return false; | |||
} | |||
|
|||
OpenSSHKey keyCopy = key; | |||
keyCopy.clearPrivate(); | |||
m_addedKeys[keyCopy] = removeOnLock; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, in 2.3.4, only those keys with the option "remove at lock" were removed from the ssh agent upon closing keepassxc.
see #2980
Description
Fixes bugs introduced by the refactoring of our database classes (#2491).
Resolves #2502 by making sure that password fields are cleared when they are hidden.
Resolves issues no. 1 and 3 of #2499 by fixing conditions and reworking connected signals and tracking of added keys in our SSH agent feature.
Types of changes
Checklist:
-DWITH_ASAN=ON
. [REQUIRED]