diff options
author | Karl-Heinz Zimmer <[email protected]> | 2002-04-02 11:52:55 +0000 |
---|---|---|
committer | Karl-Heinz Zimmer <[email protected]> | 2002-04-02 11:52:55 +0000 |
commit | 02a9610df24d6275350b6de74c39519051bef5e9 (patch) | |
tree | d41d97b343c1a081076ecaabb0a7995db798b9c9 /gpgmeplug/gpgmeplug.c | |
parent | *** empty log message *** (diff) | |
download | gpgme-02a9610df24d6275350b6de74c39519051bef5e9.tar.gz gpgme-02a9610df24d6275350b6de74c39519051bef5e9.zip |
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
Diffstat (limited to 'gpgmeplug/gpgmeplug.c')
-rw-r--r-- | gpgmeplug/gpgmeplug.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c index a4970ca9..74fb3c26 100644 --- a/gpgmeplug/gpgmeplug.c +++ b/gpgmeplug/gpgmeplug.c @@ -1277,9 +1277,9 @@ bool encryptMessage( const char* cleartext, /* if( GPGMEPLUG_PROTOCOL == GPGME_PROTOCOL_CMS ) { - gpgme_recipients_add_name_with_validity (rset, - "/CN=test cert 1,OU=Aegypten Project,O=g10 Code GmbH,L=Düsseldorf,C=DE", - GPGME_VALIDITY_FULL ); + gpgme_recipients_add_name (rset, + "/CN=test cert 1,OU=Aegypten Project,O=g10 Code GmbH,L=Düsseldorf,C=DE" ); + fputs( "\nGPGSMPLUG encryptMessage() using test key of Aegypten Project\n", stderr ); } else @@ -1288,10 +1288,7 @@ bool encryptMessage( const char* cleartext, const char* p = certificate; char* tok; while( (tok = nextAddress( &p ) ) != 0 ) { - if( GPGMEPLUG_PROTOCOL == GPGME_PROTOCOL_CMS ) - gpgme_recipients_add_name_with_validity (rset, tok, GPGME_VALIDITY_FULL ); - else - gpgme_recipients_add_name (rset, tok); + gpgme_recipients_add_name (rset, tok ); fprintf( stderr, "\nGPGMEPLUG encryptMessage() using addressee %s\n", tok ); free(tok); } |