Password file versioning, support for old versions
authorPiotr Bartosiewicz <p.bartosiewi@partner.samsung.com>
Wed, 11 Dec 2013 14:26:10 +0000 (15:26 +0100)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 6 Feb 2014 16:13:25 +0000 (17:13 +0100)
commitb56814a7846a2b698c84fc7de38ccae1d151b8db
tree90e98ee86c7b96ac162e79e7e4ae70d9846fec32
parent8caea24c7f727169c98223b23dc50fd0f5d5ad23
Password file versioning, support for old versions

[Issue#]        SSDWSSP-711
[Bug/Feature]   Security server crashes after update to version with a
                new password file format.
[Cause]         There was no backward compatibility support.
[Solution]      Introduce a new password file format with versioning and
                algorithm identifier associated with every password
                entry. Additionally security server can read all old
                password file formats, but can only save in the newest.
                Also incorrect file mask was fixed.
[Verification]  Build, install, run tests. Check migration from old
                password file formats to the new one (folder:
                /opt/data/security-server, old file name: password.pwd,
                new file name: password).

Change-Id: If25952ddc467172fc8032fb98a31e9413762882e
src/server/dpl/core/include/dpl/serialization.h
src/server/main/server2-main.cpp
src/server/service/password-file.cpp
src/server/service/password-file.h