]> git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigNvData.h
80baa3836f78fe90e51a985efd512ad49c5fbc48
[mirror_edk2.git] / NetworkPkg / TlsAuthConfigDxe / TlsAuthConfigNvData.h
1 /** @file
2 Header file for NV data structure definition.
3
4 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef __TLS_AUTH_CONFIG_NV_DATA_H__
16 #define __TLS_AUTH_CONFIG_NV_DATA_H__
17
18 #include <Guid/TlsAuthConfigHii.h>
19
20 #define TLS_AUTH_CONFIG_GUID_SIZE 36
21 #define TLS_AUTH_CONFIG_GUID_STORAGE_SIZE 37
22
23 #define TLS_AUTH_CONFIG_FORMID1_FORM 1
24 #define TLS_AUTH_CONFIG_FORMID2_FORM 2
25 #define TLS_AUTH_CONFIG_FORMID3_FORM 3
26 #define TLS_AUTH_CONFIG_FORMID4_FORM 4
27 #define TLS_AUTH_CONFIG_FORMID5_FORM 5
28
29
30 #define KEY_TLS_AUTH_CONFIG_SERVER_CA 0x1000
31 #define KEY_TLS_AUTH_CONFIG_CLIENT_CERT 0x1001
32 #define KEY_TLS_AUTH_CONFIG_ENROLL_CERT 0x1002
33 #define KEY_TLS_AUTH_CONFIG_DELETE_CERT 0x1003
34 #define KEY_TLS_AUTH_CONFIG_ENROLL_CERT_FROM_FILE 0x1004
35 #define KEY_TLS_AUTH_CONFIG_CERT_GUID 0x1005
36 #define KEY_TLS_AUTH_CONFIG_VALUE_SAVE_AND_EXIT 0x1006
37 #define KEY_TLS_AUTH_CONFIG_VALUE_NO_SAVE_AND_EXIT 0x1007
38
39 #define OPTION_DEL_CA_ESTION_ID 0x2000
40 #define OPTION_CONFIG_RANGE 0x1000
41
42 #define LABEL_CA_DELETE 0x1101
43 #define LABEL_END 0xffff
44
45 typedef struct {
46 CHAR16 CertGuid[TLS_AUTH_CONFIG_GUID_STORAGE_SIZE];
47 } TLS_AUTH_CONFIG_IFR_NVDATA;
48
49 #endif
50