Backed out changeset d833e21a52c1 keysync
authorEdouard Tisserant <edouard@pep-project.org>
Fri, 09 Sep 2016 21:59:47 +0200
branchkeysync
changeset 1155172cc6ca6648
parent 1154 cce44a694981
child 1156 23006f389f2f
Backed out changeset d833e21a52c1
src/message_api.c
src/sync_impl.c
     1.1 --- a/src/message_api.c	Fri Sep 09 19:40:16 2016 +0200
     1.2 +++ b/src/message_api.c	Fri Sep 09 21:59:47 2016 +0200
     1.3 @@ -1675,7 +1675,7 @@
     1.4          decorate_message(msg, *rating, _keylist);
     1.5          if (imported_keys)
     1.6              remove_attached_keys(msg);
     1.7 -        if (*rating >= PEP_rating_unreliable && session->retrieve_next_sync_msg) {
     1.8 +        if (*rating >= PEP_rating_reliable && session->retrieve_next_sync_msg) {
     1.9              status = receive_DeviceState_msg(session, msg, *rating);
    1.10              if (status == PEP_MESSAGE_CONSUMED) {
    1.11                  free_message(msg);
     2.1 --- a/src/sync_impl.c	Fri Sep 09 19:40:16 2016 +0200
     2.2 +++ b/src/sync_impl.c	Fri Sep 09 21:59:47 2016 +0200
     2.3 @@ -81,7 +81,7 @@
     2.4                  switch (msg->payload.present) {
     2.5                      // HandshakeRequest needs encryption
     2.6                      case DeviceGroup_Protocol__payload_PR_handshakeRequest:
     2.7 -                        if (rating < PEP_rating_unreliable) {
     2.8 +                        if (rating < PEP_rating_reliable) {
     2.9                              ASN_STRUCT_FREE(asn_DEF_DeviceGroup_Protocol, msg);
    2.10                              goto skip;
    2.11                          }