summaryrefslogtreecommitdiff
path: root/alpine/mailcmd.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2015-12-05 02:14:13 -0700
committerEduardo Chappa <chappa@washington.edu>2015-12-05 02:14:13 -0700
commitc77ba26762d2f2fc9a978420ecd90cfafd50269e (patch)
treed6b5b0af730de62ba326e3c7b677d8d502d44a97 /alpine/mailcmd.c
parent01170cfd3d5b6e5dfdc11c75f6e6740e8f938109 (diff)
downloadalpine-c77ba26762d2f2fc9a978420ecd90cfafd50269e.tar.xz
* Alpine will ask users if they wish to save S/MIME certificates included
in signatures, when the option "Validate Using Certificate Store Only" is enabled. If the user does not wish to save it, validation will fail.
Diffstat (limited to 'alpine/mailcmd.c')
-rw-r--r--alpine/mailcmd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/alpine/mailcmd.c b/alpine/mailcmd.c
index e134e8dc..36b92d78 100644
--- a/alpine/mailcmd.c
+++ b/alpine/mailcmd.c
@@ -302,6 +302,16 @@ static ESCKEY_S flag_text_opt[] = {
{-1, 0, NULL, NULL}
};
+int
+alpine_smime_confirm_save(char *email)
+{
+ char prompt[128];
+
+ snprintf(prompt, sizeof(prompt), _("Save certificate for <%s>"),
+ email ? email : _("missing address"));
+ return want_to(prompt, 'n', 'x', NO_HELP, WT_NORM) == 'y';
+}
+
int
alpine_get_password(char *prompt, char *pass, size_t len)
{