Brad Fitzpatrick
f7d76303e7
Slap on copyright headers.
2011-01-27 23:07:18 -08:00
Brad Fitzpatrick
5f9840a429
Break camli/blobref into two files; add NewSimpleDirectoryFetcher to fetcher.go
2011-01-16 21:00:36 -08:00
Brad Fitzpatrick
2627a6cf4c
Add test_upload_corrupt_blob and fix the Go server.
...
The Go server was forgetting the final step of verifying the hash it
computed.
The App Engine server currently fails the test because the failure
mode is specified in the spec. TODO: clarify that.
This also adds some unit tests for camli/blobref, and changes BlobRef
to a struct, instead of an interface.
2010-12-17 10:01:36 -08:00
Brad Fitzpatrick
672ab134e6
Cleanup; make blobserver's GET path use blobref.Fether interface
...
Also expands the Fetcher interface slightly, and cleans up
some other code in the process.
2010-12-13 18:20:31 -08:00
Brad Fitzpatrick
5b94b1602c
Move signing and verifying into a library.
2010-12-08 19:24:48 -08:00
Brad Fitzpatrick
0f16c9b29d
rename http_util to httputil
2010-12-05 22:34:46 -08:00
Brad Fitzpatrick
0b4a560424
make new shared camli/webserver package
...
so blob server can be easily testable too.
and will be useful for camli capability discovery, probably.
2010-12-05 22:29:11 -08:00
Brad Fitzpatrick
de55109d8e
Verification works! and with unit tests.
2010-12-04 13:49:34 -08:00
Brad Fitzpatrick
079c9662ad
go blobserver: return "Received" in JSON
...
Also return text/json mime type,
And switch from fmt.Print* to log.Print*
2010-12-01 22:34:08 -08:00
Brad Fitzpatrick
7d3fcf9881
start of camsigd verify handler, notes
2010-11-29 23:22:11 -08:00
Brad Fitzpatrick
ab6c00a199
correct import path
2010-11-29 19:51:25 -08:00
Brad Fitzpatrick
f2259ba7d2
Missing part of b05fecb16b
2010-11-29 17:20:08 -08:00
Brad Fitzpatrick
b7c77c1d30
use ephemeral port in camsigd
2010-11-29 07:54:20 -08:00
Brad Fitzpatrick
a25f3b0808
add a camsigd root handler
2010-11-29 07:35:16 -08:00
Daniel Erat
0050e553ec
get rough implementation of go signing server working
2010-11-14 21:51:52 -08:00
Brad Fitzpatrick
a882ef09d1
more testing work
2010-11-14 20:31:21 -08:00
Daniel Erat
4554d03916
start implementing go sig server
2010-11-14 20:09:28 -08:00
Brad Fitzpatrick
82f4fd2ebc
move sigserver
2010-11-14 19:34:00 -08:00