Commit Graph

292 Commits (6741a6c735179b8e2db38af42a102ba2b9ceb1e7)

Author SHA1 Message Date
Volker Birk d4f11f8257 spinlock implementation for dealing with write locks 4 years ago
Krista 'DarthMama' Bennett 75dcd54cf6 merged in parent 4 years ago
Krista 'DarthMama' Bennett 23008a6113 ENGINE-559: first running version that passes the old tests - need to test the new functionality, but hey, it didn't explode. Theoretically, we now keep track of the latest pEp version received from pEp users. 4 years ago
Krista 'DarthMama' Bennett 94f30b5f5f Can't seem to keep the branches separate - except for the "forwarded" changes, this should probably all be in 559, but was done in 551. 4 years ago
Volker Birk c29b488ae3 ... 4 years ago
Krista 'DarthMama' Bennett 37eb6c0f9f ENGINE-559: updated current getter and setter functions involving identity struct 4 years ago
Volker Birk d26e4341a6 art & beauty 4 years ago
Volker Birk a93f8833e5 fixing some string alloc problems 4 years ago
Krista 'DarthMama' Bennett b894409155 more fixes, more tests 4 years ago
Krista 'DarthMama' Bennett 18cdd326d8 fixes for _own_keys_retrieve 4 years ago
Krista 'DarthMama' Bennett f60686fb61 ENGINE-533 (ENGINE-531), ENGINE-348: Fixed bugs with identity flags 4 years ago
Krista 'DarthMama' Bennett f5f3c7dabb ENGINE-522: merged in removal of bad PEP_OWN_USERID from get_message_trustwords 4 years ago
Krista 'DarthMama' Bennett 50fb8ebaf6 ENGINE-522: removed all unqualified hard-coded instances of PEP_OWN_USERID (those that remain are for first-use instances where no extant own-id is in the DB, and any new own ids coming from the app after there use will be aliased to it, so they are ok) 4 years ago
Krista 'DarthMama' Bennett 98eac74e41 Argh, cut-and-paste error broke all the things. 4 years ago
Krista 'DarthMama' Bennett 685bcbe69d Fixed sql bind in loop problem that has been languishing in hiding. 4 years ago
Krista 'DarthMama' Bennett 7702ab6d5b ENGINE-527: update_identity will now also not write when it has an own address, but no user_id 4 years ago
Krista 'DarthMama' Bennett f62197e900 ENGINE-527: update_identity will now also not write when it has an own address, but no user_id 4 years ago
Krista 'DarthMama' Bennett dbcab86e34 ENGINE-527: sync merge 4 years ago
Krista 'DarthMama' Bennett b19931457e ENGINE-527: part 1, myself now doesn't write when called from decrypt_message (directly or, hoepfully, indirectly) 4 years ago
Volker Birk 61f2741591 commenting unused functions and checking in some code 4 years ago
Krista 'DarthMama' Bennett 0dd60e80c2 Merged in default 4 years ago
Krista 'DarthMama' Bennett 4b7e2505bc ENGINE-507: trust_own_key now in; read documentation 4 years ago
Krista 'DarthMama' Bennett 2c5b7db338 Removed allowed calls to trust_personal_key with an own_identity. Trusting a pubkey from the same user and another device will require using a different user_id or calling set_own_key (on a pub/priv keypair) 4 years ago
Krista 'DarthMama' Bennett 8629295188 Removed allowed calls to trust_personal_key with an own_identity. Trusting a pubkey from the same user and another device will require using a different user_id or calling set_own_key (on a pub/priv keypair) 4 years ago
Krista 'DarthMama' Bennett b6d718e4bb Myself was returning OK, even when it needed to and could not generate a key. Fixed. 4 years ago
Krista 'DarthMama' Bennett 64dc736e21 Myself was returning OK, even when it needed to and could not generate a key. Fixed. 4 years ago
Krista Bennett 9b4362dd7b Merged in default 4 years ago
Krista Bennett 4072188437 ENGINE-458: removed set_own_key from trust_personal_key 4 years ago
Krista Bennett 5098a33557 ENGINE-495: Stopped key_mistrust (which had changed only in this branch) from trying to revoke non-own keys 4 years ago
Krista Bennett 90dac9bba6 DANGER WILL ROBINSON: pushing in sign_only functionality for fdik, which involved merging in default. Things might be broken, because the tests are fouled up now. 4 years ago
Krista Bennett f685decf24 Through the power of revert, fixed the modes I messed up in the last commit (sorry, new machine and dorking around caused an unintended large-scale mode reset) 4 years ago
Krista Bennett 673c9876d0 Fixed weird little test bug, also part of the ENGINE-476 in here 4 years ago
Krista Bennett 9a0dc9f018 Little bits of cleanup fun 5 years ago
Krista Bennett 7fa9e64cbc Little bits of cleanup fun 5 years ago
Volker Birk 961a67e065 in case of out of memory break 5 years ago
Krista Bennett 32ed0e2f4a ENGINE-473: all's well that ends well. We now keep track of trust bits when expiring and restore them when the key is renewed. 5 years ago
Krista Bennett 0b5f1d4d5f ENGINE-473: have the DB update partially fixed on renewal, but trust status is still not sticky. MOAR DEBUGGING! 5 years ago
Volker Birk c0107f0eff merging 5 years ago
Volker Birk 201ac3144c build and have init() inside 5 years ago
Volker Birk 5b3b174ae0 deleting undo_last_mistrust() from header 5 years ago
Krista Bennett ac7f116705 merged in default and added key_reset.h file 5 years ago
Krista Bennett 8a08da66b0 ENGINE-459: Well, that was easy. 5 years ago
Krista Bennett f49d137edb Merged in default (including ENGINE-463) - tests pass 5 years ago
Krista Bennett 85ec467dd4 ENGINE-463: the code seems to work, but I've broken the tests that force the error condition I want to examine, and I'm too tired to fix them this late without breaking more things. Use at your own risk atm. 5 years ago
Krista Bennett f838018dfd ENGINE-463: incoming TOFU and stored real defaults to stored real; may have removed problem with TOFU_ TOFU_ clash in update_identity 5 years ago
Volker Birk 4f9532b315 merging... 5 years ago
Krista Bennett dcdb628692 ENGINE-398: merging key reset into sync; key reset needs some adjustments. Not compiling yet. 5 years ago
Volker Birk a52ab025ce omit unused parameter from do_keymanagement() 5 years ago
Krista Bennett 158f6efbd6 ENGINE-398: removed key_reset functionality from key_mistrust; need to adjust a test or two. 5 years ago
Krista Bennett 727abbbbd0 ENGINE-398: bug fixes 5 years ago
Krista Bennett 886f8bb94a ENGINE-398:key_reset in, and compiling again. 5 years ago
Volker Birk 5eed70d884 ... 5 years ago
Volker Birk c6c73fef61 ... 5 years ago
Volker Birk dc0a6e7325 ... 5 years ago
Krista Bennett 08f096189b Put in private key check in set_own_key. 5 years ago
Krista Bennett 097b196755 ENGINE-423: partial implementation of reencrypt functionality. Stashing changes to check another bug. 5 years ago
Krista Bennett e1b33d0def ENGINE-420: fixed bug in key_reset_trust when key corresponds to an own identity (this case: public-key-only), plus test expansion and bug fixes on encrypt_message_and_add_private_key 5 years ago
Krista Bennett 503bc6ae78 Deprecated and replaced misspellings of 'compromised' and 'secret' in the API and constants. Nothing should be broken for existing implementations. 5 years ago
Krista Bennett 6fe4ffb5e9 ENGINE-409: fixed key_reset_trust 5 years ago
Volker Birk a943d520fd fixing ENGINE-404 5 years ago
Volker Birk 93ac1d3230 fixing ENGINE-403 5 years ago
Krista Bennett d8c758ca56 Fixed call to _myself in trust_personal_key (should now be set_own_key), and also made sure that when an own identity comes in but the key is public only, that it gets verified but never set as the default when being trusted. 5 years ago
Krista Bennett ec3552830e ENGINE-294: blacklisting is now only checked in identity_rating, outgoing_message_rating and encrypt_message, and then only for OpenPGP comm_types. 5 years ago
Krista Bennett c9cffaea4e ENGINE-294: basic code is in to remove blacklisting from anything but encrypt_message and outgoing_message_rating, but tests need to be extended, and have to switch to ENGINE-397 and fix that to keep the keyring clean. 5 years ago
Krista Bennett cca3499098 set_pep_user also updates all of its trust values in the DB; validate_fpr also upgrades to pEp it what it returns when there's a pep user 5 years ago
Volker Birk 51e93ea4af MSVC wants init 5 years ago
Volker Birk a18006eb3a merging 5 years ago
Volker Birk 6d76b00af0 slightly reworking initial PGP key import in case of GnuPG 5 years ago
Krista Bennett 59b9f4be61 ENGINE-394: Add case in update_identity for identities which have an address and username, where retrieved user_id is TOFU and usernames don't match 5 years ago
Volker Birk e445c7b807 SEMANTIC CHANGE in myself(): .fpr is never used; to set fpr now use set_own_key() 5 years ago
Krista Bennett 21b154008e ENGINE-DIRKSAIDSO: strdup(NULL) is bad, mmmkay? 5 years ago
Krista Bennett ec531ea126 ENGINE-354: fixed bad call to is_pep_user 5 years ago
Krista Bennett 4e9f418797 Fixes for a couple of return values adjusted in recent commits; ENGINE-354: checks now in update_identity against the user pep status field. 5 years ago
Krista Bennett c11cf1d3f0 So, uh, it turns out argument order is important. Who knew? Fixed get_identity calls which would have impacted ratings when update_identity gets called without a user_id (which means it also impacts own_identities called without an own user id or .me set) 5 years ago
Krista Bennett a6cbccf6b9 Fix for ENGINE-356 5 years ago
Krista Bennett 6577bcb2fe Added prioritisation of own ids and forgotten prioritisation of recent records, necessary for update_identity to work properly; message to self now gets green from outgoing_message_rating 5 years ago
Krista Bennett f3aa429f86 ENGINE-379 and probably other problems: was calling set_identity from within set_as_pep_user, which was called by get_trust, which is called from set_identity. So... yeah. Bad. 5 years ago
Krista Bennett 26422fbe28 ADD_TO_LOG and GOTO are now simply removed everywhere. 5 years ago
Krista Bennett bce2dc2ebc ENGINE-360 and ENGINE-373 - double free fun action. 5 years ago
Roker 29363185cf fix 3 compiler warings at once. :-) 5 years ago
Krista Bennett cfea00fcef ENGINE-360: Let's try again, shall we? Lots of fixes related to address-only identities. 5 years ago
Krista Bennett 7f28ce85f9 Fixed ENGINE-364 and some test bugs. Users now much be CERTAIN to call update_identity if they need the comm_type afte trust_personal_key (this is in accord with the API) 5 years ago
Krista Bennett 05884d0f33 ENGINE-360: I *think* this should take care of the no-username problem. 5 years ago
Krista Bennett a975ef29c3 ENGINE-250: foreign keys are now on and tests pass. Be aware that with the amount of time we may have been running with them off, there may be other execution paths that cause trouble. File bugs against any DB errors. 5 years ago
Krista Bennett 29ed86ed4b ENGINE-250: fixed some things, am screaming at others. Have overcome the 'insert or update' issue at least, probably. 5 years ago
Krista Bennett 12896c3553 Intermittent commit 5 years ago
Krista Bennett 9b5b161220 A whole horde of trust fixes (mistrust list added, tests fixed, and sneaky null string in elect key removed) 5 years ago
Krista Bennett 9696808ead shelving mistrust investigation and fixes to fry bigger fish 5 years ago
Krista Bennett 36a0d49071 ENGINE-345: fix to outgoing_message_rating - set to PEP_rating_unencrypted instead of unknown 5 years ago
Krista Bennett 5f1dc494f9 Urgh. Fixing bad merge (???) 5 years ago
Krista Bennett 6b51966b22 Removed all 2-party keysync components from engine. 5 years ago
Hernâni Marques 2794f561ae Unneeded assignment 5 years ago
Krista Bennett c550cdb776 ENGINE-254: ENGINE-266: undo function now in pEpEngine for last mistrust action 6 years ago
Edouard Tisserant b84a7282f1 ENGINE-226 identity->me => _identity_me() 6 years ago
Roker 1db08290d8 rename macro ERROR(x) into ADD_TO_LOG(x) to avoid problems on MSVC 6 years ago
Krista Bennett 05af81498a ENGINE-209: commit before travel. Updated a lot of mistakes, but need to fix a compiler error. 6 years ago
Krista Bennett 51a5b10a16 ENGINE-209: compiling again 6 years ago
Krista Bennett 4115604571 ENGINE-209: intermittent commit - need to put get_identities_by_fpr into some other files so I can finish up the clearing of the revoked key from affected identities 6 years ago
Krista Bennett c5a93381de ENGINE-209: shelving changes quickly 6 years ago
Roker e0bcddd4b6 fix b0rken merge. *sigh* 6 years ago