summaryrefslogtreecommitdiffstats
path: root/crypt.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-09-24 19:12:35 -0700
committerKevin McCarthy <kevin@8t8.us>2021-09-24 19:38:17 -0700
commit2077f72eb5776388a514a731bc453f29016a3dfc (patch)
tree0b0335be3fe15015a5e3e07c0487acaa1bcaf835 /crypt.c
parentd0d40a33f1400269251d06c56ef331482c6b99be (diff)
Assert mutt_decode_attachment() doesn't modify body fields.
Some old smime (and other parts of the code) have out of date comments asserting mutt_decode_attachment() modifies the body length, offset, and type fields. Add a const modifier to the parameter and called functions to assert this is not the case.
Diffstat (limited to 'crypt.c')
-rw-r--r--crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypt.c b/crypt.c
index b86e4dfe..a9f7089d 100644
--- a/crypt.c
+++ b/crypt.c
@@ -515,7 +515,7 @@ int mutt_is_malformed_multipart_pgp_encrypted (BODY *b)
}
-int mutt_is_application_pgp (BODY *m)
+int mutt_is_application_pgp (const BODY *m)
{
int t = 0;
char *p;