[gmime] GpgME's OpenCMS ctx does not support passphrase_cb's



commit 59afcdd62389dd70a848a01cbd4daab67c45a66f
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Fri Mar 10 09:01:56 2017 -0500

    GpgME's OpenCMS ctx does not support passphrase_cb's

 gmime/gmime-pkcs7-context.c |    1 -
 tests/test-pkcs7.c          |    4 +++-
 tests/test-smime.c          |    4 +++-
 3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gmime/gmime-pkcs7-context.c b/gmime/gmime-pkcs7-context.c
index d84bbf2..67f2cf5 100644
--- a/gmime/gmime-pkcs7-context.c
+++ b/gmime/gmime-pkcs7-context.c
@@ -738,7 +738,6 @@ g_mime_pkcs7_context_new (void)
                return NULL;
        
        pkcs7 = g_object_newv (GMIME_TYPE_PKCS7_CONTEXT, 0, NULL);
-       gpgme_set_passphrase_cb (ctx, g_mime_gpgme_passphrase_callback, pkcs7);
        gpgme_set_protocol (ctx, GPGME_PROTOCOL_CMS);
        gpgme_set_textmode (ctx, FALSE);
        gpgme_set_armor (ctx, FALSE);
diff --git a/tests/test-pkcs7.c b/tests/test-pkcs7.c
index 59f4724..467dcf7 100644
--- a/tests/test-pkcs7.c
+++ b/tests/test-pkcs7.c
@@ -42,6 +42,7 @@ extern int verbose;
 
 #define v(x) if (verbose > 3) x
 
+#if 0
 static gboolean
 request_passwd (GMimeCryptoContext *ctx, const char *user_id, const char *prompt_ctx, gboolean reprompt, 
GMimeStream *response, GError **err)
 {
@@ -49,6 +50,7 @@ request_passwd (GMimeCryptoContext *ctx, const char *user_id, const char *prompt
        
        return TRUE;
 }
+#endif
 
 static GMimeSignatureStatus
 get_sig_status (GMimeSignatureList *signatures)
@@ -346,7 +348,7 @@ int main (int argc, char **argv)
        testsuite_start ("Pkcs7 crypto context");
        
        ctx = g_mime_pkcs7_context_new ();
-       g_mime_crypto_context_set_request_password (ctx, request_passwd);
+       //g_mime_crypto_context_set_request_password (ctx, request_passwd);
        
        testsuite_check ("GMimePkcs7Context::import");
        try {
diff --git a/tests/test-smime.c b/tests/test-smime.c
index 48e3b49..8dd191c 100644
--- a/tests/test-smime.c
+++ b/tests/test-smime.c
@@ -42,6 +42,7 @@ extern int verbose;
 
 #define v(x) if (verbose > 3) x
 
+#if 0
 static gboolean
 request_passwd (GMimeCryptoContext *ctx, const char *user_id, const char *prompt_ctx, gboolean reprompt, 
GMimeStream *response, GError **err)
 {
@@ -49,6 +50,7 @@ request_passwd (GMimeCryptoContext *ctx, const char *user_id, const char *prompt
        
        return TRUE;
 }
+#endif
 
 static GMimeSignatureStatus
 get_sig_status (GMimeSignatureList *signatures)
@@ -425,7 +427,7 @@ int main (int argc, char *argv[])
        testsuite_start ("S/MIME implementation");
        
        ctx = g_mime_pkcs7_context_new ();
-       g_mime_crypto_context_set_request_password (ctx, request_passwd);
+       //g_mime_crypto_context_set_request_password (ctx, request_passwd);
        
        testsuite_check ("GMimePkcs7Context::import");
        try {


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