corrected specification of Aegypten test key in encrypt() function
This commit is contained in:
parent
6d7f9eb4ff
commit
44023ddfb2
@ -928,20 +928,24 @@ bool encryptMessage( const char* cleartext,
|
|||||||
gpgme_recipients_new (&rset);
|
gpgme_recipients_new (&rset);
|
||||||
|
|
||||||
|
|
||||||
if( GPGMEPLUG_PROTOCOL == GPGME_PROTOCOL_CMS )
|
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");
|
gpgme_recipients_add_name_with_validity (rset,
|
||||||
fputs( "GPGSMPLUG encryptMessage() using test key of Aegypten Project\n", stderr );
|
"/CN=test cert 1,OU=Aegypten Project,O=g10 Code GmbH,L=Düsseldorf,C=DE",
|
||||||
}
|
GPGME_VALIDITY_FULL );
|
||||||
else
|
fputs( "\nGPGSMPLUG encryptMessage() using test key of Aegypten Project\n", stderr );
|
||||||
{
|
}
|
||||||
gpgme_recipients_add_name (rset, addressee);
|
else
|
||||||
fprintf( stderr, "GPGMEPLUG encryptMessage() using addressee %s\n", addressee );
|
{
|
||||||
}
|
gpgme_recipients_add_name (rset, addressee);
|
||||||
fflush( stderr );
|
fprintf( stderr, "\nGPGMEPLUG encryptMessage() using addressee %s\n", addressee );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
err = gpgme_op_encrypt (ctx, rset, gPlaintext, gCiphertext );
|
err = gpgme_op_encrypt (ctx, rset, gPlaintext, gCiphertext );
|
||||||
|
if( err )
|
||||||
|
fprintf( stderr, "gpgme_op_encrypt() returned this error code: %i\n\n", err );
|
||||||
|
|
||||||
gpgme_recipients_release (rset);
|
gpgme_recipients_release (rset);
|
||||||
gpgme_data_release (gPlaintext);
|
gpgme_data_release (gPlaintext);
|
||||||
|
|
||||||
@ -967,6 +971,8 @@ fflush( stderr );
|
|||||||
|
|
||||||
gpgme_release (ctx);
|
gpgme_release (ctx);
|
||||||
|
|
||||||
|
fflush( stderr );
|
||||||
|
|
||||||
return bOk;
|
return bOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user