Krista Bennett
a0aa227b72
Committing to move to proper branch
5 years ago
Krista Bennett
c8d1518885
ENGINE-289: reverted most of the identity->me removal. While tests pass, this is not in its final form.
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
1e2824e008
shelving changes
5 years ago
Krista Bennett
c550cdb776
ENGINE-254: ENGINE-266: undo function now in pEpEngine for last mistrust action
5 years ago
Edouard Tisserant
b84a7282f1
ENGINE-226 identity->me => _identity_me()
5 years ago
Roker
1db08290d8
rename macro ERROR(x) into ADD_TO_LOG(x) to avoid problems on MSVC
5 years ago
Krista Bennett
05af81498a
ENGINE-209: commit before travel. Updated a lot of mistakes, but need to fix a compiler error.
5 years ago
Krista Bennett
51a5b10a16
ENGINE-209: compiling again
5 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
5 years ago
Krista Bennett
c5a93381de
ENGINE-209: shelving changes quickly
5 years ago
Roker
e0bcddd4b6
fix b0rken merge. *sigh*
5 years ago
Edouard Tisserant
40e6fb92ec
ENGINE-183 more fixes
5 years ago
Edouard Tisserant
3a5010ac24
ENGINE-183 remove session.use_only_own_private_keys, and add existing priv keys to own_keys table at initial startup. Also added fpr from own_keys to own_key_is_listed, influencing result of ellect_own_key.
5 years ago
Edouard Tisserant
99a13d5e71
update_identity() now takes PEP_ct_key_expired as a special case, and replaces it with actual key rating if not expired enymore. Otherwise, partner's rating with expired key was never comming back to normal, even if key was renewed.
5 years ago
Roker
499528818f
add more ERROR() and GOTO() to find out why the call failed. it is in keymanagement.c :-D
5 years ago
Krista Grothoff
6e01c347d8
gpg and internal API changes for ENGINE-172 implemented and tested (no-sign); no-key not in yet
5 years ago
Krista Grothoff
40e19773f3
ENGINE-174: stowing fixes to ratings while attempting to reactivate branch
5 years ago
Roker
bbe403a3bb
avoid unitialized local pointer variables to reduce hard-to-find bugs
5 years ago
Krista Grothoff
a7f6929b99
Removed assert, because an empty username is totally valid input from an email, and we deal with it directly in the code that follows where the assert was.
5 years ago
Edouard Tisserant
69a3d474ed
ENGINE-137 (fixing side effect of optimization) update_identity: added key re-election when a key has been deleted from keyring. fixed test blacklist_accept_new_key_test using that feature
6 years ago
Volker Birk
e4cfb490c6
adding license info to each file
5 years ago
Edouard Tisserant
143760e389
ENGINE-137 fix optimization of update_identity, elect_pubkey already does blacklisted key exclusion, no need to redo it here.
6 years ago
Edouard Tisserant
f504dc8506
ENGINE-137 3x optimization in update_identity, though it breaks blacklist test. To be continued
6 years ago
Krista Grothoff
c062591bc5
Fixed additional null username issue in update_identity
6 years ago
Edouard Tisserant
ab6e55446e
Prevent assertion when username is not given for own identity, and doing keygen
6 years ago
Krista Grothoff
d5e3d94e83
ENGINE-112: updated get_trust in update_identity and stopped set_identity from setting empty fprs as keypairs and trust entries
6 years ago
Edouard Tisserant
40224d7ce2
Copy-paste is bad.
6 years ago
Edouard Tisserant
857449c676
ENGINE-140 clean'up own_identities_retrieve so that available pEpEngine API returns all own identities, not only those that can be synced
6 years ago
Edouard Tisserant
db4696a34a
ENGINE-140 changed identities flags update policy
6 years ago
Edouard Tisserant
601a5f7ce7
ENGINE-140 #comment Added own_keys table, linking pgp_keypair to identity in case user_id = PEP_OWN_USERID.
Added related set_own_key and own_keys_retieve.
Updated set_identity, set_identity_flags and added unset_identity_flags, all doing bitwise logic to untouched keep flags accross calls.
Removed keys_retrieve_by_flag and PEP_kpf_own_key, now replaced by own_keys table.
Removed duplicated code seting _DDL_USER_VERSION in manageent DB.
Removed exists_empty_fpr_entry update_fprless_identity, and corresponding logic in set_identity()
Builds, but doesn't pass test - DO NOT USE
6 years ago
Edouard Tisserant
f82c4f2c7b
No more _update_indentiy() and with_myself parameter. Rather, added a _myself(), with a do_keygen parameter. Now, only explicit call to myself(), key_mistrusted(), encrypt_message(), encrypt_message_to_self() may trigger keygen, not outgoing_message_rating() or update_identity()
6 years ago
Edouard Tisserant
f173c2d243
fixed memory leak in myself
6 years ago
Edouard Tisserant
a5d83f5927
Backed out changeset 2ba0f96f6c0e. Broke KeySync, but for some reason last test run didn't catch it. Will graft those changes in a branch.
6 years ago
Edouard Tisserant
969ac0b290
ENGINE-140: now send all keys that have been at some point used as own key _on that device_
6 years ago
Krista Grothoff
bba7e41310
ENGINE-84: fixed status TODOs.
6 years ago
Volker Birk
e843fdb577
missing install files fixed
6 years ago
Krista Grothoff
7ee6f7aeec
ENGINE-84: #comment now generating new keys when no usable private key is available, and not electing/selecting/attempting to use own keys as private keys where private half of the keypair is blacklisted, revoked, or missing. TODO: fix status TODOs, test more before merging back. But it's working, in general.
6 years ago
Krista Grothoff
123ba933e4
ENGINE-84: working on ensuring keypairs missing private keys are not selected for encryption candidates
6 years ago
Krista Grothoff
01ea05e22e
Fixed problem with null usernames coming from prepackaged mime messages in 'From' for MIME_encrypt_message
6 years ago
Krista Grothoff
c6aee70900
stowing changes
6 years ago
Krista Grothoff
19f553d85a
ENGINE-129: update_identity now properly returns an ID with an empty fpr string when no key can be elected because none are in the keyring
6 years ago
Edouard Tisserant
127f50303e
sync: decrypt_message and myself shouldn't return sync errors except if out of memory
6 years ago
Edouard Tisserant
5b3f3cbb44
Deleted 'useless extraneous code that got pulled over from an earlier version', according to darthmama
6 years ago
Krista Grothoff
64906852a6
ENGINE-112: #comment Fixed empty fpr problems in stored identities which occurred due to blacklisting. When adding other keys, we now check to see if there is a matching identity entry which lacks an fpr and, if so, we update it instead of adding a new one. Also fixed elect_pubkey NOT to return blacklisted pubkeys.
6 years ago
Edouard Tisserant
414e24e242
deleted unused _same_fpr() causing a warning in keymanagement.c
6 years ago
Krista Grothoff
21acdf33fa
Actually, the flag was correct. Sigh.
6 years ago
Krista Grothoff
7ceb9fee62
don't_use_fpr was always set to true in update_identity. Fixed.
6 years ago
Krista Grothoff
0c39fa468c
include in keymanagement.c for blacklist_is_listed
6 years ago