Ingo Klöcker 305d8668ca core: Detect bad passphrase error on certificate import
* src/import.c (gpgme_op_import_result): Check fpr for NULL.
(parse_error): New.
(import_status_handler): Handle error status line.

* doc/gpgme.texi (gpgme_import_status_t): Mention that fpr can be NULL.

* tests/gpg/t-import.c (check_result): Check fpr for NULL.
* tests/run-threaded.c (delete_impres): Check fpr for NULL.
--

When importing an encrypted certificate a wrong passphrase may be
entered. In this case gpgsm emits a status line with a bad passphrase
error and an "invalid object" error. To make it possible for callers
to handle a wrong passphrase error more gracefully, an import status
with bad passphrase error is added to the import result for each
status line with bad passphrase error.

GnuPG-bug-id: 5713
2021-12-22 15:25:42 +01:00
..
2018-11-08 12:34:27 +07:00
2018-11-08 12:34:27 +07:00
2018-11-08 12:34:27 +07:00
2020-08-14 11:11:23 +02:00
2020-10-29 12:57:10 +01:00
2017-12-08 05:59:11 +01:00
2020-11-03 17:47:44 -08:00
2020-10-29 12:57:10 +01:00
2020-11-03 17:47:44 -08:00
2021-01-08 18:14:33 +01:00
2021-11-25 11:40:59 +01:00