blob: 5681451f9da4ab9e53b0b3e17db2c2c8e1199d27 [file] [log] [blame]
Ankurcc043852015-04-14 13:10:28 -07001// Copyright 2015 The Vanadium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// This file was auto-generated by the vanadium vdl tool.
6// Source: type.vdl
7
8package security
9
10import (
11 // VDL system imports
12 "v.io/v23/vdl"
13
14 // VDL user imports
15 "v.io/v23/security"
16)
17
18type blessingRootsState map[string][]security.BlessingPattern
19
20func (blessingRootsState) __VDLReflect(struct {
Suharsh Sivakumar071d1c82015-05-08 14:45:10 -070021 Name string `vdl:"v.io/x/ref/lib/security.blessingRootsState"`
Ankurcc043852015-04-14 13:10:28 -070022}) {
23}
24
25type blessingStoreState struct {
26 // PeerBlessings maps BlessingPatterns to the Blessings object that is to
27 // be shared with peers which present blessings of their own that match the
28 // pattern.
29 //
30 // All blessings bind to the same public key.
31 PeerBlessings map[security.BlessingPattern]security.Blessings
32 // DefaultBlessings is the default Blessings to be shared with peers for which
33 // no other information is available to select blessings.
34 DefaultBlessings security.Blessings
Suharsh Sivakumard7d4e222015-06-22 11:10:44 -070035 // DischargeCache is the cache of discharges.
36 DischargeCache map[dischargeCacheKey]security.Discharge
37 // CacheKeyFormat is the dischargeCacheKey format version. It should incremented
38 // any time the format of the dischargeCacheKey is changed.
39 CacheKeyFormat uint32
Ankurcc043852015-04-14 13:10:28 -070040}
41
42func (blessingStoreState) __VDLReflect(struct {
Suharsh Sivakumar071d1c82015-05-08 14:45:10 -070043 Name string `vdl:"v.io/x/ref/lib/security.blessingStoreState"`
Ankurcc043852015-04-14 13:10:28 -070044}) {
45}
46
Suharsh Sivakumard7d4e222015-06-22 11:10:44 -070047type dischargeCacheKey [32]byte
48
49func (dischargeCacheKey) __VDLReflect(struct {
50 Name string `vdl:"v.io/x/ref/lib/security.dischargeCacheKey"`
51}) {
52}
53
Ankurcc043852015-04-14 13:10:28 -070054func init() {
55 vdl.Register((*blessingRootsState)(nil))
56 vdl.Register((*blessingStoreState)(nil))
Suharsh Sivakumard7d4e222015-06-22 11:10:44 -070057 vdl.Register((*dischargeCacheKey)(nil))
Ankurcc043852015-04-14 13:10:28 -070058}