[git] GpgOL - branch, nomapi, updated. gpgol-1.4.0-52-g5d47b7b

by Andre Heinecke cvs at cvs.gnupg.org
Thu Sep 22 16:19:24 CEST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG extension for MS Outlook".

The branch, nomapi has been updated
       via  5d47b7be70199f6c40040b38ac90529808a0d2ed (commit)
       via  5dd67199e2e9d4aaf8edc6def1e11da0f79ea5a4 (commit)
      from  d4f11b756f1811d123759b96815fbd6aac3cb76f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5d47b7be70199f6c40040b38ac90529808a0d2ed
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Thu Sep 22 16:18:46 2016 +0200

    tests: close plain data files and terminate strs
    
    * tests/t-parser.cpp (main): close files and ensure
    read strings end with 0.

diff --git a/tests/t-parser.cpp b/tests/t-parser.cpp
index 0e42b36..5befee3 100644
--- a/tests/t-parser.cpp
+++ b/tests/t-parser.cpp
@@ -82,6 +82,8 @@ int main()
         }
       ParseController parser (input, test_data[i].type);
 
+      fclose(input);
+
       auto result = parser.parse();
 
       auto decResult = parser.decrypt_result();
@@ -114,13 +116,15 @@ int main()
               exit(1);
             }
           char bodybuf[16000];
-          fread (bodybuf, 1, 16000, expected_body);
+          auto read = fread (bodybuf, 1, 16000, expected_body);
+          bodybuf[read] = '\0';
           if (parser.get_body() != bodybuf)
             {
               fprintf (stderr, "Body was: \n\"%s\"\nExpected:\n\"%s\"\n",
                        parser.get_body().c_str(), bodybuf);
               exit(1);
             }
+          fclose (expected_body);
         }
       if (test_data[i].expected_html_body_file)
         {
@@ -132,13 +136,15 @@ int main()
               exit(1);
             }
           char bodybuf[16000];
-          fread (bodybuf, 1, 16000, expected_html_body);
+          auto read = fread (bodybuf, 1, 16000, expected_html_body);
+          bodybuf[read] = '\0';
           if (parser.get_html_body() != bodybuf)
             {
               fprintf (stderr, "HTML was: \n\"%s\"\nExpected:\n\"%s\"\n",
                        parser.get_html_body().c_str(), bodybuf);
               exit(1);
             }
