[gmime] Fixed autocrypt unit tests; can't sign using a NULL userid



commit 3a084d512719f0fefce9bc42e1d13e4d7d26c577
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date:   Wed Dec 13 07:13:20 2017 -0500

    Fixed autocrypt unit tests; can't sign using a NULL userid

 gmime/gmime-gpgme-utils.c |    2 --
 tests/test-autocrypt.c    |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gmime/gmime-gpgme-utils.c b/gmime/gmime-gpgme-utils.c
index a46778a..8b814b3 100644
--- a/gmime/gmime-gpgme-utils.c
+++ b/gmime/gmime-gpgme-utils.c
@@ -481,9 +481,7 @@ g_mime_gpgme_encrypt (gpgme_ctx_t ctx, gboolean sign, const char *userid,
        
        /* create an array of recipient keys for GpgMe */
        rcpts = g_new0 (gpgme_key_t, recipients->len + 1);
-       printf ("recipient count = %d\n", recipients->len);
        for (i = 0; i < recipients->len; i++) {
-               printf ("\trecipient = %s\n", recipients->pdata[i]);
                if (!(key = g_mime_gpgme_get_key_by_name (ctx, recipients->pdata[i], FALSE, err))) {
                        g_mime_gpgme_keylist_free (rcpts);
                        return -1;
diff --git a/tests/test-autocrypt.c b/tests/test-autocrypt.c
index 26f4493..517b621 100644
--- a/tests/test-autocrypt.c
+++ b/tests/test-autocrypt.c
@@ -729,7 +729,7 @@ test_ah_injection (void)
                                        }
                                }
                                
-                               encrypted = g_mime_multipart_encrypted_encrypt (ctx, mainpart, TRUE, NULL,
+                               encrypted = g_mime_multipart_encrypted_encrypt (ctx, mainpart, FALSE, NULL,
                                                                                GMIME_ENCRYPT_ALWAYS_TRUST,
                                                                                recip, &err);
                                if (!encrypted) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]