Browse Source

config values

doc_update_sequoia
Volker Birk 6 years ago
parent
commit
7fc0737b74
3 changed files with 31 additions and 0 deletions
  1. +17
    -0
      src/pEpEngine.c
  2. +9
    -0
      src/pEpEngine.h
  3. +5
    -0
      src/pEp_internal.h

+ 17
- 0
src/pEpEngine.c View File

@ -282,6 +282,11 @@ DYNAMIC_API PEP_STATUS init(PEP_SESSION *session)
if (status != PEP_STATUS_OK)
goto pep_error;
// runtime config
_session->passive_mode = false;
_session->unencrypted_subject = false;
*session = _session;
return PEP_STATUS_OK;
@ -344,6 +349,18 @@ DYNAMIC_API void release(PEP_SESSION session)
}
}
DYNAMIC_API void config_passive_mode(PEP_SESSION session, bool value)
{
assert(session);
session->passive_mode = value;
}
DYNAMIC_API void config_unencrypted_subject(PEP_SESSION session, bool value)
{
assert(session);
session->unencrypted_subject = value;
}
DYNAMIC_API PEP_STATUS log_event(
PEP_SESSION session,
const char *title,


+ 9
- 0
src/pEpEngine.h View File

@ -114,6 +114,15 @@ DYNAMIC_API PEP_STATUS init(PEP_SESSION *session);
DYNAMIC_API void release(PEP_SESSION session);
// config_passive_mode() - enable passive mode
//
// parameters:
// session (in) session handle
// enabled (in) flag if enabled or disabled
DYNAMIC_API void config_passive_mode(PEP_SESSION session, bool value);
// decrypt_and_verify() - decrypt and/or verify a message
//
// parameters:


+ 5
- 0
src/pEp_internal.h View File

@ -103,6 +103,11 @@ typedef struct _pEpSession {
examine_identity_t examine_identity;
void *examine_management;
// runtime config
bool passive_mode;
bool unencrypted_subject;
} pEpSession;
PEP_STATUS init_transport_system(PEP_SESSION session, bool in_first);


Loading…
Cancel
Save