Trying transport-encoding of inner message with a different setting for outer message pre-encrypt. This is a mess. ENGINE-308
authorKrista Bennett <krista@pep-project.org>
Tue, 07 Nov 2017 13:50:30 +0100
branchENGINE-308
changeset 2277ce605cb377ef
parent 2276 d6207c0fd201
child 2278 e2ca7c6bec73
Trying transport-encoding of inner message with a different setting for outer message pre-encrypt. This is a mess.
src/message_api.c
     1.1 --- a/src/message_api.c	Tue Nov 07 10:08:30 2017 +0100
     1.2 +++ b/src/message_api.c	Tue Nov 07 13:50:30 2017 +0100
     1.3 @@ -826,7 +826,7 @@
     1.4      }
     1.5              
     1.6      /* Turn message into a MIME-blob */
     1.7 -    status = _mime_encode_message_internal(attachment, false, &message_text, false);
     1.8 +    status = _mime_encode_message_internal(attachment, false, &message_text, true);
     1.9          
    1.10      if (status != PEP_STATUS_OK)
    1.11          goto enomem;
    1.12 @@ -3043,7 +3043,6 @@
    1.13          GOTO(pep_error);
    1.14      }
    1.15  
    1.16 -    dec_msg->enc_format = PEP_enc_none; // is this the right thing to do? FIXME
    1.17      status = _mime_encode_message_internal(dec_msg, false, mime_plaintext, false);
    1.18  
    1.19      if (status == PEP_STATUS_OK)