+          fclose (expected_html_body);
         }
       if (test_data[i].attachment_cnt)
         {

commit 5dd67199e2e9d4aaf8edc6def1e11da0f79ea5a4
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Thu Sep 22 16:18:24 2016 +0200

    tests: Add new test for encrypted+signed
    
    --

diff --git a/tests/data/openpgp-encrypted+signed.mbox b/tests/data/openpgp-encrypted+signed.mbox
new file mode 100644
index 0000000..fbe5ce7
--- /dev/null
+++ b/tests/data/openpgp-encrypted+signed.mbox
@@ -0,0 +1,46 @@
+From test at kolab.org Wed, 08 Sep 2010 17:02:52 +0200
+From: OpenPGP Test <test at kolab.org>
+To: test at kolab.org
+Subject: OpenPGP encrypted
+Date: Wed, 08 Sep 2010 17:02:52 +0200
+User-Agent: KMail/4.6 pre (Linux/2.6.34-rc2-2-default; KDE/4.5.60; x86_64; ; )
+MIME-Version: 1.0
+Content-Type: multipart/encrypted; boundary="nextPart1357031.ppLHckZtsp"; protocol="application/pgp-encrypted"
+Content-Transfer-Encoding: 7Bit
+
+
+--nextPart1357031.ppLHckZtsp
+Content-Type: application/pgp-encrypted
+Content-Disposition: attachment
+
+Version: 1
+--nextPart1357031.ppLHckZtsp
+Content-Type: application/octet-stream
+Content-Disposition: inline; filename="msg.asc"
+
+-----BEGIN PGP MESSAGE-----
+Version: GnuPG v2
+
+hQEMAwzOQ1qnzNo7AQgAkQI925mOOybpzcGcjUE7jmfMVoUvJW6Br9Zx9UEtko5H
+fdmnrrUhFDyhBdwcg2E6AChipNcJjZhdX17lNAO0kI2IoPJAEkX9lyhjoiVEH/M8
+xmJEKFRejYzefx0S8esKyqqtfAmMKfsA5HmKRY8iDmQnI5d/FKhkcqLTJYo7fQyL
+rEEycdr5PU5OJbMtE5+8+kbmG8PywjiCCad68FXakXIEFyWX1A99W/0ScWtqrqDB
+kuQSdxJs4aAZWopxGKxDobt/qVyG6W6+PUnLx3eg80KytcWNxLJRV7WEJMj4OYCU
+JdHrh4J1DTTRbuRmqx9de3fBDFHNNZpJP43UJYJWtoSMAxiZbYU0+6KtAQQAnRxD
+XNwzBSmPk9NG3HYf/RleTAS8/fMp3D973Y3VF5JV72ljWqZO/1o/3RIpD0pl5nSE
+nI0wPyncmPvAgQl5EAKTdYonKLuMCTbQ4eT7vkOdfA/HUxgaoE8ppH/OYXDDiqz/
+2GlNCCHcaQcVWwkHbWWgyhd/VvB7Mt9PVqPgTsHSwQ4BZf/JDwWe3MDAg21Raryf
+dN4ZmWUzd3osDIRyy8H2hZL9vgZ3r0auIP6DMyYrPf3yTj9ApZeBiIpgBvqMwvR/
+8si6r1JaXr48KRCxAkn9fIXe2jMwQE2bk5tYDrTXY868V3DA5iKq1dgXUSn0tzG3
+0x9pjaOFkwxm0wtlpwnhZREJ9/ieIY7hy6p7CDpq4ZGRh8jQta4tWrjxN0wly+Dh
+a9TjzHzgTh9BTh7vjcDLitOQFL5NcCQtK717FQ5Z1DRnkHDVLPoyPnW+5sllOVr9
+UcqNXwrPbrtElFjHULL5Y1pem1+AE6nCAtlvCAc7cil6QDsU508sOXW7BhTWATIU
+tGHg/nIC0qVs24LR3MyYrwvfXL2JOkN/IK/g+0bbs6DMYVYaEOjcjqtidxWuLsE5
+aFEwlUFzcTcSauW+AOKwH+YFihRnlh9+4taaZxGZeutb12D5u8eEk+3nyVcsdogY
+k/nT6ElN8i/Z2vgcxL6ABvB+g/bZmp/eCJphDNYc00lP8NMC4EEJvTZL438ThJ3j
+wz0Qo4PlV0/OMXYxP2iZup2/rCe+pkmc9Gyz3Mkal4/9bBtIgP9cWBR7JZLMrK50
+KO4+NtrZYEY4JXRJlAo=
+=1lYB
+-----END PGP MESSAGE-----
+
+--nextPart1357031.ppLHckZtsp--
diff --git a/tests/data/openpgp-encrypted+signed.plain b/tests/data/openpgp-encrypted+signed.plain
new file mode 100644
index 0000000..7faf7d0
--- /dev/null
+++ b/tests/data/openpgp-encrypted+signed.plain
@@ -0,0 +1 @@
+encrypted message text
\ No newline at end of file
diff --git a/tests/t-parser.cpp b/tests/t-parser.cpp
index 4548058..0e42b36 100644
--- a/tests/t-parser.cpp
+++ b/tests/t-parser.cpp
@@ -54,6 +54,13 @@ struct
     NULL,
     0,
     "iso-8859-1"},
+  { DATADIR "/openpgp-encrypted+signed.mbox",
+    MSGTYPE_GPGOL_MULTIPART_SIGNED,
+    DATADIR "/openpgp-encrypted+signed.plain",
+    NULL,
+    NULL,
+    0,
+    "us-ascii"},
   { NULL, MSGTYPE_UNKNOWN, NULL, NULL, NULL, 0, NULL }
 };
 

-----------------------------------------------------------------------

Summary of changes:
 tests/data/openpgp-encrypted+signed.mbox           | 46 ++++++++++++++++++++++
 ...rypted.plain => openpgp-encrypted+signed.plain} |  0
 tests/t-parser.cpp                                 | 17 +++++++-
 3 files changed, 61 insertions(+), 2 deletions(-)
 create mode 100644 tests/data/openpgp-encrypted+signed.mbox
 copy tests/data/{openpgp-encrypted.plain => openpgp-encrypted+signed.plain} (100%)


hooks/post-receive
-- 
GnuPG extension for MS Outlook
http://git.gnupg.org




More information about the Gnupg-commits mailing list