Commit Graph

6794 Commits (2c6ad54e02c9aec1c33fd3b924a106f66a588047)

Author SHA1 Message Date
Dominik Schürmann 2c6ad54e02 Pull from transifex 2018-06-11 10:19:26 +02:00
Dominik Schürmann 6022d18e2b Changelog 5.1 2018-06-11 10:09:22 +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
Vincent Breitmoser 7e591118de
Merge pull request #2337 from jatoko/draft-shaw-openpgp-hkp-00-conformance
HKP server handling adopted to conform to draft-shaw-openpgp-hkp-00
2018-06-04 11:48:47 +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 53fa371c9c
Merge pull request #2331 from open-keychain/fix_personalized_learning
Disable personalized learning for password input widgets
2018-05-29 16:41:04 +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 7e3c985c54
Add intent filter for handling WKD link in Firefox
Firefox for Android requires `mimeType` condition on the intent filter.
Built-in browsers (e.g. Chrome) need an intent filter that will *not* have
`mimeType` conditions.

Using two common MIME types: `application/octet-stream` is mentioned in
the I-D and `application/pgp-keys` is a common type for keys used in the
wild.
2018-05-23 15:07:04 +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
Christian Hagau 546ff281b7 Disable personalized learning for password/pin/backup code input widgets 2018-05-22 00:00:00 +00: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
Vincent Breitmoser 2a33245b20 fix nfc sweetspot activity 2018-05-21 20:25:56 +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
Dominik Schürmann e7990ebe7c Version 5.0.2 2018-05-08 17:49:36 +02:00
Dominik Schürmann e6233d1017
Merge pull request #2313 from open-keychain/simplify-backup-code
Simplify backup code fragment
2018-05-08 17:48:45 +02:00
Vincent Breitmoser cb6913f6dd Simplify backup code fragment 2018-05-08 15:20:36 +02:00
Dominik Schürmann cfc5cc4c44 Version 5.0.1 2018-05-05 23:58:41 +02:00
Dominik Schürmann 32005b94d9
Merge pull request #2305 from open-keychain/autocrypt-setup-message-api
Add autocrypt key transfer api method
2018-05-03 15:44:39 +02:00
Vincent Breitmoser 8edd084212 allow setting custom headers in autocrypt setup message 2018-05-03 15:27:04 +02:00
Vincent Breitmoser a63aca623d make sure all keys are allowed for transfer call 2018-05-03 15:26:27 +02:00
Vincent Breitmoser be58f2ff4c Add autocrypt key transfer api method 2018-05-03 15:26:24 +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 f8e6e08410 incorporate feedback 2018-05-02 20:02:53 +02:00
Vincent Breitmoser 85032b4354
Merge pull request #2310 from hagau/ssh_signatures_conv
Cleanup SshSignatureConverter
2018-05-01 15:23:12 +02:00
Vincent Breitmoser ff6c4d50e3
Merge pull request #2309 from hagau/ssh_rsa_sha2_auth
Use correct signature format identifier when creating SSH signatures for RSA with SHA256 & SHA512
2018-05-01 13:55:54 +02:00
Christian Hagau e849ee3ca8 Add references to SshSignatureConverter 2018-05-01 00:00:00 +00:00
Christian Hagau ba03969f7c Handle EdDSA & DSA SSH signatures separately in SshSignatureConverter 2018-05-01 00:00:00 +00:00
Dominik Schürmann 4151d37d14
Merge pull request #2304 from open-keychain/autocrypt-setup-message
Autocrypt setup message format support
2018-04-29 08:47:30 +02:00
Christian Hagau 6b0ac338ca Use correct signature format identifier when creating SSH signatures for
RSA with SHA256 & SHA512
2018-04-27 00:00:00 +00:00
Vincent Breitmoser d6f8357a76 Slight change to "Use different key" submenu, possibly display Autocrypt Setup Message hint 2018-04-18 16:44:01 +02:00
Vincent Breitmoser 00a13e8533 Slight layout changes, and extract strings 2018-04-18 16:44:01 +02:00
Vincent Breitmoser 1a7b30ef99 update openpgp-api-lib 2018-04-18 16:44:01 +02:00
Dominik Schürmann 4c251d57a1 Version 5.0 2018-04-18 15:44:38 +02:00
Dominik Schürmann 0b3cdc9463 Update from transifex 2018-04-18 15:41:48 +02:00