summaryrefslogtreecommitdiffstats
path: root/mutt_crypt.h
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 /mutt_crypt.h
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 'mutt_crypt.h')
-rw-r--r--mutt_crypt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mutt_crypt.h b/mutt_crypt.h
index ae33c64e..c4c9648f 100644
--- a/mutt_crypt.h
+++ b/mutt_crypt.h
@@ -121,7 +121,7 @@ int mutt_is_malformed_multipart_pgp_encrypted (BODY *b);
int mutt_is_multipart_signed (BODY *);
-int mutt_is_application_pgp (BODY *);
+int mutt_is_application_pgp (const BODY *);
int mutt_is_application_smime (BODY *);