|
|
|
@ -9,6 +9,8 @@
|
|
|
|
|
#include "pEp_internal.h"
|
|
|
|
|
#include "keymanagement.h"
|
|
|
|
|
|
|
|
|
|
#include "sync_fsm.h"
|
|
|
|
|
|
|
|
|
|
#ifndef EMPTYSTR
|
|
|
|
|
#define EMPTYSTR(STR) ((STR) == NULL || (STR)[0] == '\0')
|
|
|
|
|
#endif
|
|
|
|
@ -513,8 +515,7 @@ DYNAMIC_API PEP_STATUS myself(PEP_SESSION session, pEp_identity * identity)
|
|
|
|
|
if(new_key_generated)
|
|
|
|
|
{
|
|
|
|
|
// if a state machine for keysync is in place, inject notify
|
|
|
|
|
if (session->sync_state != DeviceState_state_NONE)
|
|
|
|
|
status = fsm_DeviceState_inject(session, KeyGen, NULL, NULL);
|
|
|
|
|
status = inject_DeviceState_event(session, KeyGen, NULL, NULL);
|
|
|
|
|
if (status != PEP_STATUS_OK)
|
|
|
|
|
return status;
|
|
|
|
|
}
|
|
|
|
|