[gmime] Simplified g_mime_multipart_signed_verify()
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Simplified g_mime_multipart_signed_verify()
- Date: Fri, 10 Mar 2017 15:18:34 +0000 (UTC)
commit a622a5007903feacea297985f231a5c3f9633c2a
Author: Jeffrey Stedfast <fejj gnome org>
Date: Fri Mar 10 09:01:09 2017 -0500
Simplified g_mime_multipart_signed_verify()
gmime/gmime-multipart-signed.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/gmime/gmime-multipart-signed.c b/gmime/gmime-multipart-signed.c
index 6253097..3277ae7 100644
--- a/gmime/gmime-multipart-signed.c
+++ b/gmime/gmime-multipart-signed.c
@@ -452,18 +452,8 @@ g_mime_multipart_signed_verify (GMimeMultipartSigned *mps, GMimeVerifyFlags flag
/* get the signature stream */
wrapper = g_mime_part_get_content_object (GMIME_PART (signature));
- /* FIXME: temporary hack for Balsa to support S/MIME,
- * ::verify() should probably take a mime part so it can
- * decode this itself if it needs to. */
- if (!g_ascii_strcasecmp (protocol, "application/pkcs7-signature") ||
- !g_ascii_strcasecmp (protocol, "application/x-pkcs7-signature")) {
- sigstream = g_mime_stream_mem_new ();
- g_mime_data_wrapper_write_to_stream (wrapper, sigstream);
- } else {
- sigstream = g_mime_data_wrapper_get_stream (wrapper);
- g_object_ref (sigstream);
- }
-
+ sigstream = g_mime_stream_mem_new ();
+ g_mime_data_wrapper_write_to_stream (wrapper, sigstream);
g_mime_stream_reset (sigstream);
/* verify the signature */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]