]> granicus.if.org Git - neomutt/commit
Implement oppenc_mode in the find_keys methods.
authorKevin McCarthy <kevin@8t8.us>
Mon, 30 Mar 2015 22:45:52 +0000 (15:45 -0700)
committerKevin McCarthy <kevin@8t8.us>
Mon, 30 Mar 2015 22:45:52 +0000 (15:45 -0700)
commitd062c47e7e8d43162564db9dabd0b4f770eadc22
tree8b78525400aed39a8d17d3e6014f2a7b41254441
parent85d0c2373da5190b3be0518db3160315a71544ac
Implement oppenc_mode in the find_keys methods.

oppenc_mode is used by crypt_opportunistic_encrypt to determine whether
there are valid keys for all recipients of a message, without prompting
the user.

The patch wraps around prompts, and makes getkeybyaddr methods return a
valid address-matching key without prompting.

The patch also fixes a small problem with gpgme's getkeybyaddr.  When
determining if there were multiple strong matches, it was comparing the
crypt_key_t instead of its kobj member (gpgme_key_t).

The patch also enables a call to crypt_is_numerical_keyid() in
find_keys(), so that crypt-hooks can actually be checked without
prompting when gpgme is enabled.  (The addition was patterned off of the
pgp_findKeys() function).
crypt-gpgme.c
pgp.c
pgp.h
pgpkey.c
smime.c