secret-attributes: improve validation of attributes table
authorClaudio Saavedra <csaavedra@igalia.com>
Tue, 19 Feb 2013 09:02:21 +0000 (11:02 +0200)
committerStef Walter <stefw@gnome.org>
Tue, 26 Feb 2013 18:30:33 +0000 (19:30 +0100)
commit261749ec77dc1b5da66cf825445362e5e3590752
treed5a2c8767e2851a5b1267835b7d6b90ccdbacc56
parentddd9bdd2e9fcc6009e54a17751d1002a039d180a
secret-attributes: improve validation of attributes table

Attributes table that are built by the library itself contain
the xdg:schema meta-attribute. Additionally,
secrets with a SECRET_SCHEMA_COMPAT_NETWORK schema might also have
libgnomekeyring specific meta-attributes (prefixed 'gkr'). During
validation, ensure that the former is consistent with the name
of the schema and ignore the latter.

Add tests for these changes

https://bugzilla.gnome.org/show_bug.cgi?id=694107
libsecret/secret-attributes.c
libsecret/tests/test-attributes.c