summaryrefslogtreecommitdiff
path: root/src/export.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-02-16 20:07:03 +0000
committerWerner Koch <wk@gnupg.org>2010-02-16 20:07:03 +0000
commit2281024d4cb29c9c6742f7e9fbb031fe97f076c0 (patch)
tree181a5b9e1c4d936f724ab487304d477bf65bd131 /src/export.c
parent9fb8b16f886fde518fb7f073edcd12c838126112 (diff)
downloadgpgme-2281024d4cb29c9c6742f7e9fbb031fe97f076c0.tar.gz
Add option GPGME_EXPORT_MODE_MINIMAL
Diffstat (limited to 'src/export.c')
-rw-r--r--src/export.c13
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))