Commit Graph

18 Commits

Author SHA1 Message Date
Rubén Dávila c50725fecf Address feedback from last code review 2017-10-05 08:25:27 -05:00
Rubén Dávila d0572d9aad Refactor the extraction and generation of GPG subkeys 2017-10-05 08:25:27 -05:00
Rubén Dávila 62d5403401 Process and create subkeys when a new GPG key is created 2017-10-05 08:25:27 -05:00
Alexis Reigel bb1cf2aaf9 Fix: GPG tmp dir removal race condition 2017-09-13 11:31:37 +00:00
Alexis Reigel 2a89037b63 downcase gpg key's emails
this is necessary for email comparisons
2017-09-05 12:18:31 +02:00
Alexis Reigel a175966677 reset original directory in ensure 2017-08-14 12:57:56 +02:00
Alexis Reigel edcc488b75 use mutex for keychain interaction
setting of the gpg home directory is not thread safe, as the directoy
gets stored on the class.

if multiple threads change the directory at the same time, one of the
threads will be working in the wrong directory.
2017-08-14 12:57:56 +02:00
Alexis Reigel 6cd9888f6f store gpg return directory locally 2017-08-11 08:38:42 +02:00
Alexis Reigel cd01e82873 store gpg user name and email on the signature 2017-07-27 15:44:39 +02:00
Alexis Reigel deb474b413 extract common method 2017-07-27 15:43:37 +02:00
Alexis Reigel 2f956fae03 verify gpg commit using tmp keyring and db query 2017-07-27 15:42:53 +02:00
Alexis Reigel 3c42d73098 add primary keyid attribute to gpg keys 2017-07-27 15:42:53 +02:00
Alexis Reigel 7e13d96715 don't sync to keychain file 2017-07-27 15:42:53 +02:00
Alexis Reigel 8bd94a7304 remove gpg from keychain when user's email changes 2017-07-27 15:42:04 +02:00
Alexis Reigel 0668521b2b move current keychain methods to namespace 2017-07-27 15:40:41 +02:00
Alexis Reigel 0e3d3d60ba email handling for gpg keys 2017-07-27 15:40:41 +02:00
Alexis Reigel 87c0fd3455 add / remove gpg keys to / from system keychain 2017-07-27 15:40:41 +02:00
Alexis Reigel e34cef0cd2 extract gpg functionality to lib class 2017-07-27 15:40:41 +02:00