adding ENGINE-9 fix for external revoke test
authorKrista Bennett <krista@pep-project.org>
Fri, 09 Jun 2017 14:31:58 +0200
changeset 1841ca925aadd9fe
parent 1840 91bd4a394584
child 1842 dcd86e0c4a58
adding ENGINE-9 fix for external revoke test
test/external_revoke_test.cc
     1.1 --- a/test/external_revoke_test.cc	Fri Jun 09 14:30:13 2017 +0200
     1.2 +++ b/test/external_revoke_test.cc	Fri Jun 09 14:31:58 2017 +0200
     1.3 @@ -28,9 +28,12 @@
     1.4  #ifndef NETPGP
     1.5      char* fprs[2];
     1.6  
     1.7 -    const string fenris_pub_key = slurp("test_keys/pub/pep.test.fenris-0x6DBA13DA_pub.asc");
     1.8 -    const string fenris_priv_key = slurp("test_keys/priv/pep.test.fenris-0x6DBA13DA_priv.asc");
     1.9 +    const string fenris_pub_key = slurp("test_keys/pub/pep.test.fenris-0x4F3D2900_pub.asc");
    1.10 +    const string fenris_priv_key = slurp("test_keys/priv/pep.test.fenris-0x4F3D2900_priv.asc");
    1.11  
    1.12 +    assert(fenris_pub_key.length() != 0);
    1.13 +    assert(fenris_priv_key.length() != 0);
    1.14 +    
    1.15      PEP_STATUS statuspub = import_key(session, fenris_pub_key.c_str(), fenris_pub_key.length(), NULL);
    1.16      PEP_STATUS statuspriv = import_key(session, fenris_priv_key.c_str(), fenris_priv_key.length(), NULL);
    1.17      assert(statuspub == PEP_STATUS_OK);
    1.18 @@ -38,10 +41,8 @@
    1.19  
    1.20      // Create sender ID
    1.21      
    1.22 -    pEp_identity * me = new_identity("pep.test.fenris@notrealemail.eu", NULL, PEP_OWN_USERID, "Fenris Hawke");
    1.23 -    status = update_identity(session, me);
    1.24 -    status = trust_personal_key(session, me);
    1.25 -    status = update_identity(session, me);
    1.26 +    pEp_identity * me = new_identity("pep.test.fenris@thisstilldoesntwork.lu", "0969FA229DF21C832A64A04711B1B9804F3D2900", PEP_OWN_USERID, "Fenris Hawke");
    1.27 +    status = myself(session, me);
    1.28      
    1.29      // Create key
    1.30