COM-52: Expose Encrypt for Identity (Myself) function in COM api
authorMarkus Schaber <markus@pep-security.net>
Fri, 10 Mar 2017 20:34:37 +0100
changeset 24103e471c3ec29
parent 240 ea67031c573f
child 242 f24de031cca6
COM-52: Expose Encrypt for Identity (Myself) function in COM api

- Rename the pEpEncryptFlagsNone to pEpEncryptFlagsDefault, to synchronize
with the now existing member in ghe engine.
(No change in pEpForOutlook necessary, as we're just ignoring the flag there.)
pEpCOMServerAdapter.idl
     1.1 --- a/pEpCOMServerAdapter.idl	Thu Mar 09 22:52:01 2017 +0100
     1.2 +++ b/pEpCOMServerAdapter.idl	Fri Mar 10 20:34:37 2017 +0100
     1.3 @@ -207,7 +207,7 @@
     1.4      } pEpColor;
     1.5  
     1.6      typedef [v1_enum] enum pEpEncryptFlags {
     1.7 -        pEpEncryptFlagsNone = 0,
     1.8 +        pEpEncryptFlagsDefault = 0,
     1.9          pEpEncryptFlagForceEncryption = 0x1,
    1.10  
    1.11          // This flag is for special uses and should not be used
    1.12 @@ -259,8 +259,18 @@
    1.13          SAFEARRAY(struct StringPair) OptFields;
    1.14      };
    1.15  
    1.16 -    HRESULT EncryptMessage([in] struct TextMessage *src, [out] struct TextMessage * dst, [in] SAFEARRAY(BSTR) extra, [in, defaultvalue(pEpEncryptFlagsNone)] pEpEncryptFlags flags);
    1.17 -    HRESULT DecryptMessage([in] struct TextMessage *src, [out] struct TextMessage * dst, [out] SAFEARRAY(BSTR) *keylist, [out] pEpDecryptFlags* flags, [out, retval] pEpRating *rating);
    1.18 +    HRESULT EncryptMessage(
    1.19 +        [in] struct TextMessage *src,
    1.20 +        [out] struct TextMessage * dst,
    1.21 +        [in] SAFEARRAY(BSTR) extra,
    1.22 +        [in, defaultvalue(pEpEncryptFlagsDefault)] pEpEncryptFlags flags);
    1.23 +
    1.24 +    HRESULT DecryptMessage(
    1.25 +        [in] struct TextMessage *src,
    1.26 +        [out] struct TextMessage * dst,
    1.27 +        [out] SAFEARRAY(BSTR) *keylist,
    1.28 +        [out] pEpDecryptFlags* flags,
    1.29 +        [out, retval] pEpRating *rating);
    1.30  
    1.31      HRESULT OutgoingMessageRating([in] struct TextMessage *msg, [out, retval] pEpRating * pVal);
    1.32      HRESULT IdentityRating([in] struct pEpIdentity * ident, [out, retval] pEpRating * pVal);
    1.33 @@ -293,7 +303,7 @@
    1.34          [in] struct pEpIdentity* target_id,
    1.35          [in] struct TextMessage* src, 
    1.36          [out] struct TextMessage* dst,
    1.37 -        [in, defaultvalue(pEpEncryptFlagsNone)] pEpEncryptFlags flags
    1.38 +        [in, defaultvalue(pEpEncryptFlagsDefault)] pEpEncryptFlags flags
    1.39      );
    1.40  };
    1.41