ENGINE-27: update_identity no longer pays attention to the input identity's fpr, but pulls one from elect_pubkey. ENGINE-27
authorKrista Grothoff <krista@pep-project.org>
Sat, 24 Sep 2016 18:09:18 +0200
branchENGINE-27
changeset 11854b01328f3cf2
parent 1164 51db748bdf16
child 1186 3b9e4b2666d4
ENGINE-27: update_identity no longer pays attention to the input identity's fpr, but pulls one from elect_pubkey.
src/keymanagement.c
     1.1 --- a/src/keymanagement.c	Fri Sep 16 10:21:13 2016 +0200
     1.2 +++ b/src/keymanagement.c	Sat Sep 24 18:09:18 2016 +0200
     1.3 @@ -145,6 +145,13 @@
     1.4      if (status == PEP_OUT_OF_MEMORY)
     1.5          goto exit_free;
     1.6  
     1.7 +    /* ALWAYS elect pubkey */
     1.8 +    status = elect_pubkey(session, identity);
     1.9 +    if (status != PEP_STATUS_OK)
    1.10 +        goto exit_free;
    1.11 +    
    1.12 +    _did_elect_new_key = 1; /*???*/
    1.13 +    
    1.14      if (stored_identity) {
    1.15          PEP_comm_type _comm_type_key;
    1.16          status = get_key_rating(session, stored_identity->fpr, &_comm_type_key);