diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-09-27 09:08:42 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-09-27 09:08:42 +0000 |
commit | 0bafb355e5fa5f9407a3eec24ae886795431cd51 (patch) | |
tree | d0cc871f9793b77ee5a8387abb56560f68380156 | |
parent | f358a633fb5df008b6d2bb3141fe71d074a6a61c (diff) |
src/rfc2015.c: check_signature(): set transfer encoding for S/MIME.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@607 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | src/rfc2015.c | 9 |
3 files changed, 18 insertions, 0 deletions
@@ -1,5 +1,9 @@ 2005-09-27 + * src/rfc2015.c: check_signature(): set transfer encoding for S/MIME. + +2005-09-27 + * src/compose.c: display the subject line in the window title bar (thanks to Thomas White). diff --git a/ChangeLog.ja b/ChangeLog.ja index aee93758..c97cc319 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,10 @@ 2005-09-27 + * src/rfc2015.c: check_signature(): S/MIME のために転送 + エンコーディングを指定。 + +2005-09-27 + * src/compose.c: ウィンドウのタイトルバーに件名を表示するようにした (Thomas White さん thanks)。 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", |