/** @file\r
The header files of miscellaneous routines for HttpDxe driver.\r
\r
-Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR>\r
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
#define HTTP_BUFFER_SIZE_DEAULT 65535\r
#define HTTP_MAX_SYN_BACK_LOG 5\r
#define HTTP_CONNECTION_TIMEOUT 60\r
-#define HTTP_RESPONSE_TIMEOUT 5\r
#define HTTP_DATA_RETRIES 12\r
#define HTTP_FIN_TIMEOUT 2\r
#define HTTP_KEEP_ALIVE_PROBES 6\r
EFI_TLS_VERSION Version;\r
EFI_TLS_CONNECTION_END ConnectionEnd;\r
EFI_TLS_VERIFY VerifyMethod;\r
+ EFI_TLS_VERIFY_HOST VerifyHost;\r
EFI_TLS_SESSION_STATE SessionState;\r
} TLS_CONFIG_DATA;\r
\r
);\r
\r
/**\r
- Intiialize the HTTP_PROTOCOL structure to the unconfigured state.\r
+ Initialize the HTTP_PROTOCOL structure to the unconfigured state.\r
\r
@param[in, out] HttpInstance Pointer to HTTP_PROTOCOL structure.\r
@param[in] IpVersion Indicate us TCP4 protocol or TCP6 protocol.\r
@param[in] Map The container of either user's transmit or receive\r
token.\r
@param[in] Item Current item to check against.\r
- @param[in] Context The Token to check againist.\r
+ @param[in] Context The Token to check against.\r
\r
@retval EFI_ACCESS_DENIED The token or event has already been enqueued in IP\r
@retval EFI_SUCCESS The current item isn't the same token/event as the\r
\r
@param[in] Map The container of TxToken.\r
@param[in] Item Current item to check against.\r
- @param[in] Context The Token to check againist.\r
+ @param[in] Context The Token to check against.\r
\r
@retval EFI_NOT_READY The HTTP message is still queued in the list.\r
@retval EFI_SUCCESS The HTTP message has been sent out.\r
);\r
\r
/**\r
- Transmit the HTTP or HTTPS mssage by processing the associated HTTP token.\r
+ Transmit the HTTP or HTTPS message by processing the associated HTTP token.\r
\r
@param[in] Map The container of TxToken or Tx6Token.\r
@param[in] Item Current item to check against.\r
- @param[in] Context The Token to check againist.\r
+ @param[in] Context The Token to check against.\r
\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate resources.\r
@retval EFI_SUCCESS The HTTP message is queued into TCP transmit\r
\r
@param[in] Map The container of Rx4Token or Rx6Token.\r
@param[in] Item Current item to check against.\r
- @param[in] Context The Token to check againist.\r
+ @param[in] Context The Token to check against.\r
\r
@retval EFI_SUCCESS The HTTP response is queued into TCP receive\r
queue.\r
\r
@param[in] HttpInstance The HTTP instance private data.\r
@param[in, out] SizeofHeaders The HTTP header length.\r
- @param[in, out] BufferSize The size of buffer to cacahe the header message.\r
+ @param[in, out] BufferSize The size of buffer to cache the header message.\r
@param[in] Timeout The time to wait for receiving the header packet.\r
\r
@retval EFI_SUCCESS The HTTP header is received.\r
@param[in] Wrap Pointer to HTTP token's wrap data.\r
\r
@retval EFI_SUCCESS Allocation succeeded.\r
- @retval EFI_OUT_OF_RESOURCES Failed to complete the opration due to lack of resources.\r
+ @retval EFI_OUT_OF_RESOURCES Failed to complete the operation due to lack of resources.\r
@retval EFI_NOT_READY Can't find a corresponding TxToken.\r
\r
**/\r