17#ifndef __EFI_TLS_PROTOCOL_H__
18#define __EFI_TLS_PROTOCOL_H__
25#define EFI_TLS_SERVICE_BINDING_PROTOCOL_GUID \
27 0x952cb795, 0xff36, 0x48cf, {0xa2, 0x49, 0x4d, 0xf4, 0x86, 0xd6, 0xab, 0x8d } \
33#define EFI_TLS_PROTOCOL_GUID \
35 0xca959f, 0x6cfa, 0x4db1, {0x95, 0xbc, 0xe4, 0x6c, 0x47, 0x51, 0x43, 0x90 } \
108 EfiTlsSessionDataTypeMaximum
155 UINT16 ExtensionType;
171#define EFI_TLS_VERIFY_NONE 0x0
176#define EFI_TLS_VERIFY_PEER 0x1
181#define EFI_TLS_VERIFY_FAIL_IF_NO_PEER_CERT 0x2
186#define EFI_TLS_VERIFY_CLIENT_ONCE 0x4
196#define EFI_TLS_VERIFY_FLAG_NONE 0x00
201#define EFI_TLS_VERIFY_FLAG_ALWAYS_CHECK_SUBJECT 0x01
205#define EFI_TLS_VERIFY_FLAG_NO_WILDCARDS 0x02
209#define EFI_TLS_VERIFY_FLAG_NO_PARTIAL_WILDCARDS 0x04
213#define EFI_TLS_VERIFY_FLAG_MULTI_LABEL_WILDCARDS 0x08
219#define EFI_TLS_VERIFY_FLAG_SINGLE_LABEL_SUBDOMAINS 0x10
224#define EFI_TLS_VERIFY_FLAG_NEVER_CHECK_SUBJECT 0x20
263#define MAX_TLS_SESSION_ID_LENGTH 32
307 EfiTlsSessionStateMaximum
491 IN UINT32 *FragmentCount,
506extern EFI_GUID gEfiTlsServiceBindingProtocolGuid;
BOOLEAN EFIAPI RandomBytes(OUT UINT8 *Output, IN UINTN Size)
EFI_STATUS(EFIAPI * EFI_TLS_SET_SESSION_DATA)(IN EFI_TLS_PROTOCOL *This, IN EFI_TLS_SESSION_DATA_TYPE DataType, IN VOID *Data, IN UINTN DataSize)
@ EfiTlsSessionHandShaking
@ EfiTlsSessionDataTransferring
@ EfiTlsSessionNotStarted
EFI_TLS_SESSION_DATA_TYPE
@ EfiTlsCompressionMethod
EFI_STATUS(EFIAPI * EFI_TLS_PROCESS_PACKET)(IN EFI_TLS_PROTOCOL *This, IN OUT EFI_TLS_FRAGMENT_DATA **FragmentTable, IN UINT32 *FragmentCount, IN EFI_TLS_CRYPT_MODE CryptMode)
EFI_STATUS(EFIAPI * EFI_TLS_GET_SESSION_DATA)(IN EFI_TLS_PROTOCOL *This, IN EFI_TLS_SESSION_DATA_TYPE DataType, IN OUT VOID *Data OPTIONAL, IN OUT UINTN *DataSize)
UINT8 EFI_TLS_COMPRESSION
UINT32 EFI_TLS_VERIFY_HOST_FLAG
#define MAX_TLS_SESSION_ID_LENGTH
EFI_STATUS(EFIAPI * EFI_TLS_BUILD_RESPONSE_PACKET)(IN EFI_TLS_PROTOCOL *This, IN UINT8 *RequestBuffer OPTIONAL, IN UINTN RequestSize OPTIONAL, OUT UINT8 *Buffer OPTIONAL, IN OUT UINTN *BufferSize)