Browse Source

Revocation-related fixes

doc_update_sequoia
Edouard Tisserant 6 years ago
parent
commit
438a873575
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      src/keymanagement.c

+ 9
- 4
src/keymanagement.c View File

@ -383,9 +383,8 @@ DYNAMIC_API PEP_STATUS myself(PEP_SESSION session, pEp_identity * identity)
{
if(revoked)
{
r_fpr = strdup(identity->fpr);
if(!r_fpr)
return PEP_OUT_OF_MEMORY;
r_fpr = identity->fpr;
identity->fpr = NULL;
}
DEBUG_LOG("generating key pair", "debug", identity->address);
@ -515,8 +514,14 @@ DYNAMIC_API PEP_STATUS key_compromized(
return PEP_ILLEGAL_VALUE;
if (ident->me)
{
revoke_key(session, ident->fpr, NULL);
status = mark_as_compromized(session, ident->fpr);
myself(session, ident);
}
else
{
status = mark_as_compromized(session, ident->fpr);
}
return status;
}


Loading…
Cancel
Save