Commit Graph

292 Commits (6741a6c735179b8e2db38af42a102ba2b9ceb1e7)

Author SHA1 Message Date
Krista Grothoff 2e4b7f75f3 ENGINE-27: type 7 years ago
Krista Grothoff a11b7e7ee1 ENGINE-27: setting fpr to empty string, not NULL, so set_identity doesn't crash. 7 years ago
Krista Grothoff 34fa1f2a83 ENGINE-27: intermittent commit, update_identity should now never try to set or return a blacklisted key 7 years ago
Krista Grothoff acad8e0a08 ENGINE-27: update_identity no longer pays attention to the input identity's fpr, but pulls one from elect_pubkey. 7 years ago
Roker 1d2ae094b2 merge "default" into "keysync" branch 7 years ago
Edouard Tisserant 66a97e2c20 ENGINE-94 Workaround key-election not being stored in case of expired key 7 years ago
Edouard Tisserant a3804f15b9 KeyGen state injection should happen only when key have been generated... 7 years ago
Edouard Tisserant 2cf840e4e7 moved KeyGen state injection from generate_keypair() to the bottom of myself() (in case of successfull keygen), thus ensuring that new identity has been already created when starting to multicast beacons to all own identities. 7 years ago
Volker Birk ccb25c2ea6 freeing what could not be added 7 years ago
Volker Birk f6a473389c adding onomem safeguard 7 years ago
Volker Birk f233a934d6 ... 7 years ago
Volker Birk 91e5b7da91 own_identities_retrieve() bullet proof 7 years ago
Volker Birk c0f9e61b8c BUGFIX: user_id and username 7 years ago
Volker Birk b0bed36c00 own identities have me flag set 7 years ago
Volker Birk eae4c92185 adding get_own_addresses() 7 years ago
Volker Birk becce8c271 empty address allowed for myself() 7 years ago
Volker Birk be18b1c198 update_identity(): if no user_id then have a look if it is an own identity first, and if so call myself() 7 years ago
Volker Birk 97711e429c BUGFIX: user_id cropped 7 years ago
Volker Birk 309b5d4ed4 BUGFIX: user_id cropped 7 years ago
Volker Birk c8fd579fca ... 7 years ago
Volker Birk 7474af98bf adding set_identity_flags_test 7 years ago
Volker Birk ff6283c288 adding set_identity_flags() 7 years ago
Volker Birk e767049511 missing assert 7 years ago
Edouard Tisserant 87b67659c3 fix #30 : memleak in myself(): stored_identity is never freed in keymanagement.c 7 years ago
Edouard Tisserant 444cc650ac Myself() : elect another pre-existing private key if stored own identity key have been removed from GPG keyring (Outlook+GPA case) 7 years ago
Edouard Tisserant 7ec1bdf077 Moved myself() own key election to a separate function 7 years ago
Edouard Tisserant 76a01b7f9e trying to get a better key in update_identity, when existing key has been revoked 7 years ago
Edouard Tisserant 6a9f9bb0f5 fixing use_only_own_private_keys build 7 years ago
Edouard Tisserant cdc6a9d4a1 added use_only_own_private_keys (testing) 7 years ago
Edouard Tisserant ce79f22bda Test for expiry one week before it happens 7 years ago
Edouard Tisserant 438a873575 Revocation-related fixes 7 years ago
Edouard Tisserant 1b14e9b72d Myself records replaced revoked key when generating a new key to replace revoked key 7 years ago
Edouard Tisserant 7fd416a99e Attach_own_key also attach revoke for some time after revocation 7 years ago
Volker Birk d40a4dee65 no if no typo :-P 7 years ago
Volker Birk c09351c9c8 typo 7 years ago
Volker Birk ae2bd5c4a8 bugfix 7 years ago
Edouard Tisserant 12a7477ed6 Remove own_keys table, added PEP_OWN_USERID, unique person userId for any own identities and keys. 7 years ago
Volker Birk 8ce0490ab8 remove size fields of pEp_identity 7 years ago
Edouard Tisserant d5708d03a2 Own keys, now filled and used by myself() 7 years ago
Edouard Tisserant 8e953a1aa7 Own keys (SQL and accessors functions) 7 years ago
Edouard Tisserant 1f5fd47a86 Removed get_best_user, leading to unexpected behaviour when user_id is made null again, for example when corresponding app contact is deleted 7 years ago
Edouard Tisserant a926501109 Made myself() re-use already selected fpr from pre-existing identity if not explicitely given. More restriction while selecting gpg ring's key should still be enforced. 7 years ago
Edouard Tisserant c3e8184c7e Fixed Primary Key of identity table. Was (address) and know is (address, user_id). Added 'virtual' user_id (const string + address) as a side effect, in case user_id isn't given and no user have been created with same address. 7 years ago
Edouard Tisserant b96e16d1c9 Fixed infinite loop in keymanagement.c/_same_fpr(), when fingerprints are different 7 years ago
Volker Birk ab96ae5b31 delete from stringlist 7 years ago
Volker Birk 1261836024 merging 7 years ago
Edouard Tisserant 8d097207fb Comparing fingerprints now accepts spaces and upper and lower case 7 years ago
Volker Birk 9335495d8f delete key references if key is added to blacklist 7 years ago
Lars Rohwedder 7133bd5d71 remove unused MIN, fix () on EMPTYSTR macro 7 years ago
Edouard Tisserant ba77eb0409 Fixed #32 : assert(keylist) without if in keymanagement.c:238 7 years ago
Edouard Tisserant 30bcdcae0a Ticket #28 : improvement: keymanagement.c: update_identity(): strndup instead of strdup (size is known) 7 years ago
Volker Birk 7fc7f3989d SNAFU 7 years ago
Edouard Tisserant b24bcf1b72 Prevent changing identity's fpr when new fpr trust level is lower 7 years ago
Edouard Tisserant ec50919ebd Reworked logic in update_identity, when identity->fpr is provided 7 years ago
Edouard Tisserant e1f50fc25d Backed out changeset a460b5ce0d6e 7 years ago
Edouard Tisserant 0f97e81397 update_identity doesn't try to apply given comm_type anymore. 7 years ago
Edouard Tisserant c1cfc761f2 intermediate state, implementing mistrust 7 years ago
Edouard Tisserant 8805497f69 Renamed EMPTY macro to EMPTYSTR, conflicting with some apple includes, and then being always 0 7 years ago
Volker Birk be58c17c0c sparing a call 7 years ago
Volker Birk 1c9399e8d1 An undo is possible for keys we don't own, and therefore have not revoked. 7 years ago
Volker Birk afe4a07cd7 key_reset_trust() can reset trust_personal_key() only.
key_compromized() cannot be reset now, because this would require to undo key revocation

