added debug message to encrypt() function

This commit is contained in:
Karl-Heinz Zimmer 2001-12-18 20:13:08 +00:00
parent 247eecaab9
commit a39980abe7

View File

@ -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);