encrypt: use key metaIndex for index, not meta; that was used. fixes devcam server.

Change-Id: I483c696dcc3402537bec136f8847c17767760b3b
This commit is contained in:
Brad Fitzpatrick 2013-11-23 11:11:05 -08:00
parent 2a781196e7
commit 62fbbb61a0
2 changed files with 2 additions and 1 deletions

View File

@ -186,6 +186,7 @@
"I_AGREE": "that encryption support hasn't been peer-reviewed, isn't finished, and its format might change.",
"meta": "/encmeta/",
"blobs": "/encblob/",
"metaIndex": { "type": "memory" },
"key": "000102030405060708090a0b0c0d0e0f"
}
},

View File

@ -536,7 +536,7 @@ func init() {
}
func newFromConfig(ld blobserver.Loader, config jsonconfig.Obj) (bs blobserver.Storage, err error) {
metaConf := config.RequiredObject("meta")
metaConf := config.RequiredObject("metaIndex")
sto := &storage{}
agreement := config.OptionalString("I_AGREE", "")
const wantAgreement = "that encryption support hasn't been peer-reviewed, isn't finished, and its format might change."