src/baseprotocol.c
branchsync
changeset 3818 0b34a967ab39
parent 3817 c2cb0ab6040a
child 3831 44e274f79ec1
     1.1 --- a/src/baseprotocol.c	Thu Jun 06 22:20:55 2019 +0200
     1.2 +++ b/src/baseprotocol.c	Thu Jun 06 22:34:31 2019 +0200
     1.3 @@ -22,7 +22,7 @@
     1.4          return PEP_ILLEGAL_VALUE;
     1.5  
     1.6      bloblist_t *bl = bloblist_add(msg->attachments, payload, size,
     1.7 -            "application/pEp-sync", "ignore_this_attachment.pEp");
     1.8 +            "application/pEp.sync", "ignore_this_attachment.pEp");
     1.9      if (bl == NULL)
    1.10          goto enomem;
    1.11      else if (!msg->attachments) {
    1.12 @@ -39,7 +39,7 @@
    1.13          assert(sign && sign_size);
    1.14  
    1.15          bl = bloblist_add(bl, sign, sign_size,
    1.16 -                "application/pEp-sign", "electronic_signature.asc");
    1.17 +                "application/pEp.sign", "electronic_signature.asc");
    1.18          if (!bl)
    1.19              goto enomem;
    1.20      }
    1.21 @@ -136,7 +136,7 @@
    1.22      stringlist_t *keylist = NULL;
    1.23  
    1.24      for (bloblist_t *bl = msg->attachments; bl ; bl = bl->next) {
    1.25 -        if (bl->mime_type && strcasecmp(bl->mime_type, "application/pEp-sync") == 0) {
    1.26 +        if (bl->mime_type && strcasecmp(bl->mime_type, "application/pEp.sync") == 0) {
    1.27              if (!_payload) {
    1.28                  _payload = bl->value;
    1.29                  _payload_size = bl->size;
    1.30 @@ -146,7 +146,7 @@
    1.31                  goto the_end;
    1.32              }
    1.33          }
    1.34 -        else if (bl->mime_type && strcasecmp(bl->mime_type, "application/pEp-sign") == 0) {
    1.35 +        else if (bl->mime_type && strcasecmp(bl->mime_type, "application/pEp.sign") == 0) {
    1.36              if (!_sign) {
    1.37                  _sign = bl->value;
    1.38                  _sign_size = bl->size;