diff options
author | Eduardo Chappa <chappa@washington.edu> | 2015-12-05 02:14:13 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2015-12-05 02:14:13 -0700 |
commit | c77ba26762d2f2fc9a978420ecd90cfafd50269e (patch) | |
tree | d6b5b0af730de62ba326e3c7b677d8d502d44a97 /alpine/mailcmd.c | |
parent | 01170cfd3d5b6e5dfdc11c75f6e6740e8f938109 (diff) | |
download | alpine-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.c | 10 |
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) { |