From 10919d63f7e3ac839a2cf5f2c8901bb705220120 Mon Sep 17 00:00:00 2001 From: Karl-Heinz Zimmer Date: Tue, 18 Dec 2001 20:13:08 +0000 Subject: [PATCH] added debug message to encrypt() function --- trunk/gpgmeplug/gpgmeplug.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/trunk/gpgmeplug/gpgmeplug.c b/trunk/gpgmeplug/gpgmeplug.c index 42b8438..73a4704 100644 --- a/trunk/gpgmeplug/gpgmeplug.c +++ b/trunk/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); -- 2.26.2