···43054305}
4306430643074307/* This routine attempts to find the keyids of the recipients of a
43084308- message. It returns NULL if any of the keys can not be found. */
43094309-static char *find_keys (ADDRESS *adrlist, unsigned int app)
43084308+ message. It returns NULL if any of the keys can not be found.
43094309+ If oppenc_mode is true, only keys that can be determined without
43104310+ prompting will be used. */
43114311+static char *find_keys (ADDRESS *adrlist, unsigned int app, int oppenc_mode)
43104312{
43114313 char *keyID, *keylist = NULL, *t;
43124314 size_t keylist_size = 0;
···44094411 return (keylist);
44104412}
4411441344124412-char *pgp_gpgme_findkeys (ADDRESS *adrlist)
44144414+char *pgp_gpgme_findkeys (ADDRESS *adrlist, int oppenc_mode)
44134415{
44144414- return find_keys (adrlist, APPLICATION_PGP);
44164416+ return find_keys (adrlist, APPLICATION_PGP, oppenc_mode);
44154417}
4416441844174417-char *smime_gpgme_findkeys (ADDRESS *adrlist)
44194419+char *smime_gpgme_findkeys (ADDRESS *adrlist, int oppenc_mode)
44184420{
44194419- return find_keys (adrlist, APPLICATION_SMIME);
44214421+ return find_keys (adrlist, APPLICATION_SMIME, oppenc_mode);
44204422}
4421442344224424#ifdef HAVE_GPGME_OP_EXPORT_KEYS
···199199}
200200201201/* This routine attempts to find the keyids of the recipients of a
202202- message. It returns NULL if any of the keys can not be found. */
203203-char *crypt_pgp_findkeys (ADDRESS *adrlist)
202202+ message. It returns NULL if any of the keys can not be found.
203203+ If oppenc_mode is true, only keys that can be determined without
204204+ prompting will be used. */
205205+char *crypt_pgp_findkeys (ADDRESS *adrlist, int oppenc_mode)
204206{
205207 if (CRYPT_MOD_CALL_CHECK (PGP, findkeys))
206206- return (CRYPT_MOD_CALL (PGP, findkeys)) (adrlist);
208208+ return (CRYPT_MOD_CALL (PGP, findkeys)) (adrlist, oppenc_mode);
207209208210 return NULL;
209211}
···333335}
334336335337/* This routine attempts to find the keyids of the recipients of a
336336- message. It returns NULL if any of the keys can not be found. */
337337-char *crypt_smime_findkeys (ADDRESS *adrlist)
338338+ message. It returns NULL if any of the keys can not be found.
339339+ If oppenc_mode is true, only keys that can be determined without
340340+ prompting will be used. */
341341+char *crypt_smime_findkeys (ADDRESS *adrlist, int oppenc_mode)
338342{
339343 if (CRYPT_MOD_CALL_CHECK (SMIME, findkeys))
340340- return (CRYPT_MOD_CALL (SMIME, findkeys)) (adrlist);
344344+ return (CRYPT_MOD_CALL (SMIME, findkeys)) (adrlist, oppenc_mode);
341345342346 return NULL;
343347}
+8-4
mutt_crypt.h
···210210BODY *crypt_pgp_make_key_attachment (char *tempf);
211211212212/* This routine attempts to find the keyids of the recipients of a
213213- message. It returns NULL if any of the keys can not be found. */
214214-char *crypt_pgp_findkeys (ADDRESS *adrlist);
213213+ message. It returns NULL if any of the keys can not be found.
214214+ If oppenc_mode is true, only keys that can be determined without
215215+ prompting will be used. */
216216+char *crypt_pgp_findkeys (ADDRESS *adrlist, int oppenc_mode);
215217216218/* Create a new body with a PGP signed message from A. */
217219BODY *crypt_pgp_sign_message (BODY *a);
···259261char *crypt_smime_ask_for_key (char *prompt, char *mailbox, short public);
260262261263/* This routine attempts to find the keyids of the recipients of a
262262- message. It returns NULL if any of the keys can not be found. */
263263-char *crypt_smime_findkeys (ADDRESS *adrlist);
264264+ message. It returns NULL if any of the keys can not be found.
265265+ If oppenc_mode is true, only keys that can be determined without
266266+ prompting will be used. */
267267+char *crypt_smime_findkeys (ADDRESS *adrlist, int oppenc_mode);
264268265269/* fixme: Needs documentation. */
266270BODY *crypt_smime_sign_message (BODY *a);
+3-1
pgp.c
···1182118211831183/* This routine attempts to find the keyids of the recipients of a message.
11841184 * It returns NULL if any of the keys can not be found.
11851185+ * If oppenc_mode is true, only keys that can be determined without
11861186+ * prompting will be used.
11851187 */
11861186-char *pgp_findKeys (ADDRESS *adrlist)
11881188+char *pgp_findKeys (ADDRESS *adrlist, int oppenc_mode)
11871189{
11881190 char *keyID, *keylist = NULL;
11891191 size_t keylist_size = 0;
···729729730730/* This routine attempts to find the keyids of the recipients of a message.
731731 * It returns NULL if any of the keys can not be found.
732732+ * If oppenc_mode is true, only keys that can be determined without
733733+ * prompting will be used.
732734 */
733735734734-char *smime_findKeys (ADDRESS *adrlist)
736736+char *smime_findKeys (ADDRESS *adrlist, int oppenc_mode)
735737{
736738 char *keyID, *keylist = NULL;
737739 size_t keylist_size = 0;