src/pgp_sequoia.c
branchsync
changeset 3272 4d6c07372e3e
parent 3213 e56efa502f08
child 3332 1bdce679b688
     1.1 --- a/src/pgp_sequoia.c	Wed Feb 06 07:17:26 2019 +0100
     1.2 +++ b/src/pgp_sequoia.c	Wed Feb 06 14:34:19 2019 +0100
     1.3 @@ -1510,13 +1510,14 @@
     1.4          // If private_idents is not NULL and there is any private key
     1.5          // material, it will be saved.
     1.6          status = tpk_save(session, tpk, private_idents);
     1.7 +        if (status == PEP_STATUS_OK)
     1.8 +            status = PEP_KEY_IMPORTED;
     1.9          ERROR_OUT(session, status, "saving TPK");
    1.10 -
    1.11          break;
    1.12      }
    1.13      default:
    1.14 -        ERROR_OUT(session, PEP_STATUS_OK,
    1.15 -                  "Can't import %s", sq_tag_to_string(tag));
    1.16 +        ERROR_OUT(session, PEP_NO_KEY_IMPORTED,
    1.17 +                  "Can't import %s", sq_tag_to_string(tag));        
    1.18          break;
    1.19      }
    1.20