now using gpgme_recipients_add_name instead of gpgme_recipients_add_name_with_validity, see Werner's comment to bug #950 as of Fri, Mar 22 2002 17.15.26
This commit is contained in:
parent
d31ded8699
commit
02a9610df2
@ -1277,9 +1277,9 @@ bool encryptMessage( const char* cleartext,
|
|||||||
/*
|
/*
|
||||||
if( GPGMEPLUG_PROTOCOL == GPGME_PROTOCOL_CMS )
|
if( GPGMEPLUG_PROTOCOL == GPGME_PROTOCOL_CMS )
|
||||||
{
|
{
|
||||||
gpgme_recipients_add_name_with_validity (rset,
|
gpgme_recipients_add_name (rset,
|
||||||
"/CN=test cert 1,OU=Aegypten Project,O=g10 Code GmbH,L=Düsseldorf,C=DE",
|
"/CN=test cert 1,OU=Aegypten Project,O=g10 Code GmbH,L=Düsseldorf,C=DE" );
|
||||||
GPGME_VALIDITY_FULL );
|
|
||||||
fputs( "\nGPGSMPLUG encryptMessage() using test key of Aegypten Project\n", stderr );
|
fputs( "\nGPGSMPLUG encryptMessage() using test key of Aegypten Project\n", stderr );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1288,10 +1288,7 @@ bool encryptMessage( const char* cleartext,
|
|||||||
const char* p = certificate;
|
const char* p = certificate;
|
||||||
char* tok;
|
char* tok;
|
||||||
while( (tok = nextAddress( &p ) ) != 0 ) {
|
while( (tok = nextAddress( &p ) ) != 0 ) {
|
||||||
if( GPGMEPLUG_PROTOCOL == GPGME_PROTOCOL_CMS )
|
gpgme_recipients_add_name (rset, tok );
|
||||||
gpgme_recipients_add_name_with_validity (rset, tok, GPGME_VALIDITY_FULL );
|
|
||||||
else
|
|
||||||
gpgme_recipients_add_name (rset, tok);
|
|
||||||
fprintf( stderr, "\nGPGMEPLUG encryptMessage() using addressee %s\n", tok );
|
fprintf( stderr, "\nGPGMEPLUG encryptMessage() using addressee %s\n", tok );
|
||||||
free(tok);
|
free(tok);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user