IOS-1484 fixes: PEP_KEY_IMPORTED is considered an error (in tests) IOS-1483
authorbuff <andreas@pep-project.org>
Tue, 18 Jun 2019 14:02:03 +0200
branchIOS-1483
changeset 10319ba8c97b78ea
parent 1030 a6cff3b2cc82
child 1032 2615ae761b34
IOS-1484 fixes: PEP_KEY_IMPORTED is considered an error (in tests)
pEpObjCAdapter/NSError+PEP.m
     1.1 --- a/pEpObjCAdapter/NSError+PEP.m	Tue Jun 18 11:29:35 2019 +0200
     1.2 +++ b/pEpObjCAdapter/NSError+PEP.m	Tue Jun 18 14:02:03 2019 +0200
     1.3 @@ -18,11 +18,12 @@
     1.4  + (NSError * _Nonnull)errorWithPEPStatusInternal:(PEP_STATUS)status
     1.5                                          userInfo:(NSDictionary<NSErrorUserInfoKey, id> * _Nonnull)dict
     1.6  {
     1.7 -    switch (status) {
     1.8 +    switch (status) { //BUFF: missing state PEPStatusKeyImported
     1.9          case PEP_STATUS_OK:
    1.10          case PEP_DECRYPTED:
    1.11          case PEP_UNENCRYPTED:
    1.12          case PEP_DECRYPT_NO_KEY:
    1.13 +        case PEP_KEY_IMPORTED:
    1.14          case PEP_KEY_IMPORT_STATUS_UNKNOWN:
    1.15              return nil;
    1.16              break;