updated generator to reflect changes in src/sync_send_actions.c keysync
authorEdouard Tisserant <edouard@pep-project.org>
Fri, 30 Sep 2016 16:07:57 +0200
branchkeysync
changeset 12339d4ae88baa53
parent 1217 767412998e22
child 1234 c03758736a0b
updated generator to reflect changes in src/sync_send_actions.c
src/sync_send_actions.c
sync/gen_actions_skeleton.ysl2
     1.1 --- a/src/sync_send_actions.c	Wed Sep 28 14:35:39 2016 +0200
     1.2 +++ b/src/sync_send_actions.c	Fri Sep 30 16:07:57 2016 +0200
     1.3 @@ -135,13 +135,13 @@
     1.4      status = own_identities_retrieve(session, &kl);
     1.5      if (status != PEP_STATUS_OK)
     1.6          goto error;
     1.7 +    if (IdentityList_from_identity_list(kl, &msg->payload.choice.groupKeys.ownIdentities) == NULL)
     1.8 +        goto enomem;
     1.9 +
    1.10      if (Identity_from_Struct(partner,
    1.11                               &msg->payload.choice.groupKeys.partner) == NULL)
    1.12          goto enomem;
    1.13  
    1.14 -    if (IdentityList_from_identity_list(kl, &msg->payload.choice.groupKeys.ownIdentities) == NULL)
    1.15 -        goto enomem;
    1.16 -
    1.17      bool encrypted = true;
    1.18      status = unicast_msg(session, partner, state, msg, encrypted);
    1.19      if (status != PEP_STATUS_OK)
     2.1 --- a/sync/gen_actions_skeleton.ysl2	Wed Sep 28 14:35:39 2016 +0200
     2.2 +++ b/sync/gen_actions_skeleton.ysl2	Fri Sep 30 16:07:57 2016 +0200
     2.3 @@ -176,6 +176,14 @@
     2.4                  |>> goto enomem;
     2.5              }
     2.6          }
     2.7 +        choose {
     2.8 +            when "$name='GroupKeys' or $name='HandshakeRequest'" {
     2.9 +                |
    2.10 +                |> if (Identity_from_Struct(partner,
    2.11 +                |>                          &msg->payload.choice.«$lname».partner) == NULL)
    2.12 +                |>> goto enomem;
    2.13 +            }
    2.14 +        }
    2.15          ||
    2.16  
    2.17          ||