ENGINE-27: PEP_KEY_BLACKLISTED should no longer cause failures for incoming messages. ENGINE-27
authorKrista Grothoff <krista@pep-project.org>
Sat, 24 Sep 2016 18:28:21 +0200
branchENGINE-27
changeset 11863b9e4b2666d4
parent 1185 4b01328f3cf2
child 1188 cfe67b49b72b
ENGINE-27: PEP_KEY_BLACKLISTED should no longer cause failures for incoming messages.
src/message_api.c
     1.1 --- a/src/message_api.c	Sat Sep 24 18:09:18 2016 +0200
     1.2 +++ b/src/message_api.c	Sat Sep 24 18:28:21 2016 +0200
     1.3 @@ -1326,7 +1326,7 @@
     1.4      PEP_STATUS status;
     1.5      if (src->from && src->from->address) {
     1.6          status = update_identity(session, src->from);
     1.7 -        if (status == PEP_STATUS_OK
     1.8 +        if ((status == PEP_STATUS_OK || status == PEP_KEY_BLACKLISTED)
     1.9                  && is_a_pEpmessage(src)
    1.10                  && src->from->comm_type >= PEP_ct_OpenPGP_unconfirmed
    1.11                  && src->from->comm_type != PEP_ct_pEp_unconfirmed
    1.12 @@ -1335,6 +1335,8 @@
    1.13              src->from->comm_type |= PEP_ct_pEp_unconfirmed;
    1.14              status = update_identity(session, src->from);
    1.15          }
    1.16 +        if (status == PEP_KEY_BLACKLISTED)
    1.17 +            status = PEP_STATUS_OK;
    1.18          return status;
    1.19      }
    1.20      return PEP_ILLEGAL_VALUE;