diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-21 20:58:34 +0000 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-03-25 08:26:55 +0100 |
commit | e890f54dbac57f3ab5acf4fbd31222095d3e8ab6 (patch) | |
tree | 92366755cf128fab52cb90c38a474993f680bd5a /officecfg/registry/schema/org/openoffice/Office/Common.xcs | |
parent | warn on too many rows/column when loading ODS (diff) | |
download | core-e890f54dbac57f3ab5acf4fbd31222095d3e8ab6.tar.gz core-e890f54dbac57f3ab5acf4fbd31222095d3e8ab6.zip |
make hash encoding match decoding
Seeing as old versions of the hash may be in the users config, add a
StorageVersion field to the office config Passwords section which
defaults to 0 to indicate the old hash is in use.
Try the old varient when StorageVersion is 0. When a new encoded master
password it set write StorageVersion of 1 to indicate a new hash is in
use and use the new style when StorageVersion is 1.
Change-Id: I3174c37a5891bfc849984e0ec5c2c392b9c6e7b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132080
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'officecfg/registry/schema/org/openoffice/Office/Common.xcs')
-rw-r--r-- | officecfg/registry/schema/org/openoffice/Office/Common.xcs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs index 56954ead6ffb..a8bdbf95cd96 100644 --- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs +++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs @@ -933,6 +933,12 @@ </info> <value>false</value> </prop> + <prop oor:name="StorageVersion" oor:type="xs:int" oor:nillable="false"> + <info> + <desc>Specifies what version of encoding scheme the password container uses.</desc> + </info> + <value>0</value> + </prop> <prop oor:name="HasMaster" oor:type="xs:boolean" oor:nillable="false"> <info> <desc>Specifies if there is a valid master password.</desc> |