perkeep/clients/android
mpl ac431439f3 Allow HTTPS with a self-signed certificate.
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
2013-04-23 17:10:37 +02:00
..
.settings android: formatting rule tweaks 2013-01-29 16:38:33 -08:00
assets android: add Version menu option 2013-02-03 10:39:20 -08:00
res Allow HTTPS with a self-signed certificate. 2013-04-23 17:10:37 +02:00
src/org/camlistore Allow HTTPS with a self-signed certificate. 2013-04-23 17:10:37 +02:00
test rename clients/android/uploader to clients/android 2011-03-13 13:09:56 -07:00
.classpath android: start of using the Go camput binary as a child process. 2013-01-26 16:54:03 -08:00
.gitignore rename clients/android/uploader to clients/android 2011-03-13 13:09:56 -07:00
.project rename clients/android/uploader to clients/android 2011-03-13 13:09:56 -07:00
AndroidManifest.xml android: set targetSdkVersion to 17. now JellyBean pretty. 2013-01-27 13:04:14 -08:00
Makefile android: add tips when SDK isn't configured. 2011-03-17 18:15:25 -07:00
build.properties rename clients/android/uploader to clients/android 2011-03-13 13:09:56 -07:00
build.xml android: config changes to build with ant 2013-02-23 00:05:01 +01:00
check-environment.pl android: add tips when SDK isn't configured. 2011-03-17 18:15:25 -07:00
default.properties android: config changes to build with ant 2013-02-23 00:05:01 +01:00
local.properties.TEMPLATE android: add tips when SDK isn't configured. 2011-03-17 18:15:25 -07:00
project.properties android: config changes to build with ant 2013-02-23 00:05:01 +01:00