Make keylist an inout parameter
authorThomas
Tue, 08 May 2018 09:19:58 +0200
changeset 28971e95ca19464
parent 288 a674aeebe476
child 290 52d7d9b2df17
Make keylist an inout parameter
CpEpEngine.cpp
pEpCOMServerAdapter.idl
     1.1 --- a/CpEpEngine.cpp	Thu May 03 17:53:49 2018 +0200
     1.2 +++ b/CpEpEngine.cpp	Tue May 08 09:19:58 2018 +0200
     1.3 @@ -1038,12 +1038,11 @@
     1.4      if (!(src && dst && keylist && flags && rating))
     1.5          return E_INVALIDARG;
     1.6  
     1.7 -    *keylist = NULL;
     1.8      *rating = pEpRatingUndefined;
     1.9  
    1.10      ::message *_src = text_message_to_C(src);
    1.11      ::message *msg_dst = NULL;
    1.12 -    ::stringlist_t *_keylist = NULL;
    1.13 +    ::stringlist_t *_keylist = new_stringlist(*keylist);
    1.14      ::PEP_rating _rating;
    1.15  
    1.16      PEP_decrypt_flags_t engineflags = (PEP_decrypt_flags_t) *flags;
     2.1 --- a/pEpCOMServerAdapter.idl	Thu May 03 17:53:49 2018 +0200
     2.2 +++ b/pEpCOMServerAdapter.idl	Tue May 08 09:19:58 2018 +0200
     2.3 @@ -378,7 +378,7 @@
     2.4      [id(29)] HRESULT DecryptMessage(
     2.5          [in, out] struct TextMessage *src,
     2.6          [out] struct TextMessage * dst,
     2.7 -        [out] SAFEARRAY(BSTR) *keylist,
     2.8 +        [in, out] SAFEARRAY(BSTR) *keylist,
     2.9          [in, out] pEpDecryptFlags* flags,
    2.10          [out, retval] pEpRating *rating);
    2.11