giving src back in DecryptMessage() COM-87
authorVolker Birk <vb@pep.foundation>
Thu, 26 Apr 2018 15:20:11 +0200
branchCOM-87
changeset 28108164979a405
parent 280 4f2813b98b81
child 282 3b92433f8da7
giving src back in DecryptMessage()
CpEpEngine.cpp
pEpCOMServerAdapter.idl
     1.1 --- a/CpEpEngine.cpp	Sun Apr 08 20:14:29 2018 +0200
     1.2 +++ b/CpEpEngine.cpp	Thu Apr 26 15:20:11 2018 +0200
     1.3 @@ -999,6 +999,9 @@
     1.4  
     1.5      *flags = (pEpDecryptFlags)engineflags;
     1.6  
     1.7 +    if (engineflags && PEP_decrypt_flag_src_modified)
     1.8 +        text_message_from_C(src, _src);
     1.9 +
    1.10      if (msg_dst)
    1.11          text_message_from_C(dst, msg_dst);
    1.12  
     2.1 --- a/pEpCOMServerAdapter.idl	Sun Apr 08 20:14:29 2018 +0200
     2.2 +++ b/pEpCOMServerAdapter.idl	Thu Apr 26 15:20:11 2018 +0200
     2.3 @@ -364,7 +364,7 @@
     2.4      };
     2.5  
     2.6      [id(28)] HRESULT EncryptMessage(
     2.7 -        [in] struct TextMessage *src,
     2.8 +        [in,out] struct TextMessage *src,
     2.9          [out] struct TextMessage * dst,
    2.10          [in] SAFEARRAY(BSTR) extra,
    2.11          [in, defaultvalue(pEpEncryptFlagDefault)] pEpEncryptFlags flags,