blob: cb14f1a63d9cfd4fd0ad9595abfc988093c7d7e6 [file] [log] [blame]
Varun Patil3d850902020-11-23 12:19:14 +05301rule
2{
3 id "ENDORSED"
4 for data
5 filter
6 {
7 type name
8 regex ^([^<DNS>]*)<DNS><ENDORSED>
9 }
10 checker
11 {
12 type customized
13 sig-type rsa-sha256
14 key-locator
15 {
16 type name
17 hyper-relation
18 {
19 k-regex ^([^<KEY>]*)<KEY><>*$
20 k-expand \\1
21 h-relation equal
22 p-regex ^([^<DNS>]*)<DNS><ENDORSED>
23 p-expand \\1
24 }
25 }
26 }
27}
28
29rule
30{
31 id "ENDORSEE"
32 for data
33 filter
34 {
35 type name
36 regex ^([^<DNS>]*)<DNS><><ENDORSEE>
37 }
38 checker
39 {
40 type customized
41 sig-type rsa-sha256
42 key-locator
43 {
44 type name
45 hyper-relation
46 {
47 k-regex ^([^<KEY>]*)<KEY><>*$
48 k-expand \\1
49 h-relation equal
50 p-regex ^([^<DNS>]*)<DNS><><ENDORSEE>
51 p-expand \\1
52 }
53 }
54 }
55}
56
57rule
58{
59 id "PROFILE"
60 for data
61 filter
62 {
63 type name
64 regex ^([^<DNS>]*)<DNS><PROFILE>
65 }
66 checker
67 {
68 type customized
69 sig-type rsa-sha256
70 key-locator
71 {
72 type name
73 hyper-relation
74 {
75 k-regex ^([^<KEY>]*)<KEY><>*$
76 k-expand \\1
77 h-relation equal
78 p-regex ^([^<DNS>]*)<DNS><PROFILE>
79 p-expand \\1
80 }
81 }
82 }
83}
84
85rule
86{
87 id "ALL"
88 for data
89 filter
90 {
91 type name
92 regex ^(<>*)$
93 }
94 checker
95 {
96 type customized
97 sig-type rsa-sha256
98 key-locator
99 {
100 type name
101 hyper-relation
102 {
103 k-regex ^([^<KEY>]*)<KEY><>*$
104 k-expand \\1
105 h-relation is-strict-prefix-of
106 p-regex ^(<>*)$
107 p-expand \\1
108 }
109 }
110 }
111}
112
113trust-anchor
114{
115 type dir
116 dir "."
117}