Commit Graph

947 Commits

Author SHA1 Message Date
Vincent Breitmoser
1b1304e6e0 certs: various improvements
* recognize self-certifications
* save signature type
* save expiry time
* drop encoded data blob from db
2014-04-05 22:35:27 +02:00
Vincent Breitmoser
2802718efb certs: more fixes, almost working now 2014-04-05 21:38:03 +02:00
Vincent Breitmoser
aa6f5118f5 Merge remote-tracking branch 'origin/master' into certs
A lot of things are completely broken, but it compiles and doesn't crash
right away. Good enough for me.

Conflicts:
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainContract.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainDatabase.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainProvider.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/ProviderHelper.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyMainFragment.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ViewKeyUserIdsAdapter.java
	OpenPGP-Keychain/src/main/res/layout/view_key_certs_fragment.xml
2014-04-05 19:30:52 +02:00
Dominik Schürmann
db25433890 Change headers in encrypt activity to be more descriptive 2014-04-04 19:54:36 +02:00
Vincent Breitmoser
54f20e1cd5 Merge remote-tracking branch 'origin/master' into db-overhaul 2014-04-04 18:50:20 +02:00
Vincent Breitmoser
d7c2488a0f db-overhaul: fix key export (and some export-related ui changes) 2014-04-04 18:49:45 +02:00
Thialfihar
a523f53a96 Simplify PassphraseDialogFragment usage
Move boiler plate code into a simple static show() method, which only
requires a Handler and can be used ad hoc in any FragmentActivity.
2014-04-04 18:26:23 +02:00
Vincent Breitmoser
cf76a8553a db-overhaul: fix delete key from ViewKeyActivity 2014-04-04 16:28:28 +02:00
Vincent Breitmoser
53e8afaee0 ViewKeyMainFragment cleanup (don't use inline queries!) 2014-04-04 14:37:07 +02:00
Vincent Breitmoser
958eba1c95 db-overhaul: fix DecryptAndVerify with and without known keys 2014-04-04 13:58:12 +02:00
Vincent Breitmoser
085ce11d9c db-overhaul: workaround api level 11 2014-04-04 13:20:37 +02:00
Vincent Breitmoser
1b38a5b2e3 Merge remote-tracking branch 'origin/master' into db-overhaul 2014-04-04 13:18:43 +02:00
Vincent Breitmoser
a9f868a5e7 db-overhaul: different hack for type info (api level problem inside) 2014-04-04 11:39:23 +02:00
Vincent Breitmoser
a1e13f7893 calculate nfc packet on demand only 2014-04-04 11:38:59 +02:00
Vincent Breitmoser
2227705d65 db-overhaul: fix loading indicators in KeyListActivity and ViewKeyActivity 2014-04-04 11:28:26 +02:00
Vincent Breitmoser
d921cca913 db-overhaul: reintroduce by-mail and by-subkey queries
the only thing left to fix after the db upgrade (that I can think of
right now) are key exports
2014-04-04 01:56:02 +02:00
Vincent Breitmoser
59f4b4e3e7 db-overhaul: minor stuff, mostly ProviderHelper 2014-04-04 01:05:53 +02:00
Vincent Breitmoser
2620e0bfc8 db-overhaul: more work on new provider
specifics:
 - secret keys are preserved when a new public key is inserted
 - started work to give virtual columns a representation in the contract
   class
 - streamline ProviderHelper methods. the getUnifiedData method relies
   on a api level 11 method, not sure yet how to fix/workaround that...
 - many more small things work as they did before
2014-04-03 22:49:08 +02:00
Vincent Breitmoser
dedcfd8a72 more work on streamlining uris, and stripping ProviderHelper 2014-04-03 17:09:26 +02:00
Vincent Breitmoser
428e94bb57 ditch useless PgpKeyHelper.getMasterKey methods 2014-04-03 17:08:04 +02:00
Dominik Schürmann
b06f142c50 title for ACTION_IMPORT_KEY_FROM_KEYSERVER_AND_RETURN 2014-04-03 16:51:34 +02:00
Dominik Schürmann
270c7ffa1f Merge branch 'db-overhaul' of git://github.com/Valodim/openpgp-keychain into Valodim-db-overhaul 2014-04-03 15:45:21 +02:00
Dominik Schürmann
098823bd52 Disable tests 2014-04-03 15:26:51 +02:00
Dominik Schürmann
40e3b9cf79 version 2.5 2014-04-03 15:21:34 +02:00
Dominik Schürmann
3b91147b49 Update from transifex 2014-04-03 15:21:14 +02:00
Dominik Schürmann
c3091c2b5d Changelog 2014-04-03 15:19:49 +02:00
Dominik Schürmann
04b0425d45 Key lookup for API 2014-04-03 15:18:05 +02:00
Dominik Schürmann
09411a62fa Key lookup for API 2014-04-03 15:16:13 +02:00
Dominik Schürmann
2df4ccafb5 Implement ACTION_IMPORT_KEY_FROM_KEYSERVER_AND_RETURN 2014-04-03 15:02:55 +02:00
Vincent Breitmoser
34fca975d7 Merge remote-tracking branch 'origin/master' into db-overhaul
Conflicts:
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainContract.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainDatabase.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/ProviderHelper.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/EditKeyActivity.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/SelectSecretKeyFragment.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/SelectSecretKeyLayoutFragment.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java
2014-04-03 14:56:35 +02:00
Dominik Schürmann
11b08c4d98 Cleanup DrawerActivity 2014-04-03 12:28:30 +02:00
Vincent Breitmoser
a7eff41ced Break a lot of stuff. Also, database redesign.
Change entire database design. This introduces a lot of changes,
notably all URIs and almost all projections. Some features (like key
deletion) have been simply commented out for now since they need
serious reconsideration. There are a couple of new TODOs marking places
where more work is needed.

The migration path works fine from what I tested. The old database is
not deleted for now, ie, it is reimported at every start of the
application making all intermediate changes transient.

Tested and working (for me):
 - All activities in the main drawer
 - Multiselect and Search
 - ViewKeyActivity, with and without secret key available
 - CertifyKeyActivity
 - SelectSecretKeyActivity (from CertifyKeyActivity)
 - SelectPublicKeyActivity (from encrypt activity)

What doesn't work:
 - Actually certifying keys (pending a TODO in ProviderHelper)
 - Importing keys doesn't preserve secret keys
 - "Encrypt to this contact" doesn't pass key
 - Editing keys. All controls are disabled, I'm not sure why... (is this
   even my fault?)
 - Deleting keys

What I didn't test:
 - Key export
 - API stuff
 - Creating keys (since editing doesn't even work)
2014-04-03 01:34:35 +02:00
Thialfihar
7a66ccb5ee Rename "canEdit" to "canBeEdited" 2014-04-02 15:43:29 +02:00
Thialfihar
c4c9713da4 Rename "armour" to "armor" 2014-04-02 15:36:32 +02:00
Thialfihar
6ac13d9f69 Rename "pass phrase" to "passphrase" 2014-04-02 15:32:35 +02:00
Dominik Schürmann
26837f2a80 Started changelog for 2.5 2014-04-02 14:00:46 +02:00
Dominik Schürmann
fc29fadd51 Fix build 2014-04-02 13:54:38 +02:00
Thialfihar
77a6c509f7 Replace wildcard imports with explicit imports 2014-04-02 13:37:12 +02:00
Thialfihar
a3a5085afb Spacing corrections 2014-04-02 13:37:12 +02:00
Dominik Schürmann
269f7feb89 Update from transifex 2014-04-02 11:48:05 +02:00
Thialfihar
592ab31d86 Add missing and curly brackets and fix others
Style guide demands them even for single-line blocks, and opening
curly brackets never appear on a line on their own.
2014-04-02 10:51:02 +02:00
Thialfihar
82e5d14fb1 Rearrange too long lines 2014-04-02 10:51:02 +02:00
Thialfihar
d5983b324f Adjust variable/member naming to conform to style guide
In some cases change member accessibility, so the naming matches.
Also, some key words were reordered to comply with JLS suggestions.
2014-04-02 10:51:02 +02:00
Thialfihar
dd4a1e3f52 Trivial spacing changes to conform to style guide 2014-04-02 10:51:02 +02:00
Thialfihar
8e503bd263 Adjust copyright headers 2014-04-02 10:51:02 +02:00
Thialfihar
e92658f44d Adjust import order 2014-04-02 10:51:02 +02:00
Ashley Hughes
5583fd513e always ask 2014-04-02 01:28:53 +01:00
Ashley Hughes
9764d3fcb9 confirm that empty IDs are really wanted 2014-04-02 01:26:51 +01:00
Ashley Hughes
a38d22757c new ID sigs already added, so do save them 2014-04-02 00:08:36 +01:00
Ashley Hughes
6d4a09f989 allow blank IDs, allow adding new IDs and let them be master 2014-04-02 00:00:24 +01:00