The "delete from" implementation in pEpEngine.c was not a good idea. It was deleting too much:
trust with p≡p is between a key and a key owner (user_id).
7 years ago
Edouard Tisserant 3ca28f148f Added key_reset_trust, accepting identity instead of fpr 7 years ago
Edouard Tisserant 7a8d043aa9 Fixed typo. Are all *_size members of identity struct really used ? 7 years ago
Edouard Tisserant 76ff681231 Code can die twice 7 years ago
Edouard Tisserant 5d168b5451 Was that dead code ? 8 years ago
Volker Birk 920e568497 very small type error, nothing to blame important people for, or even friends 8 years ago
Edouard Tisserant 040a982082 Fixed double free and unprotected NULL dereferencing. 8 years ago
Volker Birk 331539c3aa PEP_CANNOT_SET_TRUST added 8 years ago
Volker Birk b18b0ee923 key_compromized() added 8 years ago
Volker Birk e5b22b4d94 only what is yellow can be green
MISSING FEATURE: S/MIME has to be handled depending on trusted CAs
8 years ago
Volker Birk 8497834daa adding trust_personal_key() 8 years ago
Volker Birk 87223ae4f0 better policy 8 years ago
Volker Birk 9bd721405c bugfix 8 years ago
Volker Birk 4408dbb1dd examine callback 8 years ago
Volker Birk e27f9a1425 adding missing functions in GPGME 8 years ago
Volker Birk 20efb6b7ee ... 8 years ago
Volker Birk fda2b73599 ... 8 years ago
Volker Birk 6217a2f22b DEBUG_LOG() for keymanagement 8 years ago
Volker Birk 2cb54a7ec1 DEBUG_LOG() for keymanagement 8 years ago
Volker Birk 0e4d12d226 checking if own key is expired and renew it
on demand
8 years ago
Volker Birk 808615adf8 safety 8 years ago
Volker Birk f7233d42ab modifications for Windoze 8 years ago
vb 3bb5d2377a strncasecmp(3) 8 years ago
vb 079cd03b56 BUGFIX: init of transports wrong 8 years ago
vb be6a61d80f warnings with clang 8 years ago
vb 4b94f3c410 ... 9 years ago
vb f1889d55ad bugfix: update_identity 9 years ago
vb 5abda13db7 bugfix: when identity is not stored yet, update_identity failes 9 years ago
vb 1369846eee ... 9 years ago
vb 6a6d2eb64f ... 9 years ago
vb af6c3b757e moving functionality into pEpEngine 9 years ago
vb 7feceb3f9f initial commit 9 years ago