Skip to content
  • Mike Fleetwood's avatar
    Change to insert or replace PasswordRAMStore::store() interface (#795617) · 957216f0
    Mike Fleetwood authored and Curtis Gedak's avatar Curtis Gedak committed
    Replace the insert() method (which reports an error when inserting a
    password with a key which already exists) with the store() method which
    replaces or inserts the password depending on whether the key already
    exists or not respectively.  There is also an optimisation that nothing
    is changed if the password to be replaced is the same as the one already
    stored.  The code in Win_GParted::open_encrypted_partition() is
    simplified now it doesn't have to implement this pattern of behaviour
    itself.
    
    Bug 795617 - Implement opening and closing of LUKS mappings
    957216f0