]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/HddPassword/HddPassword.vfr
SecurityPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / SecurityPkg / HddPassword / HddPassword.vfr
1 /** @file
2 HDD Password Configuration Formset.
3
4 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7 **/
8
9 #include "HddPasswordHiiDataStruc.h"
10
11 formset
12 guid = HDD_PASSWORD_CONFIG_GUID,
13 title = STRING_TOKEN(STR_HDD_SECURITY_CONFIG),
14 help = STRING_TOKEN(STR_HDD_SECURITY_CONFIG),
15 classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,
16
17 varstore HDD_PASSWORD_CONFIG,
18 name = HDD_PASSWORD_CONFIG,
19 guid = HDD_PASSWORD_CONFIG_GUID;
20
21 form formid = FORMID_HDD_MAIN_FORM,
22 title = STRING_TOKEN(STR_HDD_SECURITY_CONFIG);
23
24 label HDD_DEVICE_ENTRY_LABEL;
25 label HDD_DEVICE_LABEL_END;
26
27 endform;
28
29 form
30 formid = FORMID_HDD_DEVICE_FORM,
31 title = STRING_TOKEN(STR_HDD_SECURITY_HD);
32
33 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_PWD_DESC);
34
35 subtitle text = STRING_TOKEN(STR_NULL);
36
37 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_ONE);
38 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_TWO);
39 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_THREE);
40 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_FOUR);
41 subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_FIVE);
42
43 subtitle text = STRING_TOKEN(STR_NULL);
44
45 subtitle text = STRING_TOKEN(STR_HDD_PASSWORD_CONFIG);
46
47 subtitle text = STRING_TOKEN(STR_NULL);
48
49 grayoutif TRUE;
50 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 0;
51 text
52 help = STRING_TOKEN(STR_EMPTY),
53 text = STRING_TOKEN(STR_SEC_SUPPORTED),
54 text = STRING_TOKEN(STR_YES),
55 flags = 0,
56 key = 0;
57 endif;
58
59 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 1;
60 text
61 help = STRING_TOKEN(STR_EMPTY),
62 text = STRING_TOKEN(STR_SEC_SUPPORTED),
63 text = STRING_TOKEN(STR_NO),
64 flags = 0,
65 key = 0;
66 endif;
67
68 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Enabled == 0;
69 text
70 help = STRING_TOKEN(STR_EMPTY),
71 text = STRING_TOKEN(STR_SEC_ENABLED),
72 text = STRING_TOKEN(STR_YES),
73 flags = 0,
74 key = 0;
75 endif;
76
77 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Enabled == 1;
78 text
79 help = STRING_TOKEN(STR_EMPTY),
80 text = STRING_TOKEN(STR_SEC_ENABLED),
81 text = STRING_TOKEN(STR_NO),
82 flags = 0,
83 key = 0;
84 endif;
85
86
87 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Locked == 0;
88 text
89 help = STRING_TOKEN(STR_EMPTY),
90 text = STRING_TOKEN(STR_SEC_LOCKED),
91 text = STRING_TOKEN(STR_YES),
92 flags = 0,
93 key = 0;
94 endif;
95
96 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Locked == 1;
97 text
98 help = STRING_TOKEN(STR_EMPTY),
99 text = STRING_TOKEN(STR_SEC_LOCKED),
100 text = STRING_TOKEN(STR_NO),
101 flags = 0,
102 key = 0;
103 endif;
104
105 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Frozen == 0;
106 text
107 help = STRING_TOKEN(STR_EMPTY),
108 text = STRING_TOKEN(STR_SEC_FROZEN),
109 text = STRING_TOKEN(STR_YES),
110 flags = 0,
111 key = 0;
112 endif;
113
114 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Frozen == 1;
115 text
116 help = STRING_TOKEN(STR_EMPTY),
117 text = STRING_TOKEN(STR_SEC_FROZEN),
118 text = STRING_TOKEN(STR_NO),
119 flags = 0,
120 key = 0;
121 endif;
122
123 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.UserPasswordStatus == 0;
124 text
125 help = STRING_TOKEN(STR_EMPTY),
126 text = STRING_TOKEN(STR_HDD_USER_PASSWORD_STS),
127 text = STRING_TOKEN(STR_INSTALLED),
128 flags = 0,
129 key = 0;
130 endif;
131
132 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.UserPasswordStatus == 1;
133 text
134 help = STRING_TOKEN(STR_EMPTY),
135 text = STRING_TOKEN(STR_HDD_USER_PASSWORD_STS),
136 text = STRING_TOKEN(STR_NOT_INSTALLED),
137 flags = 0,
138 key = 0;
139 endif;
140
141 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.MasterPasswordStatus == 0;
142 text
143 help = STRING_TOKEN(STR_EMPTY),
144 text = STRING_TOKEN(STR_HDD_MASTER_PASSWORD_STS),
145 text = STRING_TOKEN(STR_INSTALLED),
146 flags = 0,
147 key = 0;
148 endif;
149
150 suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.MasterPasswordStatus == 1;
151 text
152 help = STRING_TOKEN(STR_EMPTY),
153 text = STRING_TOKEN(STR_HDD_MASTER_PASSWORD_STS),
154 text = STRING_TOKEN(STR_NOT_INSTALLED),
155 flags = 0,
156 key = 0;
157 endif;
158 endif;
159
160 subtitle text = STRING_TOKEN(STR_NULL);
161
162 grayoutif ideqval HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 0;
163 checkbox varid = HDD_PASSWORD_CONFIG.Request.UserPassword,
164 prompt = STRING_TOKEN(STR_HDD_USER_PASSWORD),
165 help = STRING_TOKEN(STR_HDD_USER_PASSWORD_HELP),
166 flags = INTERACTIVE | RESET_REQUIRED,
167 key = KEY_HDD_USER_PASSWORD,
168 endcheckbox;
169 endif;
170
171 grayoutif ideqval HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 0;
172 checkbox varid = HDD_PASSWORD_CONFIG.Request.MasterPassword,
173 prompt = STRING_TOKEN(STR_HDD_MASTER_PASSWORD),
174 help = STRING_TOKEN(STR_HDD_MASTER_PASSWORD_HELP),
175 flags = INTERACTIVE | RESET_REQUIRED,
176 key = KEY_HDD_MASTER_PASSWORD,
177 endcheckbox;
178 endif;
179 endform;
180
181 endformset;