chat: Add OverrideCaveatSetsValidator for use by wspr and jni.
Before this CL, we had two different mechanisms to override
caveat validation. Javascript (wspr) used a "hidden context key"
to pass a custom validator around, while Java (jni) used
security.SetCaveatValidator to set a custom function. The wspr
technique overrode the validation for all caveat sets in a
blessing, while the jni technique overrode the validation of each
individual caveat.
This CL reduces us back to a single mechanism
security.OverrideCaveatSetsValidator. This function is only
available if the "android", "nacl" or "wspr" build tags is set,
and will panic if called more than once. We restrict to these
build tags as a way to limit the exposure of the API.
MultiPart: 5/6
Change-Id: Iafdb095e8f9c42cffcfa9c49866a9960b40e37f6
diff --git a/Makefile b/Makefile
index f10ec4e..ca4d198 100644
--- a/Makefile
+++ b/Makefile
@@ -95,10 +95,11 @@
# TODO(sadovsky): Make it so we only run "go install" when binaries are out of
# date.
vanadium-binaries:
+ $(GO) install -a -tags wspr v.io/x/ref/cmd/servicerunner
$(GO) install \
v.io/x/ref/services/mounttable/mounttabled \
v.io/x/ref/services/proxy/proxyd \
- v.io/x/ref/cmd/{principal,servicerunner,vdl}
+ v.io/x/ref/cmd/{principal,vdl}
gen-vdl: vanadium-binaries
vdl generate --lang=go v.io/x/chat/vdl