Commit Graph

2316 Commits

Author SHA1 Message Date
Vincent Breitmoser
6585e7113d move loading of certs into CertificationDao 2018-07-02 14:50:11 +02:00
Vincent Breitmoser
f3ef530b96 ditch ViewCertActivity and cert fragment in AdvKeyView 2018-07-02 14:50:11 +02:00
Vincent Breitmoser
de708288fb minor layout fix with autocrypt ids 2018-07-02 14:50:11 +02:00
Vincent Breitmoser
e144a402b5 extract autocrypt_peers from KeychainProvider into AutocryptPeerDao 2018-07-02 14:50:11 +02:00
Vincent Breitmoser
bae90f1b23 extract UpdatedKeys access from KeychainProvider into KeyMetadataDao 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
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
0ef46ecb81 use DateUtils instead of PrettyTime (fixes related crash) 2018-06-14 14:21:14 +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
abc50f7e40 fix crash in ImportKeysAdapter
Fixes #2343
2018-06-12 11:06:54 +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
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
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
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
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
Vincent Breitmoser
225fdbb79a Merge pull request #2318 from wiktor-k/vcard-key
Extend QR scanner to support VCards with KEY field
2018-05-11 17:17:17 +02:00
Wiktor Kwapisiewicz
01aadf6a1f Extend QR scanner to support VCards with KEY field
Currently QR scanner supports only `openpgp4fpr` URIs. VCard specification
allows embedding public key information as an URI in `KEY` field [0]. Two
schemes used with this field - `https` and `data` are either insecure or
not practical [1]. As the value of `KEY` field is a URI one can use
`openpgp4fpr` URI there to have both secure and small links.

This change will extract URI from `KEY` field from a scanned VCard and
process it just like it would be a URI scanned directly. When a `openpgp4fpr`
URI is put there the UI would search and import the key and show the confirm
dialog.

Example VCard with this URI:

    BEGIN:VCARD
    FN:Test WKD
    EMAIL:test-wkd@metacode.biz
    KEY:OPENPGP4FPR:74EC8D3DA82A79DAA25DF10C6BA55ED83ABAE1BB
    END:VCARD

[0]: https://tools.ietf.org/html/rfc6350#section-6.8.1

[1]: https://www.av8n.com/computer/htm/distributing-keys.htm#sec-fing
2018-05-10 15:22:09 +02:00
Vincent Breitmoser
cb6913f6dd Simplify backup code fragment 2018-05-08 15:20:36 +02:00
Dominik Schürmann
5db00cd924 Merge pull request #2301 from open-keychain/api-choose-sign-key
New identity chooser dialog for API
2018-05-03 14:58:20 +02:00
Vincent Breitmoser
b92ff86988 Redesign "select signing key" api dialog 2018-04-18 15:34:39 +02:00
Vincent Breitmoser
c9b1690b76 add AsyncTaskLiveData class 2018-04-18 15:34:39 +02:00
Vincent Breitmoser
8ad2d56f1c Add option to BackupOperation to export only secret keys 2018-04-16 22:14:38 +02:00
Vincent Breitmoser
45c481c067 add prefixColor attribute to PrefixedEditText 2018-04-16 22:12:28 +02:00
Vincent Breitmoser
9bb19a3ad7 Support import from application/autocrypt-setup type 2018-04-16 16:45:16 +02:00
Vincent Breitmoser
079305c375 Add support for Passphrase-Begin in PassphraseDialog 2018-04-16 16:45:16 +02:00
Vincent Breitmoser
a140797da7 Fix PrefixedEditText in combination with hints 2018-04-13 21:45:48 +02:00
Vincent Breitmoser
f238e1a75e Use numeric9x4 format in backup fragment 2018-04-13 21:41:30 +02:00
Vincent Breitmoser
ded58588ad Support numeric9x4 passphrase-format during decryption 2018-04-13 21:12:21 +02:00
Vincent Breitmoser
a1da52420e Always show creation time for own keys, and show as "just now" for new keys 2018-03-31 00:13:49 +02:00
Vincent Breitmoser
5032453dc2 show email address as name instead of '<no name>' 2018-03-31 00:12:48 +02:00
Vincent Breitmoser
1892baba62 Change upload checkbox name and default in certify dialog, too 2018-03-26 22:02:53 +02:00
Vincent Breitmoser
f96fdd582f Change wording on keyserver upload and disable by default for new keys 2018-03-26 21:39:04 +02:00
Vincent Breitmoser
b598a4d965 Some small AS cleanups 2018-03-26 21:22:14 +02:00
Vincent Breitmoser
993cb57d92 show "add linked id" button only for secret keys 2018-03-24 18:18:10 +01:00
Vincent Breitmoser
a363a6cacb remove "Edit Identities" button from identities card 2018-03-24 18:10:35 +01:00
Vincent Breitmoser
57a4cecbfb extract LastUpdateInteractor from KeyRepository 2018-03-12 21:45:06 +01:00
Vincent Breitmoser
37865f5c0c ditch password strength indicator 2018-03-12 15:52:56 +01:00
Vincent Breitmoser
80b8374eaa remove passphrase fragment from key creation 2018-03-12 15:51:54 +01:00