Since changeset
2fd6f99b allows nested encryption handling, there is
no need to deal with the nesting directly. Instead, just recursive as
with other nested handling.
Co-authored-by: Richard Russon <rich@flatcap.org>
goto decrypt_failed;
}
- /* S/MIME nesting */
- if ((mutt_is_application_smime(new_body) & SMIME_OPAQUE) == SMIME_OPAQUE)
- {
- struct Body *outer_new_body = new_body;
- FILE *outer_fp = new_fp;
-
- new_body = NULL;
- new_fp = NULL;
-
- secured = !crypt_smime_decrypt_mime(outer_fp, &new_fp, outer_new_body, &new_body);
-
- mutt_body_free(&outer_new_body);
- mutt_file_fclose(&outer_fp);
- }
-
if (secured && (type & ENCRYPT))
e->security |= SMIME_ENCRYPT;
}