Browse Source

An undo is possible for keys we don't own, and therefore have not revoked.

doc_update_sequoia
Volker Birk 6 years ago
parent
commit
1c9399e8d1
2 changed files with 11 additions and 3 deletions
  1. +9
    -2
      src/keymanagement.c
  2. +2
    -1
      src/keymanagement.h

+ 9
- 2
src/keymanagement.c View File

@ -357,9 +357,16 @@ DYNAMIC_API PEP_STATUS key_reset_trust(
if (status != PEP_STATUS_OK)
return status;
ident->comm_type = PEP_ct_unknown;
if (ident->comm_type == PEP_ct_compromized)
ident->comm_type = PEP_ct_unknown;
else
ident->comm_type &= ~PEP_ct_confirmed;
status = set_identity(session, ident);
if (status != PEP_STATUS_OK)
return status;
status = update_identity(session, ident);
return status;
}


+ 2
- 1
src/keymanagement.h View File

@ -140,7 +140,8 @@ DYNAMIC_API PEP_STATUS trust_personal_key(
);
// key_reset_trust() - undo trust_personal_key
// key_reset_trust() - undo trust_personal_key and key_compromized() for keys
// we don't own
//
// parameters:
// session (in) session to use


Loading…
Cancel
Save