changed API calls - committing to test on debian, some weird mem stuff still. krista-local-7-Jan-2020
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Sun, 12 Jan 2020 15:37:56 +0100
branchkrista-local-7-Jan-2020
changeset 4324820329a83680
parent 4323 28b0e2285aa1
child 4325 f1323d0d874a
changed API calls - committing to test on debian, some weird mem stuff still.
test/src/KeyResetMessageTest.cc
     1.1 --- a/test/src/KeyResetMessageTest.cc	Sat Jan 11 15:00:20 2020 +0100
     1.2 +++ b/test/src/KeyResetMessageTest.cc	Sun Jan 12 15:37:56 2020 +0100
     1.3 @@ -732,7 +732,7 @@
     1.4      ASSERT_EQ(status, PEP_STATUS_OK);    
     1.5      ASSERT_STREQ(pubkey1, alex_id3->fpr);
     1.6  
     1.7 -    status = key_reset(session, pubkey1, alex_id);
     1.8 +    status = key_reset_identity(session, alex_id, pubkey1);
     1.9  
    1.10      alex_id->fpr = pubkey1;
    1.11      status = get_trust(session, alex_id);
    1.12 @@ -816,7 +816,7 @@
    1.13      ASSERT_EQ(status, PEP_STATUS_OK);    
    1.14      ASSERT_STREQ(pubkey3, alex_id3->fpr);
    1.15  
    1.16 -    status = key_reset(session, NULL, NULL);
    1.17 +    status = key_reset_all_own_keys(session);
    1.18  
    1.19      free(alex_id->fpr);
    1.20      alex_id->fpr = pubkey1;
    1.21 @@ -922,7 +922,7 @@
    1.22      ASSERT_EQ(status, PEP_STATUS_OK);    
    1.23      ASSERT_STREQ(pubkey3, alex_id3->fpr);
    1.24  
    1.25 -    status = key_reset_user(session, alex_id2->user_id, pubkey2);
    1.26 +    status = key_reset_identity(session, alex_id2, alex_id2->fpr);
    1.27  
    1.28      free(alex_id->fpr);
    1.29      alex_id->fpr = pubkey1;