myself is not the answer ENGINE-600
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Fri, 09 Aug 2019 14:29:01 +0200
branchENGINE-600
changeset 39882b5d47f0aef6
parent 3987 beb57cde0827
child 3989 7797b84eecea
myself is not the answer
src/key_reset.c
     1.1 --- a/src/key_reset.c	Fri Aug 09 14:23:38 2019 +0200
     1.2 +++ b/src/key_reset.c	Fri Aug 09 14:29:01 2019 +0200
     1.3 @@ -520,7 +520,11 @@
     1.4                  // generate new key
     1.5                  if (status == PEP_STATUS_OK) {
     1.6                      tmp_ident->fpr = NULL;
     1.7 -                    status = myself(session, tmp_ident);
     1.8 +                    status = generate_keypair(session, tmp_ident);
     1.9 +                }
    1.10 +                if (status == PEP_STATUS_OK) {
    1.11 +                    new_key = strdup(tmp_ident->fpr);
    1.12 +                    status = set_own_key(session, tmp_ident, new_key);
    1.13                  }
    1.14                  // mistrust fpr from trust
    1.15                  tmp_ident->fpr = fpr_copy;