config functions for dont_remove_sync_msg keysync
authorVolker Birk <vb@pep.foundation>
Thu, 01 Sep 2016 17:51:29 +0200
branchkeysync
changeset 11096be9dc59517d
parent 1108 8f96b834ee94
child 1110 d37d730fa8e5
config functions for dont_remove_sync_msg
src/pEpEngine.c
src/pEpEngine.h
     1.1 --- a/src/pEpEngine.c	Thu Sep 01 17:49:01 2016 +0200
     1.2 +++ b/src/pEpEngine.c	Thu Sep 01 17:51:29 2016 +0200
     1.3 @@ -657,6 +657,12 @@
     1.4      session->use_only_own_private_keys = enable;
     1.5  }
     1.6  
     1.7 +DYNAMIC_API void config_dont_remove_sync_msg(PEP_SESSION session, bool enable)
     1.8 +{
     1.9 +    assert(session);
    1.10 +    session->dont_remove_sync_msg = enable;
    1.11 +}
    1.12 +
    1.13  DYNAMIC_API PEP_STATUS log_event(
    1.14          PEP_SESSION session,
    1.15          const char *title,
     2.1 --- a/src/pEpEngine.h	Thu Sep 01 17:49:01 2016 +0200
     2.2 +++ b/src/pEpEngine.h	Thu Sep 01 17:51:29 2016 +0200
     2.3 @@ -168,6 +168,14 @@
     2.4  DYNAMIC_API void config_use_only_own_private_keys(PEP_SESSION session, bool enable);
     2.5  
     2.6  
     2.7 +// config_dont_remove_sync_msg() - do not remove sync messages (for debugging purposes)
     2.8 +//
     2.9 +//      session (in)    session handle
    2.10 +//      enable (in)     flag if enabled or disabled
    2.11 +
    2.12 +DYNAMIC_API void config_dont_remove_sync_msg(PEP_SESSION session, bool enable);
    2.13 +
    2.14 +
    2.15  // decrypt_and_verify() - decrypt and/or verify a message
    2.16  //
    2.17  //    parameters: