aboutsummaryrefslogtreecommitdiffstats
path: root/gpgmeplug/gpgmeplug.c
diff options
context:
space:
mode:
authorKarl-Heinz Zimmer <[email protected]>2001-12-18 20:13:08 +0000
committerKarl-Heinz Zimmer <[email protected]>2001-12-18 20:13:08 +0000
commita39980abe7b0589eb03c0f55782dd31b15ea2b98 (patch)
tree168a47ee49bbf30514de5baca4d8d72d71dc479d /gpgmeplug/gpgmeplug.c
parent2001-12-18 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-a39980abe7b0589eb03c0f55782dd31b15ea2b98.tar.gz
gpgme-a39980abe7b0589eb03c0f55782dd31b15ea2b98.zip
added debug message to encrypt() function
Diffstat (limited to 'gpgmeplug/gpgmeplug.c')
-rw-r--r--gpgmeplug/gpgmeplug.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c
index 42b84384..73a47040 100644
--- a/gpgmeplug/gpgmeplug.c
+++ b/gpgmeplug/gpgmeplug.c
@@ -926,7 +926,20 @@ bool encryptMessage( const char* cleartext,
err = gpgme_data_new ( &gCiphertext );
gpgme_recipients_new (&rset);
+
+
+if( GPGMEPLUG_PROTOCOL == GPGME_PROTOCOL_CMS )
+{
+ gpgme_recipients_add_name (rset, "CN=test cert 1,OU=Aegypten Project,O=g10 Code GmbH,L=Düsseldorf,C=DE");
+fputs( "GPGSMPLUG encryptMessage() using test key of Aegypten Project\n", stderr );
+}
+else
+{
gpgme_recipients_add_name (rset, addressee);
+fprintf( stderr, "GPGMEPLUG encryptMessage() using addressee %s\n", addressee );
+}
+fflush( stderr );
+
err = gpgme_op_encrypt (ctx, rset, gPlaintext, gCiphertext );
gpgme_recipients_release (rset);