]> granicus.if.org Git - mutt/commit
Rewrite S/MIME key searching. Add purpose checking.
authorKevin McCarthy <kevin@8t8.us>
Sun, 7 Jun 2015 20:59:32 +0000 (13:59 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sun, 7 Jun 2015 20:59:32 +0000 (13:59 -0700)
commit135622ee4ce755d62215272d417e360e855e03b6
tree0a030cb7a7b20fe3f261b3419e0ef755d8d46c80
parentc9d72b85809ac9b35c9300c40b80fc9d02acc64c
Rewrite S/MIME key searching.  Add purpose checking.

Model the smime.c searching off of classic pgp searching.  Create
smime_get_key_by_hash()/addr()/str() functions that use a single
smime_get_candidates() function to search the index.

Use the new smime_keys generated purpose flag in the index to filter by
KEYFLAG_CANENCRYPT and KEYFLAG_CANSIGN.  Old style indices fall back to
all-inclusive behavior.
smime.c
smime.h