ENGINE-429: ignore unencrypted_subject flag for messages between pEp users.
authorKrista Bennett <krista@pep-project.org>
Wed, 25 Apr 2018 08:57:55 +0200
changeset 2629211719bc9cf7
parent 2618 3cc1716b444e
child 2630 5f5f392090b8
ENGINE-429: ignore unencrypted_subject flag for messages between pEp users.
src/message_api.c
     1.1 --- a/src/message_api.c	Fri Apr 20 15:08:53 2018 +0200
     1.2 +++ b/src/message_api.c	Wed Apr 25 08:57:55 2018 +0200
     1.3 @@ -1731,7 +1731,7 @@
     1.4      else {
     1.5          // FIXME - we need to deal with transport types (via flag)
     1.6          if ((max_comm_type | PEP_ct_confirmed) == PEP_ct_pEp) {
     1.7 -            _src = wrap_message_as_attachment(NULL, src, session->unencrypted_subject);
     1.8 +            _src = wrap_message_as_attachment(NULL, src, false);
     1.9              if (!_src)
    1.10                  goto pep_error;
    1.11          }
    1.12 @@ -2066,7 +2066,7 @@
    1.13      if (!(flags & PEP_encrypt_flag_force_no_attached_key))
    1.14          _attach_key(session, target_fpr, src);
    1.15  
    1.16 -    _src = wrap_message_as_attachment(NULL, src, session->unencrypted_subject);
    1.17 +    _src = wrap_message_as_attachment(NULL, src, false);
    1.18      if (!_src)
    1.19          goto pep_error;
    1.20