IOSAD-132 PEPDecryptFlags. IOSAD-132
authorDirk Zimmermann <dz@pep.security>
Fri, 20 Sep 2019 17:00:26 +0200
branchIOSAD-132
changeset 12559919bdc5e3cd
parent 1254 f3825b4d7332
child 1256 11a02b9107be
IOSAD-132 PEPDecryptFlags.
pEpObjCAdapterFramework/PEPEngineTypes.h
     1.1 --- a/pEpObjCAdapterFramework/PEPEngineTypes.h	Fri Sep 20 14:43:37 2019 +0200
     1.2 +++ b/pEpObjCAdapterFramework/PEPEngineTypes.h	Fri Sep 20 17:00:26 2019 +0200
     1.3 @@ -11,15 +11,15 @@
     1.4  
     1.5  #import <Foundation/Foundation.h>
     1.6  
     1.7 -typedef NS_ENUM(int, PEPDecryptFlags) {
     1.8 -    PEPDecryptFlagsNone = 0x1, // This defined only in the adpater, not the engine.
     1.9 -    PEPDecryptFlagsOwnPrivateKey = 0x1, // PEP_decrypt_flag_own_private_key = 0x1,
    1.10 -    PEPDecryptFlagsConsume = 0x2, // PEP_decrypt_flag_consume = 0x2,
    1.11 -    PEPDecryptFlagsIgnore = 0x4, // PEP_decrypt_flag_ignore = 0x4,
    1.12 -    PEPDecryptFlagsSrcModified = 0x8, // PEP_decrypt_flag_src_modified = 0x8,
    1.13 -    // input flags
    1.14 -    PEPDecryptFlagsUntrustedServer = 0x100 // PEP_decrypt_flag_untrusted_server = 0x100
    1.15 -}; // PEP_decrypt_flags;
    1.16 +typedef NS_CLOSED_ENUM(int, PEPDecryptFlags) {
    1.17 +    PEPDecryptFlagsNone = 0x0, // not actually defined in the engine
    1.18 +    PEPDecryptFlagsOwnPrivateKey = 0x1, // PEP_decrypt_flag_own_private_key
    1.19 +    PEPDecryptFlagsConsume = 0x2, //PEP_decrypt_flag_consume
    1.20 +    PEPDecryptFlagsIgnore = 0x4, // PEP_decrypt_flag_ignore
    1.21 +    PEPDecryptFlagsSourceModified = 0x8, // PEP_decrypt_flag_src_modified
    1.22 +    PEPDecryptFlagsUntrustedServer = 0x100, // PEP_decrypt_flag_untrusted_server
    1.23 +    PEPDecryptFlagsDontTriggerSync = 0x200, // PEP_decrypt_flag_dont_trigger_sync
    1.24 +};
    1.25  
    1.26  typedef NS_ENUM(int, PEPEncFormat) {
    1.27      PEPEncFormatNone = 0, // PEP_enc_none = 0, // message is not encrypted