From d5d26aecbce26c05e948af6f5f99fd4561497c28 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 27 May 2003 09:00:02 +0000 Subject: [PATCH] 2003-05-27 Marcus Brinkmann * gpgme.h (struct _gpgme_op_import_result): Add skipped_new_keys. * import.c (parse_import_res): Add skipped_new_keys parser. --- gpgme/ChangeLog | 3 +++ gpgme/gpgme.h | 3 +++ gpgme/import.c | 1 + 3 files changed, 7 insertions(+) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 133f970..fb14e56 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,5 +1,8 @@ 2003-05-27 Marcus Brinkmann + * gpgme.h (struct _gpgme_op_import_result): Add skipped_new_keys. + * import.c (parse_import_res): Add skipped_new_keys parser. + * op-support.c (_gpgme_parse_inv_userid): Add missing break statements. * encrypt.c (gpgme_op_encrypt): Use gpgme_error_t instead of int. diff --git a/gpgme/gpgme.h b/gpgme/gpgme.h index 3ed71a6..de41745 100644 --- a/gpgme/gpgme.h +++ b/gpgme/gpgme.h @@ -1240,6 +1240,9 @@ struct _gpgme_op_import_result /* Number of secret keys unchanged. */ int secret_unchanged; + /* Number of new keys skipped. */ + int skipped_new_keys; + /* Number of keys not imported. */ int not_imported; diff --git a/gpgme/import.c b/gpgme/import.c index ea245a3..ba5a65d 100644 --- a/gpgme/import.c +++ b/gpgme/import.c @@ -170,6 +170,7 @@ parse_import_res (char *args, gpgme_import_result_t result) PARSE_NEXT (result->secret_read); PARSE_NEXT (result->secret_imported); PARSE_NEXT (result->secret_unchanged); + PARSE_NEXT (result->skipped_new_keys); PARSE_NEXT (result->not_imported); return 0; -- 2.26.2