Prevent changing identity's fpr when new fpr trust level is lower
authorEdouard Tisserant
Thu, 03 Mar 2016 13:24:24 +0100
changeset 493ebe4ed001a0c
parent 491 d32c60ada438
child 494 ddf4130d00a0
Prevent changing identity's fpr when new fpr trust level is lower
src/keymanagement.c
     1.1 --- a/src/keymanagement.c	Thu Mar 03 13:09:12 2016 +0100
     1.2 +++ b/src/keymanagement.c	Thu Mar 03 13:24:24 2016 +0100
     1.3 @@ -88,6 +88,8 @@
     1.4                  assert(status != PEP_OUT_OF_MEMORY);
     1.5                  if (status == PEP_OUT_OF_MEMORY)
     1.6                      return PEP_OUT_OF_MEMORY;
     1.7 +                if(identity->comm_type < stored_identity->comm_type)
     1.8 +                    identity->comm_type == PEP_ct_unknown;
     1.9              }
    1.10          }
    1.11