src/keymanagement.c
changeset 2265 73c0738de68c
parent 2228 823086369b6c
child 2288 8aee10631677
child 2461 85c8e5aad3bc
     1.1 --- a/src/keymanagement.c	Thu Nov 02 17:02:05 2017 +0100
     1.2 +++ b/src/keymanagement.c	Thu Nov 02 17:30:01 2017 +0100
     1.3 @@ -12,7 +12,6 @@
     1.4  #include "pEp_internal.h"
     1.5  #include "keymanagement.h"
     1.6  
     1.7 -#include "sync_fsm.h"
     1.8  #include "blacklist.h"
     1.9  
    1.10  #ifndef EMPTYSTR
    1.11 @@ -555,8 +554,6 @@
    1.12          }
    1.13      }
    1.14     
    1.15 -    bool new_key_generated = false;
    1.16 -
    1.17      if (EMPTYSTR(identity->fpr) || revoked)
    1.18      {
    1.19          if(!do_keygen){
    1.20 @@ -581,7 +578,6 @@
    1.21              return ADD_TO_LOG(status);
    1.22          }
    1.23  
    1.24 -        new_key_generated = true;
    1.25          
    1.26          if(revoked)
    1.27          {
    1.28 @@ -621,15 +617,6 @@
    1.29          return status;
    1.30      }
    1.31  
    1.32 -    if(new_key_generated)
    1.33 -    {
    1.34 -        // if a state machine for keysync is in place, inject notify
    1.35 -        status = inject_DeviceState_event(session, KeyGen, NULL, NULL);
    1.36 -        if (status == PEP_OUT_OF_MEMORY){
    1.37 -            return PEP_OUT_OF_MEMORY;
    1.38 -        }
    1.39 -    }
    1.40 -
    1.41      return ADD_TO_LOG(PEP_STATUS_OK);
    1.42  }
    1.43