diff options
author | Werner Koch <[email protected]> | 2001-01-11 11:56:34 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-01-11 11:56:34 +0000 |
commit | 96f67a5fdc92571b42febd8db833b5379dedb29d (patch) | |
tree | 1c898cb08a435b7a8b6eafe163e63199322cda8d /gpgme/encrypt.c | |
parent | More changes and and some new functions (diff) | |
download | gpgme-96f67a5fdc92571b42febd8db833b5379dedb29d.tar.gz gpgme-96f67a5fdc92571b42febd8db833b5379dedb29d.zip |
Release 0.1.4gpgme-0-1-4
Diffstat (limited to '')
-rw-r--r-- | gpgme/encrypt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gpgme/encrypt.c b/gpgme/encrypt.c index 30704d23..91520a89 100644 --- a/gpgme/encrypt.c +++ b/gpgme/encrypt.c @@ -70,6 +70,10 @@ gpgme_op_encrypt_start ( GpgmeCtx c, GpgmeRecipients recp, _gpgme_gpg_add_arg ( c->gpg, "--armor" ); for ( i=0; i < c->verbosity; i++ ) _gpgme_gpg_add_arg ( c->gpg, "--verbose" ); + /* If we know that all recipients are valid (full or ultimate trust) + * we can pass suppress further checks */ + if ( _gpgme_recipients_all_valid (recp) ) + _gpgme_gpg_add_arg ( c->gpg, "--always-trust" ); _gpgme_append_gpg_args_from_recipients ( recp, c->gpg ); |