aboutsummaryrefslogtreecommitdiff
path: root/src/rfc2015.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rfc2015.c')
-rw-r--r--src/rfc2015.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rfc2015.c b/src/rfc2015.c
index a71f5333..43af6144 100644
--- a/src/rfc2015.c
+++ b/src/rfc2015.c
@@ -258,6 +258,15 @@ static void check_signature(MimeInfo *mimeinfo, MimeInfo *partinfo, FILE *fp)
goto leave;
}
+ if (partinfo->encoding_type == ENC_BASE64) {
+ err = gpgme_data_set_encoding(sig, GPGME_DATA_ENCODING_BASE64);
+ if (err) {
+ debug_print("gpgme_data_set_encoding failed: %s\n",
+ gpgme_strerror (err));
+ goto leave;
+ }
+ }
+
err = gpgme_op_verify(ctx, sig, text, NULL);
if (err) {
debug_print("gpgme_op_verify failed: %s\n",