Ok, NOW we can use myself. Just need to, you know, read the rest of the code *headdesk* ENGINE-600
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Fri, 09 Aug 2019 14:37:01 +0200
branchENGINE-600
changeset 39897797b84eecea
parent 3988 2b5d47f0aef6
child 3990 cf0f8bca59a4
child 3992 8bbc10703e00
Ok, NOW we can use myself. Just need to, you know, read the rest of the code *headdesk*
src/key_reset.c
     1.1 --- a/src/key_reset.c	Fri Aug 09 14:29:01 2019 +0200
     1.2 +++ b/src/key_reset.c	Fri Aug 09 14:37:01 2019 +0200
     1.3 @@ -520,11 +520,11 @@
     1.4                  // generate new key
     1.5                  if (status == PEP_STATUS_OK) {
     1.6                      tmp_ident->fpr = NULL;
     1.7 -                    status = generate_keypair(session, tmp_ident);
     1.8 +                    status = myself(session, tmp_ident);
     1.9                  }
    1.10 -                if (status == PEP_STATUS_OK) {
    1.11 +                if (status == PEP_STATUS_OK && tmp_ident->fpr && strcmp(fpr_copy, tmp_ident->fpr) != 0) {
    1.12                      new_key = strdup(tmp_ident->fpr);
    1.13 -                    status = set_own_key(session, tmp_ident, new_key);
    1.14 +//                    status = set_own_key(session, tmp_ident, new_key);
    1.15                  }
    1.16                  // mistrust fpr from trust
    1.17                  tmp_ident->fpr = fpr_copy;