crypt_opportunistic_encrypt (msg);
redraw_crypt_lines (msg);
}
- msg->security = crypt_pgp_send_menu (msg, &menu->redraw);
+ msg->security = crypt_pgp_send_menu (msg);
redraw_crypt_lines (msg);
mutt_message_hook (NULL, msg, MUTT_SEND2HOOK);
break;
crypt_opportunistic_encrypt (msg);
redraw_crypt_lines (msg);
}
- msg->security = crypt_smime_send_menu(msg, &menu->redraw);
+ msg->security = crypt_smime_send_menu(msg);
redraw_crypt_lines (msg);
mutt_message_hook (NULL, msg, MUTT_SEND2HOOK);
break;
init_smime ();
}
-static int gpgme_send_menu (HEADER *msg, int *redraw, int is_smime)
+static int gpgme_send_menu (HEADER *msg, int is_smime)
{
crypt_key_t *p;
char input_signas[SHORT_STRING];
msg->security |= SIGN;
}
- *redraw = REDRAW_FULL;
break;
case 'b': /* (b)oth */
return (msg->security);
}
-int pgp_gpgme_send_menu (HEADER *msg, int *redraw)
+int pgp_gpgme_send_menu (HEADER *msg)
{
- return gpgme_send_menu (msg, redraw, 0);
+ return gpgme_send_menu (msg, 0);
}
-int smime_gpgme_send_menu (HEADER *msg, int *redraw)
+int smime_gpgme_send_menu (HEADER *msg)
{
- return gpgme_send_menu (msg, redraw, 1);
+ return gpgme_send_menu (msg, 1);
}
static int verify_sender (HEADER *h, gpgme_protocol_t protocol)
int pgp_gpgme_verify_one (BODY *sigbdy, STATE *s, const char *tempfile);
int smime_gpgme_verify_one (BODY *sigbdy, STATE *s, const char *tempfile);
-int pgp_gpgme_send_menu (HEADER *msg, int *redraw);
-int smime_gpgme_send_menu (HEADER *msg, int *redraw);
+int pgp_gpgme_send_menu (HEADER *msg);
+int smime_gpgme_send_menu (HEADER *msg);
int smime_gpgme_verify_sender (HEADER *h);
return pgp_verify_one (sigbdy, s, tempf);
}
-static int crypt_mod_pgp_send_menu (HEADER *msg, int *redraw)
+static int crypt_mod_pgp_send_menu (HEADER *msg)
{
- return pgp_send_menu (msg, redraw);
+ return pgp_send_menu (msg);
}
static BODY *crypt_mod_pgp_encrypt_message (BODY *a, char *keylist, int sign)
return pgp_gpgme_verify_one (sigbdy, s, tempf);
}
-static int crypt_mod_pgp_send_menu (HEADER *msg, int *redraw)
+static int crypt_mod_pgp_send_menu (HEADER *msg)
{
- return pgp_gpgme_send_menu (msg, redraw);
+ return pgp_gpgme_send_menu (msg);
}
static BODY *crypt_mod_pgp_encrypt_message (BODY *a, char *keylist, int sign)
return smime_verify_one (sigbdy, s, tempf);
}
-static int crypt_mod_smime_send_menu (HEADER *msg, int *redraw)
+static int crypt_mod_smime_send_menu (HEADER *msg)
{
- return smime_send_menu (msg, redraw);
+ return smime_send_menu (msg);
}
static void crypt_mod_smime_getkeys (ENVELOPE *env)
return smime_gpgme_verify_one (sigbdy, s, tempf);
}
-static int crypt_mod_smime_send_menu (HEADER *msg, int *redraw)
+static int crypt_mod_smime_send_menu (HEADER *msg)
{
- return smime_gpgme_send_menu (msg, redraw);
+ return smime_gpgme_send_menu (msg);
}
static BODY *crypt_mod_smime_build_smime_entity (BODY *a, char *certlist)
typedef void (*crypt_func_pgp_extract_keys_from_attachment_list_t)
(FILE *fp, int tag, BODY *top);
-typedef int (*crypt_func_send_menu_t) (HEADER *msg, int *redraw);
+typedef int (*crypt_func_send_menu_t) (HEADER *msg);
/* (SMIME) */
typedef void (*crypt_func_smime_getkeys_t) (ENVELOPE *env);
}
-int crypt_pgp_send_menu (HEADER *msg, int *redraw)
+int crypt_pgp_send_menu (HEADER *msg)
{
if (CRYPT_MOD_CALL_CHECK (PGP, send_menu))
- return (CRYPT_MOD_CALL (PGP, send_menu)) (msg, redraw);
+ return (CRYPT_MOD_CALL (PGP, send_menu)) (msg);
return 0;
}
return -1;
}
-int crypt_smime_send_menu (HEADER *msg, int *redraw)
+int crypt_smime_send_menu (HEADER *msg)
{
if (CRYPT_MOD_CALL_CHECK (SMIME, send_menu))
- return (CRYPT_MOD_CALL (SMIME, send_menu)) (msg, redraw);
+ return (CRYPT_MOD_CALL (SMIME, send_menu)) (msg);
return 0;
}
/* Invoke the PGP command to import a key. */
void crypt_pgp_invoke_import (const char *fname);
-int crypt_pgp_send_menu (HEADER *msg, int *redraw);
+int crypt_pgp_send_menu (HEADER *msg);
/* fixme: needs documentation */
int crypt_pgp_verify_one (BODY *sigbdy, STATE *s, const char *tempf);
/* Add a certificate and update index file (externally). */
void crypt_smime_invoke_import (char *infile, char *mailbox);
-int crypt_smime_send_menu (HEADER *msg, int *redraw);
+int crypt_smime_send_menu (HEADER *msg);
void crypt_smime_set_sender (const char *sender);
return b;
}
-int pgp_send_menu (HEADER *msg, int *redraw)
+int pgp_send_menu (HEADER *msg)
{
pgp_key_t p;
char input_signas[SHORT_STRING];
crypt_pgp_void_passphrase (); /* probably need a different passphrase */
}
- *redraw = REDRAW_FULL;
break;
case 'b': /* (b)oth */
BODY *pgp_encrypt_message (BODY *, char *, int);
BODY *pgp_sign_message (BODY *);
-int pgp_send_menu (HEADER *msg, int *redraw);
+int pgp_send_menu (HEADER *msg);
#endif /* CRYPT_BACKEND_CLASSIC_PGP */
return smime_handle_entity (m, s, NULL) ? 0 : -1;
}
-int smime_send_menu (HEADER *msg, int *redraw)
+int smime_send_menu (HEADER *msg)
{
smime_key_t *key;
char *prompt, *letters, *choices;
case 'S': /* (s)ign in oppenc mode */
if(!SmimeDefaultKey)
{
- *redraw = REDRAW_FULL;
-
if ((key = smime_ask_for_key (_("Sign as: "), KEYFLAG_CANSIGN, 0)))
{
mutt_str_replace (&SmimeDefaultKey, key->hash);
crypt_smime_void_passphrase ();
}
- *redraw = REDRAW_FULL;
break;
case 'b': /* (b)oth */
void smime_invoke_import (char *, char *);
-int smime_send_menu (HEADER *msg, int *redraw);
+int smime_send_menu (HEADER *msg);
#endif