Commit Graph

332 Commits

Author SHA1 Message Date
Vincent Breitmoser
921431b05f more Dao work 2018-07-02 14:50:11 +02:00
Vincent Breitmoser
d133b732e5 use SQLDelight, remove ApiApps access from KeychainProvider 2018-07-02 14:50:11 +02:00
Vincent Breitmoser
40b7701f58 use WorkManager for key sync 2018-06-21 19:21:41 +02:00
Vincent Breitmoser
08ab5669a5 extract getDrawableAsNotificationBitmap into ResourceUtils 2018-06-21 19:21:41 +02:00
Vincent Breitmoser
8adf4a8a64 move notification of key changes into DAOs 2018-06-14 16:52:43 +02:00
Vincent Breitmoser
571c02180f clean up ExternalKeychainProvider, remove content resolver hack 2018-06-09 20:29:46 +02:00
Wiktor Kwapisiewicz
92e7995b83 Add preference toggle for switching on/off WKD 2018-05-23 15:06:59 +02:00
Wiktor Kwapisiewicz
fe78850b3d Automatically construct CloudSearchPrefs using auto-value 2018-05-23 15:06:59 +02:00
Wiktor Kwapisiewicz
222231066e Show import key dialog when clicking on WKD URL
This change extends WKD support for direct Web Key Directory URLs
similarily to Facebook key URLs and HKP URLs.

When a link with scheme `https` and path starting with
`/.well-known/openpgpkey/hu/` is clicked Android will suggest importing
the key with OpenKeychain.

Fixes #2270.
2018-05-22 22:13:00 +02:00
Wiktor Kwapisiewicz
bc25b345fc Extract out contruction of Web Key Directory URLs
Moves `toWebKeyDirectoryURL` to a separate class adding unit tests
for URL correctness as well as support for spaces at the beginning
and end of the e-mail. Spaces are frequently automatically inserted
by soft keyboards.
2018-05-22 21:32:53 +02:00
Wiktor Kwapisiewicz
fa3b32eddc Add ability to search for keys using WKD protocol
If a search pattern that looks like an email address is found
an additional query using Web Key Directory will be performed.

Implements basic flow described in "Key Discovery" [0] I-D.
Querying SRV records is not supported.

Fixes partially #2270.

[0]: https://tools.ietf.org/html/draft-koch-openpgp-webkey-service-05#section-3.1
2018-05-12 21:14:56 +02:00
Vincent Breitmoser
ba9d714c1b Add Numeric9x4PassphraseUtils 2018-04-13 19:37:33 +02:00
Vincent Breitmoser
3fdc4059b5 add option to toggle self-encrypt for text 2018-03-05 14:02:48 +01:00
Vincent Breitmoser
285184d7c6 add option to toggle self-encrypt for files 2018-03-05 14:02:32 +01:00
Dominik Schürmann
7eaabdaac1 Refactor preference upgrade 2018-02-20 16:59:03 +01:00
Dominik Schürmann
3700432bd2 Use keyserver.ubuntu.com as new default 2018-02-20 16:41:24 +01:00
Vincent Breitmoser
3379a1d85c update compile sdk to 27 2018-01-24 01:32:14 +01:00
Vincent Breitmoser
22c65f2ab8 Use Timber instead of Android.Log 2018-01-20 21:32:37 +01:00
Dominik Schürmann
3cc43e9f69 Adapt copyright headers according to CLA 2017-12-15 16:03:36 +01:00
Dominik Schürmann
4514e1b074 Remove experimental word confirm 2017-12-15 15:25:45 +01:00
Vincent Breitmoser
ecf9249247 don't create OpenKeychain dir on startup 2017-11-29 15:05:45 +01:00
Dominik Schürmann
537de5fdcb Merge pull request #2228 from open-keychain/fix-notify
Do not re-enable contacts sync if first time wizard is not finished
2017-11-28 16:20:39 +01:00
Dominik Schürmann
91ad0203f2 Do not re-enable contacts sync if first time wizard is not finished 2017-11-28 16:15:08 +01:00
Vincent Breitmoser
0d099116d5 add experimental setting to allow untested usb devices 2017-11-28 15:08:13 +01:00
Vincent Breitmoser
a6f97cf46e remember if key signatures table has been initialized 2017-09-23 01:35:40 +02:00
Vincent Breitmoser
b814753b3b get rid of consolidate operation 2017-09-23 01:35:39 +02:00
Vincent Breitmoser
647589c9ae default caching ttl to "until cleared" 2017-09-20 20:50:03 +02:00
Vincent Breitmoser
03ca1292fa remember last selected passphrase cache ttl 2017-09-20 17:02:15 +02:00
Vincent Breitmoser
d04439df6b ditch passphrase "time to live" setting 2017-09-20 17:02:15 +02:00
Vincent Breitmoser
6e8a768011 close database when cursor is closed for external provider 2017-08-29 19:38:25 +02:00
Vincent Breitmoser
b94a8c9dee remove nfc key transfer feature, this was broken anyways 2017-08-02 22:13:05 +02:00
Vincent Breitmoser
4e920afe94 rewrite NfcHelper 2017-08-02 22:05:54 +02:00
Vincent Breitmoser
b8d01bf9d2 refactor keyserver class structure, use AutoValue for ParcelableHkpKeyserver 2017-07-24 22:08:36 +02:00
Vincent Breitmoser
27f6f4ef6c use autovalue for ParcelableKeyRing 2017-05-29 14:20:25 +02:00
Vincent Breitmoser
5f89d28937 use autovalue for ParcelableS2K 2017-05-25 15:42:27 +02:00
Vincent Breitmoser
ef366173d0 use autovalue for ImportKeyringParcel 2017-05-25 15:42:26 +02:00
Vincent Breitmoser
63774a0632 use autovalue for CryptoInputParcel 2017-05-25 15:42:24 +02:00
Vincent Breitmoser
add9bf8973 use byte[] for expected fingerprint 2017-05-21 04:15:47 +02:00
Vincent Breitmoser
2124a4598a DatabaseInteractor -> KeyRepository 2017-02-24 18:24:11 +01:00
Vincent Breitmoser
c7e01926e1 add LocalKeyStorage, don't store public keys larger than 50kb in database 2017-02-24 18:06:47 +01:00
Vincent Breitmoser
c2b9af077a replace calls to getGenericData with getCachedPublicKeyRing equivalents 2017-02-24 18:04:54 +01:00
Vincent Breitmoser
aef6e6614e extract DatabaseReadWriteInteractor 2017-02-24 18:04:54 +01:00
Vincent Breitmoser
d577257bd5 rename ProviderHelper -> DatabaseInteractor 2017-02-24 18:04:54 +01:00
Dominik Schürmann
967bebb99c Init libkeychain and move some utils 2017-02-10 18:14:26 +01:00
Hari
ba1bd8d48a Added insecure warning to import card 2017-02-04 01:47:14 +05:30
daquexian
f26a355bd6 remove some splitUserId 2017-01-21 23:21:19 +08:00
Dominik Schürmann
63244a113a Code formatting and package re-structuring 2017-01-05 13:56:09 +01:00
Arnaud Fontaine
42b5e291ca Rename methods related only to security tokens 2017-01-05 11:01:14 +01:00
Arnaud Fontaine
a6b7b2bf4e Support of SmartPGP secure messaging 2017-01-04 14:59:57 +01:00
Arnaud Fontaine
05bfd6bc01 Support of OpenPGP card v3 2017-01-04 13:39:19 +01:00