mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-23 05:25:21 -04:00
SSH Agent: Reset settings when KeeAgent.settings is removed
Fixes #4594
This commit is contained in:
parent
98566fec83
commit
a83345d136
5 changed files with 60 additions and 24 deletions
|
@ -28,14 +28,16 @@
|
|||
class KeeAgentSettings
|
||||
{
|
||||
public:
|
||||
KeeAgentSettings();
|
||||
bool operator==(const KeeAgentSettings& other) const;
|
||||
bool operator!=(const KeeAgentSettings& other) const;
|
||||
bool isDefault() const;
|
||||
void reset();
|
||||
|
||||
bool fromXml(const QByteArray& ba);
|
||||
QByteArray toXml() const;
|
||||
|
||||
static bool inEntry(const Entry* entry);
|
||||
static bool inEntryAttachments(const EntryAttachments* attachments);
|
||||
bool fromEntry(const Entry* entry);
|
||||
void toEntry(Entry* entry) const;
|
||||
bool keyConfigured() const;
|
||||
|
@ -77,17 +79,17 @@ private:
|
|||
bool readBool(QXmlStreamReader& reader);
|
||||
int readInt(QXmlStreamReader& reader);
|
||||
|
||||
bool m_allowUseOfSshKey = false;
|
||||
bool m_addAtDatabaseOpen = false;
|
||||
bool m_removeAtDatabaseClose = false;
|
||||
bool m_useConfirmConstraintWhenAdding = false;
|
||||
bool m_useLifetimeConstraintWhenAdding = false;
|
||||
int m_lifetimeConstraintDuration = 600;
|
||||
bool m_allowUseOfSshKey;
|
||||
bool m_addAtDatabaseOpen;
|
||||
bool m_removeAtDatabaseClose;
|
||||
bool m_useConfirmConstraintWhenAdding;
|
||||
bool m_useLifetimeConstraintWhenAdding;
|
||||
int m_lifetimeConstraintDuration;
|
||||
|
||||
// location
|
||||
QString m_selectedType = QString("file");
|
||||
QString m_selectedType;
|
||||
QString m_attachmentName;
|
||||
bool m_saveAttachmentToTempFile = false;
|
||||
bool m_saveAttachmentToTempFile;
|
||||
QString m_fileName;
|
||||
QString m_error;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue