More secondary preimage resistance. Also better docs and less vague and less promoted Android
UI.
Feedback from Adam Langley, but likely misinterpreted.
Change-Id: I3bf1029b6fc07c0b8dab2af44926aa87b0d4cbad
When cammount unexpectedly exits too soon after starting, check a couple
basic things that are likely to be wrong on new installations and try to
resolve them.
1. Is FUSE installed? Direct user to site otherwise.
2. Is there a client config? Allow the user to have one created.
There's no configuration management here, just a behind-the-scenes
"camput init".
This also deals with a minor issue where the user couldn't break out of
a mount failure loop since most of that code has been replaced.
Fixes
camlistore.org/issue/311
camlistore.org/issue/312
camlistore.org/issue/313
Change-Id: I5a4ea99bd7532f0e0c87a7075cc0d618f2033e5c
Based on notification stuff, so any other part of the app (or other people using the client) can get the same updates when the uploads start, move forward or end.
Also fixed some issues with url parsing, should be not so sensitive about trailing slashes now.
Change-Id: Ieafc3ecae03eeeba38beed55efad23703b11561c
Storing credentials in the app, style tweaks, trying to make xcode do whitespace right, and some organization
Change-Id: I36c7c0f479dcd95c26c4dd53bacb8e5c6e66bc9f
A new client configuration parameter, "trustedCerts" (list of strings)
is introduced. A certificate fingerprint is defined as the 10 digits
prefix of the sha1 of the whole certificate (in ASN1. DER form).
trustedCerts should contain the list of fingerprints of the
certificates we trust. If not empty, the server's certificate
is checked against that list, instead of using the full x509 validation
on it.
-added a dial function and tls configuration, which check if we're using
SSL, and if we're in "trustedCerts" mode.
pkg/client/client.go
pkg/client/config.go
-moved android specific hacks from camput to the client layer, so that
the dial and tls config could reuse/access them. Also allows future
reuse for other commands, such as camget.
pkg/client/android.go
-adapted camput to the above changes:
cmd/camput/android.go
cmd/camput/camput.go
cmd/camput/files.go
-server prints a hint when it generates the self-signed:
pkg/misc/misc.go
server/camlistored/camlistored.go
-camliactivity:
clients/android/res/xml/preferences.xml
clients/android/src/org/camlistore/Preferences.java
clients/android/src/org/camlistore/SettingsActivity.java
clients/android/src/org/camlistore/UploadService.java
clients/android/src/org/camlistore/UploadThread.java
http://camlistore.org/issue/131
Change-Id: I6be20161549a69aafc8eb7b9e96e9351dc1c5b09