~registry/libcryptui/master

Viewing all changes in revision 3029.

  • Committer: Stef Walter
  • Author(s): Colomban Wendling
  • Date: 2017-01-12 12:28:39 UTC
  • Revision ID: git-v1:bdd2fd518bac805e379ab6b23cc450d257d524fa
daemon: Add a hack to find subkeys identities

The SeahorseContext does not contain PGP subkeys IDs, so is unable to
find the object corresponding to them.  This is problematic for
example for finding the identity corresponding to a signing key if
that key ID is a subkey of the primary PGP key.

For the moment, add a hack to search through all PGP keys and check
whether they have a corresponding ID when the normal hash table lookup
failed.

A better solution might be registering the subkey IDs in the context's
hash table so that the normal lookup would find the corresponding key.
However, such a change is not trivial as each module is not responsible
for registering with a specific ID but only for reporting one single ID
corresponding to the key to add.
Also, registering subkey IDs might have more deep incidence on other
code, which makes it a riskier change when not being familiar with the
code base.

https://bugzilla.gnome.org/show_bug.cgi?id=774611

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: