Krista Bennett
52ddb9d36d
Probably committing a whole lot of C++ sins, but preset was bugging me. Still not sure about that inline static object array. Will fix later.
1 year ago
Krista Bennett
46c2df4785
Refactored test_utils name.
1 year ago
Krista Bennett
4db5c9dfc7
Tests: make setting fpr an explicit choice for the new world order in preset-world
1 year ago
Krista Bennett
fc3a6693b0
ENGINE-911: separated API from internal calls in most files (the most egregious cases) - also put DYNAMIC_API on one of the group functions where it was missing
1 year ago
Krista Bennett
e560a80d3e
ENGINE-606 squash commit
1 year ago
Krista Bennett
38ed5b5f25
ENGINE-866 feature branch merge (squashed commit) of functionality to set the sticky bit for manually imported keys, to query for that bit in the trust database, and prevention of automatic reset of sticky keys by key reset when devices leave a device group.
Squashed commit of the following:
commit c64d850dc4
Author: Krista Bennett <krista@pep.foundation>
Date: Fri Feb 26 15:29:32 2021 +0100
ENGINE-866: doc'd bit getter function
commit ad725b5b7c
Author: Krista Bennett <krista@pep.foundation>
Date: Fri Feb 26 15:23:49 2021 +0100
ENGINE-866: Key reset tested on mixed sticky and not sticky keys and does what it should.
commit 0ffbdde7b5
Author: Krista Bennett <krista@pep.foundation>
Date: Fri Feb 26 15:13:53 2021 +0100
ENGINE-866: Add boolean for whether to set the sticky bit or not with set_own_imported_key. the adapter should filter this out for apps, I guess, according to Volker
commit 23fec59a9a
Author: Krista Bennett <krista@pep.foundation>
Date: Fri Feb 26 14:53:19 2021 +0100
ENGINE-866: Test and use the sticky bit
commit 562239fda8
Author: Krista Bennett <krista@pep.foundation>
Date: Thu Feb 25 16:47:47 2021 +0100
ENGINE-866: moved bit from key to trust, created set_own_imported_key to replace set_own_key FOR MAIL APPS (does NOT replace it for key reset, as the new function can generate a passphrase error, whereas set_own_key cannot), and did an initial test to ensure the setter/getter functions work on the DB.
commit 594133cfde
Author: Krista Bennett <krista@pep.foundation>
Date: Wed Feb 24 11:16:21 2021 +0100
Commented out the or'd identity.flags / pgp_keypair.flags in the sql code for the get_identity functions; we've never HAD a pgp_keypair flag before, so it never hurt before, but at this point, we're going to introduce them, and I don't want trouble. If fdik wants them or'd, fine, we'll have to change the values in the keyflags to be disjoint from the identity flags so they can coexist, but for now, they are out.
commit 99831445b3
Merge: 8ba53ece
d1664cf5
Author: Krista Bennett <krista@pep.foundation>
Date: Wed Feb 24 10:15:53 2021 +0100
Merge branch 'master' into ENGINE-866
commit 8ba53ece06
Merge: 168e2cf9
c52f4d39
Author: Krista Bennett <krista@pep.foundation>
Date: Mon Feb 22 20:06:08 2021 +0100
Merged in engine_sql changes
commit 168e2cf957
Author: Krista Bennett <krista@pep.foundation>
Date: Mon Feb 22 19:03:35 2021 +0100
ENGINE-866: Added sticky bit in database for manually set keys
1 year ago
Krista 'DarthMama' Bennett
e3ef506142
is_own_key fixes
2 years ago
Krista 'DarthMama' Bennett
af4be84e49
ENGINE-633: KeyResetMessageTests work again - case for default key when we get both a revocation and new key from an OpenPGP partner (or from someone who thinks we are one) is still unsolved, however. Discuss w/ fdik.
2 years ago
Krista 'DarthMama' Bennett
421239eae0
ENGINE-633: don't ask a message for is_pEp_msg during decrypt if that information hasn't been synced to the output yet. Plus some more test fixes.
2 years ago
Krista 'DarthMama' Bennett
1ff7e8e6bf
ENGINE-633: tests on ID collisions fixed to remove dependence on key election - need to revisit TOFU case once next week's release has happened.
2 years ago
Krista 'DarthMama' Bennett
46de182b13
ENGINE-633: adapting the tests
2 years ago
Krista 'DarthMama' Bennett
1c6289922c
ENGINE-781: tests and memory fun!
2 years ago
Krista 'DarthMama' Bennett
547aa4dbe6
ENGINE-781: infrastructure to test w/ callback runs on empty pass list
2 years ago
Krista 'DarthMama' Bennett
848da884ab
ENGINE-775: more tests
2 years ago
Krista 'DarthMama' Bennett
67820b0d1f
ENGINE-775: more tests
2 years ago
Krista 'DarthMama' Bennett
64bd088517
ENGINE-775: more tests
2 years ago
Krista 'DarthMama' Bennett
18800da494
ENGINE-775: simple key reset tests pass
2 years ago
Krista 'DarthMama' Bennett
69bee0184e
Reverting to default to start other ENGINE-633 work.
2 years ago
Krista 'DarthMama' Bennett
d77dbdd10c
import_key 2.1 changes - API change without substance XD (headers and calls)
2 years ago
Krista 'DarthMama' Bennett
36c73949f7
Fixed tests and added test for revoked message key reset responses for PGP users
2 years ago
Krista 'DarthMama' Bennett
ea9a296836
ENGINE-741, ENGINE-742: mime_encode_message and mime_decode_message APIs changed, plus test suite upgrade. JSON Adapter and pEpMIME must adapt to this, as this breaks the former api!
2 years ago
Krista 'DarthMama' Bennett
2da08f15fb
API change, #1 : _mime_encode_message_internal is now gone. mime_encode_message has 4th argument indicating that the first attachment is an embedded pEp message and it should be processed accordingly.
2 years ago
Krista 'DarthMama' Bennett
3aa3239770
ENGINE-725: changed pEp.keyreset to pEp.distribution and modified tests.
2 years ago
Krista 'DarthMama' Bennett
3abc859b37
ENGINE-716: moved fix into pgp_sequoia.c, now check for address==username
2 years ago
Krista 'DarthMama' Bennett
be6fe7a59b
more testing. seems to work.
3 years ago
Krista 'DarthMama' Bennett
bdd0d6ad44
now ignoring own key resets in non-grouped keys
3 years ago
Krista 'DarthMama' Bennett
6e5132d32e
reset all own grouped
3 years ago
Krista 'DarthMama' Bennett
dbb490c490
Ok, seems key reset own is now working. Need to make some malicious examples next.
3 years ago
Krista 'DarthMama' Bennett
9ae13384cc
Moar tests a-passin
3 years ago
Krista 'DarthMama' Bennett
9275474c7e
Back to all tests passing!
3 years ago
Krista 'DarthMama' Bennett
9f28c4e02b
grouped own resets now broken again, but it's about the mails.
3 years ago
Krista 'DarthMama' Bennett
a7f49cf9ab
If you love valgrind so much, why don't you marry it? Oh YEAH? MAYBE I WILL\!
3 years ago
Krista 'DarthMama' Bennett
617bff6b23
changed API calls - committing to test on debian, some weird mem stuff still.
3 years ago
Krista 'DarthMama' Bennett
9c328b8604
More passing tests, doing what passing tests do <3
3 years ago
Krista 'DarthMama' Bennett
80560ee074
receipt of own key reset in grouped situations works, but there's a corruption issue going on. This is bug fixes to this point.
3 years ago
Krista 'DarthMama' Bennett
c0c4101101
generates msgs correctly when asked to reset own key when grouped
3 years ago
Krista 'DarthMama' Bennett
bcb08cb0e5
key reset tests now pass; mostly broken test assumptions, not code, though there was some.
3 years ago
Krista 'DarthMama' Bennett
e5ddaebf74
finally, receipt of non-own key reset mails works again.
3 years ago
Krista 'DarthMama' Bennett
46b0697aa2
A metric buttload of code that I finally need to stop shelving and unshelving - new key reset, with bugs.
3 years ago
Volker Birk
2962f73bea
all fingerprints are uppercase
3 years ago
Volker Birk
f10f1e70b9
fpr is at least 16 chars and it is uppercase
3 years ago
Volker Birk
8164ba5f8c
add KeyResetMessageTest.codec_test
3 years ago
Krista 'DarthMama' Bennett
483847d883
Got things working with the key_reset_own_with_revocatioins (or whatever it's called), main test is in, modified pgp_sequoia so that revocations are checked first, as otherwise, it determines they are expired based on capabilities
3 years ago
Krista 'DarthMama' Bennett
c90df49169
first version compiles for key_reset_and_deliver_revocations
3 years ago
Krista 'DarthMama' Bennett
65c0821679
ENGINE-669, probably - adds new status PGP_VERIFY_SENDER_KEY_REVOKED to decrypt_message returns (still to be implemented in pgp_gpg.c) and now avoids sending messages when a message from self contains a revoked own key
3 years ago
Krista 'DarthMama' Bennett
d668967388
Makefile updated for debian/ubuntu and for symbol problems (tests updated and README updated as well). Currently untested on ANY other system.
3 years ago
Krista 'DarthMama' Bennett
e7c105ec7b
Also remove from mistrusted list!
3 years ago
Krista 'DarthMama' Bennett
ab4f0853c2
Added a DB commit to key_mistrusted to be sure we are recording the mistrust with an identity
3 years ago
Krista 'DarthMama' Bennett
e6790d3ad0
Top-level sign-only function, signing-related status returns
3 years ago
Krista 'DarthMama' Bennett
fcd91f308d
Spammy output can now be enabled by putting -DDEBUG_OUTPUT into your CXXFLAGS in local.conf - please use c++ ostreams for output in tests, and use the defined ostream output_stream instead of std::cout/std::cerr.
3 years ago