summaryrefslogtreecommitdiff
path: root/NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigVfr.vfr
blob: 9bca2c119f437e355bbdd6f4f36557208ab5038e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/** @file
  VFR file used by TlsAuthConfigDxe driver.

  Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>

  This program and the accompanying materials
  are licensed and made available under the terms and conditions of the BSD License
  which accompanies this distribution.  The full text of the license may be found at
  http://opensource.org/licenses/bsd-license.php.

  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

**/

#include "TlsAuthConfigNvData.h"

formset
  guid   = TLS_AUTH_CONFIG_GUID,
  title  = STRING_TOKEN(STR_TLS_AUTH_CONFIG_TITLE),
  help   = STRING_TOKEN(STR_TLS_AUTH_CONFIG_HELP),

  varstore TLS_AUTH_CONFIG_IFR_NVDATA,
    name = TLS_AUTH_CONFIG_IFR_NVDATA,
    guid = TLS_AUTH_CONFIG_GUID;

  //
  // ##1 Form1: Main form for Tls Auth configration
  //
  form formid = TLS_AUTH_CONFIG_FORMID1_FORM,
    title  = STRING_TOKEN(STR_TLS_AUTH_CONFIG_TITLE);

    subtitle text = STRING_TOKEN(STR_NULL);

    //
    // Display Server CA configration
    //
    goto TLS_AUTH_CONFIG_FORMID2_FORM,
         prompt = STRING_TOKEN(STR_TLS_AUTH_CONFIG_SERVER_CA),
         help   = STRING_TOKEN(STR_TLS_AUTH_CONFIG_SERVER_CA_HELP),
         flags  = INTERACTIVE,
         key    = KEY_TLS_AUTH_CONFIG_SERVER_CA;

    subtitle text = STRING_TOKEN(STR_NULL);

    //
    // Display Client cert configration
    //
    grayoutif TRUE; /// Current unsupported.
    goto TLS_AUTH_CONFIG_FORMID3_FORM,
         prompt = STRING_TOKEN(STR_TLS_AUTH_CONFIG_CLIENT_CERT),
         help   = STRING_TOKEN(STR_TLS_AUTH_CONFIG_CLIENT_CERT_HELP),
         flags  = INTERACTIVE,
         key    = KEY_TLS_AUTH_CONFIG_CLIENT_CERT;
    endif;
  endform;

  //
  // ##2 Form2: CA configuration
  //
  form formid = TLS_AUTH_CONFIG_FORMID2_FORM,
    title  = STRING_TOKEN(STR_TLS_AUTH_CONFIG_SERVER_CA);

    subtitle text = STRING_TOKEN(STR_NULL);

    goto TLS_AUTH_CONFIG_FORMID4_FORM,
         prompt = STRING_TOKEN(STR_TLS_AUTH_CONFIG_ENROLL_CERT),
         help   = STRING_TOKEN(STR_TLS_AUTH_CONFIG_ENROLL_CERT_HELP),
         flags  = INTERACTIVE,
         key    = KEY_TLS_AUTH_CONFIG_ENROLL_CERT;

    subtitle text = STRING_TOKEN(STR_NULL);

    goto TLS_AUTH_CONFIG_FORMID5_FORM,
         prompt = STRING_TOKEN(STR_TLS_AUTH_CONFIG_DELETE_CERT),
         help   = STRING_TOKEN(STR_TLS_AUTH_CONFIG_DELETE_CERT_HELP),
         flags  = INTERACTIVE,
         key    = KEY_TLS_AUTH_CONFIG_DELETE_CERT;
  endform;

  //
  // ##3 Form3 : Client cert configuration
  //
  form formid = TLS_AUTH_CONFIG_FORMID3_FORM,
    title  = STRING_TOKEN(STR_TLS_AUTH_CONFIG_CLIENT_CERT);

    subtitle text = STRING_TOKEN(STR_NULL);

  //
  // TODO...
  //
  endform;

  //
  // ##4 Form4: Enroll cert for CA
  //
  form formid = TLS_AUTH_CONFIG_FORMID4_FORM,
    title  = STRING_TOKEN(STR_TLS_AUTH_CONFIG_ENROLL_CERT);

    subtitle text = STRING_TOKEN(STR_NULL);

    goto TLS_AUTH_CONFIG_FORMID4_FORM,
         prompt = STRING_TOKEN(STR_TLS_AUTH_CONFIG_ADD_CERT_FILE),
         help = STRING_TOKEN(STR_TLS_AUTH_CONFIG_ADD_CERT_FILE),
         flags = INTERACTIVE,
         key = KEY_TLS_AUTH_CONFIG_ENROLL_CERT_FROM_FILE;

    subtitle text = STRING_TOKEN(STR_NULL);
    label TLS_AUTH_CONFIG_FORMID4_FORM;
    label LABEL_END;
    subtitle text = STRING_TOKEN(STR_NULL);

    string  varid   = TLS_AUTH_CONFIG_IFR_NVDATA.CertGuid,
            prompt  = STRING_TOKEN(STR_TLS_AUTH_CONFIG_CERT_GUID),
            help    = STRING_TOKEN(STR_TLS_AUTH_CONFIG_CERT_GUID_HELP),
            flags   = INTERACTIVE,
            key     = KEY_TLS_AUTH_CONFIG_CERT_GUID,
            minsize = TLS_AUTH_CONFIG_GUID_SIZE,
            maxsize = TLS_AUTH_CONFIG_GUID_SIZE,
    endstring;

    subtitle text = STRING_TOKEN(STR_NULL);
    subtitle text = STRING_TOKEN(STR_NULL);

    goto TLS_AUTH_CONFIG_FORMID1_FORM,
         prompt = STRING_TOKEN(STR_TLS_AUTH_CONFIG_SAVE_AND_EXIT),
         help   = STRING_TOKEN(STR_TLS_AUTH_CONFIG_SAVE_AND_EXIT),
         flags  = INTERACTIVE,
         key    = KEY_TLS_AUTH_CONFIG_VALUE_SAVE_AND_EXIT;

    goto TLS_AUTH_CONFIG_FORMID1_FORM,
         prompt = STRING_TOKEN(STR_TLS_AUTH_CONFIG_NO_SAVE_AND_EXIT),
         help   = STRING_TOKEN(STR_TLS_AUTH_CONFIG_NO_SAVE_AND_EXIT),
         flags  = INTERACTIVE,
         key    = KEY_TLS_AUTH_CONFIG_VALUE_NO_SAVE_AND_EXIT;

  endform;

  //
  // ##5 Form5: Delete cert for CA
  //
  form formid = TLS_AUTH_CONFIG_FORMID5_FORM,
    title  = STRING_TOKEN(STR_TLS_AUTH_CONFIG_DELETE_CERT);

    label LABEL_CA_DELETE;
    label LABEL_END;

    subtitle text = STRING_TOKEN(STR_NULL);

  endform;

endformset;