standard keysync
authorVolker Birk <vb@pep.foundation>
Sat, 03 Sep 2016 14:15:48 +0200
branchkeysync
changeset 1132acf75ee0d834
parent 1131 ea2fa36e28ea
child 1133 12bff61b08a8
standard
src/baseprotocol.c
src/sync_impl.c
     1.1 --- a/src/baseprotocol.c	Sat Sep 03 08:40:05 2016 +0200
     1.2 +++ b/src/baseprotocol.c	Sat Sep 03 14:15:48 2016 +0200
     1.3 @@ -15,7 +15,7 @@
     1.4          return PEP_ILLEGAL_VALUE;
     1.5  
     1.6      bloblist_t *bl = bloblist_add(msg->attachments, payload, size,
     1.7 -            "application/pEp", "ignore_this_attachment.pEp");
     1.8 +            "application/pEp.sync", "ignore_this_attachment.pEp");
     1.9      if (bl == NULL)
    1.10          goto enomem;
    1.11  
    1.12 @@ -51,7 +51,7 @@
    1.13      if (!msg)
    1.14          goto enomem;
    1.15  
    1.16 -    add_opt_field(msg, "X-pEp-auto-consume", "yes");
    1.17 +    add_opt_field(msg, "pEp-auto-consume", "yes");
    1.18  
    1.19      msg->from = identity_dup(me);
    1.20      if (!msg->from)
     2.1 --- a/src/sync_impl.c	Sat Sep 03 08:40:05 2016 +0200
     2.2 +++ b/src/sync_impl.c	Sat Sep 03 14:15:48 2016 +0200
     2.3 @@ -72,7 +72,7 @@
     2.4      
     2.5      bloblist_t *last = NULL;
     2.6      for (bloblist_t *bl = src->attachments; bl && bl->value; bl = bl->next) {
     2.7 -        if (bl->mime_type && strcasecmp(bl->mime_type, "application/pEp") == 0
     2.8 +        if (bl->mime_type && strcasecmp(bl->mime_type, "application/pEp.sync") == 0
     2.9                  && bl->size) {
    2.10              DeviceGroup_Protocol_t *msg = NULL;
    2.11              uper_decode_complete(NULL, &asn_DEF_DeviceGroup_Protocol, (void **)