Vincent Breitmoser
bae90f1b23
extract UpdatedKeys access from KeychainProvider into KeyMetadataDao
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
59c9f52e85
Store secret keys in private storage instead of database
2018-07-02 14:50:11 +02:00
Vincent Breitmoser
a3fd1609df
fix table reference
2018-07-02 14:50:11 +02:00
Vincent Breitmoser
8bf71b893c
use KeyserverSyncWorker for updating keys in the foreground, too
2018-07-02 14:50:11 +02:00
Vincent Breitmoser
b854331daa
Show notification during key sync
2018-06-21 19:21:41 +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
1593cc0826
use WorkManager to schedule temporary file cleanups
2018-06-21 19:21:41 +02:00
Vincent Breitmoser
d57fffb7ba
remove capturing pattern group names for compatibility
...
Fixes #2352
2018-06-21 19:17:22 +02:00
Vincent Breitmoser
651e799fe2
fix fragment management in AppSettingsActivity
2018-06-21 13:40:31 +02:00
Dominik Schürmann
e8328a39b1
Merge pull request #2348 from open-keychain/live-data
...
Use LiveData in favor of ContentLoader in ViewKeyFragment
2018-06-19 16:44:06 +02:00
Dominik Schürmann
289ba7cadc
fix NPE in EncryptDecryptFragment on empty clipboard
2018-06-19 15:41:44 +02:00
Vincent Breitmoser
89aa99a13f
show Snackbar if clipboard contains key data
2018-06-19 13:28:29 +02:00
Vincent Breitmoser
8adf4a8a64
move notification of key changes into DAOs
2018-06-14 16:52:43 +02:00
Vincent Breitmoser
10d3ca814c
Use LiveData in favor of ContentLoader for ViewKeyFragment
2018-06-14 16:52:43 +02:00
Vincent Breitmoser
700e06dcb9
Catch SecurityException when opening URIs during decrypt
2018-06-14 14:24:56 +02:00
Vincent Breitmoser
0ef46ecb81
use DateUtils instead of PrettyTime (fixes related crash)
2018-06-14 14:21:14 +02:00
Vincent Breitmoser
996856ddde
Fix NPE on missing charset in HkpKeyserverClient
...
Hopefully fixes #2345
2018-06-14 13:52:47 +02:00
Vincent Breitmoser
5db5db2a0c
clear cache after changing passphrase
...
Fixes #2239
2018-06-13 18:25:35 +02:00
Vincent Breitmoser
69756eb84a
prevent NPE in divider decoration
2018-06-12 18:36:13 +02:00
Vincent Breitmoser
fc6084a7ef
set cursor factory before the cursor is actually created
2018-06-12 18:09:47 +02:00
Vincent Breitmoser
4967a49949
fix date queries in autocrypt handling
2018-06-12 16:44:27 +02:00
Vincent Breitmoser
4f6852ccfc
log api calls
2018-06-12 15:39:53 +02:00
Vincent Breitmoser
c309c75fee
fix error in savePublicKey
2018-06-12 15:39:42 +02:00
Vincent Breitmoser
6e67c14949
correctly parcel SaveKeyringParcel
2018-06-12 13:39:00 +02:00
Vincent Breitmoser
6070e7a9f9
delay cleanup after Application.onCreate
2018-06-12 13:32:29 +02:00
Vincent Breitmoser
dc913fc8ca
remove branding of glow effect
2018-06-12 13:24:59 +02:00
Vincent Breitmoser
abc50f7e40
fix crash in ImportKeysAdapter
...
Fixes #2343
2018-06-12 11:06:54 +02:00
Vincent Breitmoser
a0f48b8353
log elapsed time for secure messaging setup
2018-06-12 11:06:54 +02:00
Dominik Schürmann
a2b2cadcd1
Merge remote-tracking branch 'origin/fix-external-provider'
2018-06-11 10:00:34 +02:00
Vincent Breitmoser
571c02180f
clean up ExternalKeychainProvider, remove content resolver hack
2018-06-09 20:29:46 +02:00
Vincent Breitmoser
fffc98f00a
Merge pull request #2341 from open-keychain/usb-ledger
...
Support Ledger Nano S
2018-06-08 11:06:40 +02:00
Vincent Breitmoser
635ee3e876
Don't pass through selection in ExternalKeychainProvider
...
The external provider uses the selectionArgs parameter in a non-standard
way, so it doesn't make sense to pass selection to the query
independently. Also enabling strict mode here, to nail down the fields
that can be requested to the contract of the provider.
2018-06-07 14:39:16 +02:00
Vincent Breitmoser
0c0c095ad8
add Ledger Nano S to supported devices
2018-06-07 14:34:09 +02:00
Vincent Breitmoser
122a8d97f8
refresh connection capabilities even if connection was already established
...
This is relevant for he Ledger Nano S, which may change "key slots"
interactively.
2018-06-07 14:34:09 +02:00
Vincent Breitmoser
35e7fece0d
Add trivial short apdu protocol for T=0
2018-06-07 14:34:09 +02:00
jatoko
e965475540
HKP server handling adopted to conform to draft-shaw-openpgp-hkp-00
...
- updated regex
- added error if server does not implement hkp function
- added algorithm extraction from downloaded key if hkp fails
-- fixes algorithm shown unknown if hkp response field is empty
2018-05-30 17:10:39 +02:00
Vincent Breitmoser
98dc854d03
Use 0-9 for generated admin pin (derp)
2018-05-23 16:24:05 +02:00
Vincent Breitmoser
d00e27ad2e
Attempt to fix change of key attributes during smartcard key creation
2018-05-23 15:45:43 +02:00
Vincent Breitmoser
1e05b7999e
Merge pull request #2329 from wiktor-k/wkd-url
...
Extend WKD support to include WKD URLs
2018-05-23 15:30: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
Vincent Breitmoser
aa1e9ffb97
Merge pull request #2323 from wiktor-k/ndef-openpgp4fpr
...
Add support for NDEF tags with `openpgp4fpr` URIs
2018-05-23 13:20:05 +02:00
Wiktor Kwapisiewicz
f6b3887f93
Follow redirects when fetching keys over WKD
...
Some hosts (like `kernel.org`) redirect all requests to a subdomain (in
this case `www`). As WKD queries are always over HTTPS following redirects
would be safe.
2018-05-22 22:13:12 +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
759e51e6f4
Add support for NDEF tags with openpgp4fpr URIs
...
This change allows importing keys from NDEF tags that have fingerprint
encoded as an `openpgp4fpr` URI when the application is in background.
After scanning a tag the `Import keys` activity is shown with results of
the search for key fingerprint encoded in the tag.
2018-05-22 09:25:52 +02:00
Vincent Breitmoser
090eb7e6e3
Merge pull request #2314 from wiktor-k/wkd
...
Search for keys in Web Key Directory
2018-05-21 20:46:16 +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