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
DCO
2012-09-25 19:21:00 +02:00
2015-08-26 10:06:00 +02:00
2015-08-26 10:06:00 +02:00
2008-07-04 15:46:01 +00:00
2016-08-10 16:33:20 +02:00