diff options
author | Werner Koch <[email protected]> | 2010-02-16 20:07:03 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-02-16 20:07:03 +0000 |
commit | 2281024d4cb29c9c6742f7e9fbb031fe97f076c0 (patch) | |
tree | 181a5b9e1c4d936f724ab487304d477bf65bd131 /src/export.c | |
parent | Convert C++ comments to C90 comments. (diff) | |
download | gpgme-2281024d4cb29c9c6742f7e9fbb031fe97f076c0.tar.gz gpgme-2281024d4cb29c9c6742f7e9fbb031fe97f076c0.zip |
Add option GPGME_EXPORT_MODE_MINIMAL
Diffstat (limited to 'src/export.c')
-rw-r--r-- | src/export.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/export.c b/src/export.c index 16d9612f..59463eff 100644 --- a/src/export.c +++ b/src/export.c @@ -1,6 +1,6 @@ /* export.c - Export a key. Copyright (C) 2000 Werner Koch (dd9jn) - Copyright (C) 2001, 2002, 2003, 2004 g10 Code GmbH + Copyright (C) 2001, 2002, 2003, 2004, 2010 g10 Code GmbH This file is part of GPGME. @@ -15,9 +15,8 @@ Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public - License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + License along with this program; if not, see <http://www.gnu.org/licenses/>. + */ #if HAVE_CONFIG_H #include <config.h> @@ -44,7 +43,8 @@ export_start (gpgme_ctx_t ctx, int synchronous, const char *pattern, { gpgme_error_t err; - if ((mode & ~(GPGME_EXPORT_MODE_EXTERN))) + if ((mode & ~(GPGME_EXPORT_MODE_EXTERN + |GPGME_EXPORT_MODE_MINIMAL))) return gpg_error (GPG_ERR_INV_VALUE); /* Invalid flags in MODE. */ @@ -107,7 +107,8 @@ export_ext_start (gpgme_ctx_t ctx, int synchronous, const char *pattern[], { gpgme_error_t err; - if ((mode & ~(GPGME_EXPORT_MODE_EXTERN))) + if ((mode & ~(GPGME_EXPORT_MODE_EXTERN + |GPGME_EXPORT_MODE_MINIMAL))) return gpg_error (GPG_ERR_INV_VALUE); /* Invalid flags in MODE. */ if ((mode & GPGME_EXPORT_MODE_EXTERN)) |