summaryrefslogtreecommitdiffstats
path: root/cryptglue.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2015-03-30 15:45:49 -0700
committerKevin McCarthy <kevin@8t8.us>2015-03-30 15:45:49 -0700
commit4615a829c7dd4a2ba64683bae4c058b098f5d30a (patch)
tree710e198c202406f52333b0bc78d537be16924670 /cryptglue.c
parentecbba07c51d92c7af5b97ff49b50267ef00074d6 (diff)
Introduce an oppenc_mode parameter
It's added to the parameter lists through the call stack down to the find_keys calls. No functionality is implemented yet. This patch is separated just to keep other patches more readable.
Diffstat (limited to 'cryptglue.c')
-rw-r--r--cryptglue.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/cryptglue.c b/cryptglue.c
index fd1c296e..a54ea076 100644
--- a/cryptglue.c
+++ b/cryptglue.c
@@ -199,11 +199,13 @@ BODY *crypt_pgp_make_key_attachment (char *tempf)
}
/* This routine attempts to find the keyids of the recipients of a
- message. It returns NULL if any of the keys can not be found. */
-char *crypt_pgp_findkeys (ADDRESS *adrlist)
+ message. It returns NULL if any of the keys can not be found.
+ If oppenc_mode is true, only keys that can be determined without
+ prompting will be used. */
+char *crypt_pgp_findkeys (ADDRESS *adrlist, int oppenc_mode)
{
if (CRYPT_MOD_CALL_CHECK (PGP, findkeys))
- return (CRYPT_MOD_CALL (PGP, findkeys)) (adrlist);
+ return (CRYPT_MOD_CALL (PGP, findkeys)) (adrlist, oppenc_mode);
return NULL;
}
@@ -333,11 +335,13 @@ int crypt_smime_verify_sender(HEADER *h)
}
/* This routine attempts to find the keyids of the recipients of a
- message. It returns NULL if any of the keys can not be found. */
-char *crypt_smime_findkeys (ADDRESS *adrlist)
+ message. It returns NULL if any of the keys can not be found.
+ If oppenc_mode is true, only keys that can be determined without
+ prompting will be used. */
+char *crypt_smime_findkeys (ADDRESS *adrlist, int oppenc_mode)
{
if (CRYPT_MOD_CALL_CHECK (SMIME, findkeys))
- return (CRYPT_MOD_CALL (SMIME, findkeys)) (adrlist);
+ return (CRYPT_MOD_CALL (SMIME, findkeys)) (adrlist, oppenc_mode);
return NULL;
}