]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/HttpDxe/HttpProto.h
NetworkPkg: Making the HTTP IO timeout value programmable with PCD
[mirror_edk2.git] / NetworkPkg / HttpDxe / HttpProto.h
index fa57dbfd39d9de12cadcddd6d0e0d552def92fe9..6b3e49090e6a7d2de2b88c56a299394c0e7965a4 100644 (file)
@@ -1,15 +1,9 @@
 /** @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
@@ -47,7 +41,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #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
@@ -88,6 +81,7 @@ typedef struct {
   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
@@ -313,7 +307,7 @@ HttpCloseTcpRxEvent (
   );\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
@@ -458,7 +452,7 @@ HttpTransmitTcp (
   @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
@@ -478,7 +472,7 @@ HttpTokenExist (
 \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
@@ -513,11 +507,11 @@ HttpInitSession (
   );\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
@@ -537,7 +531,7 @@ HttpTcpTransmit (
 \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
@@ -557,7 +551,7 @@ HttpTcpReceive (
 \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
@@ -605,7 +599,7 @@ HttpTcpTokenCleanup (
   @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