ENGINE-73: More test code, showing that #comment netpgp doesn't crash, at least, but it looks like there is a separate bug in find_keys_do, or possibly the way netpgp deals with gnupg keyrings, at least under Linux. This should be looked at separately so as not to hold up development on Outlook and Android. Will file separate bug. ENGINE-73
authorKrista Grothoff <krista@pep-project.org>
Fri, 19 Aug 2016 10:56:33 +0200
branchENGINE-73
changeset 1039e1dd2cc8ab45
parent 1035 ddbde59a63fa
child 1040 f12bbff0d6b4
ENGINE-73: More test code, showing that #comment netpgp doesn't crash, at least, but it looks like there is a separate bug in find_keys_do, or possibly the way netpgp deals with gnupg keyrings, at least under Linux. This should be looked at separately so as not to hold up development on Outlook and Android. Will file separate bug.
test/pgp_list_keys_test.cc
     1.1 --- a/test/pgp_list_keys_test.cc	Thu Aug 18 17:48:02 2016 +0200
     1.2 +++ b/test/pgp_list_keys_test.cc	Fri Aug 19 10:56:33 2016 +0200
     1.3 @@ -42,6 +42,16 @@
     1.4      print_stringpair_list(all_the_ids);
     1.5      free_stringpair_list(all_the_ids);
     1.6  
     1.7 +    cout << "**********************" << endl << endl << "Compare to find_keys for Alice, Bob and John" << endl;
     1.8 +    stringlist_t* all_the_keys;
     1.9 +    find_keys(session, "pEp Test", &all_the_keys);
    1.10 +    stringlist_t* i;
    1.11 +    for (i = all_the_keys; i->next; i = i->next) {
    1.12 +        cout << i->value << endl;
    1.13 +    }
    1.14 +    free_stringlist(all_the_keys);
    1.15 +
    1.16 +    
    1.17      cout << "**********************" << endl << endl << "Checking FPR" << endl;
    1.18      all_the_ids = NULL;
    1.19      OpenPGP_list_keyinfo(session, "BFCDB7F301DEEEBBF947F29659BFF488C9C2EE39", &all_the_ids);