]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Nt32Pkg.dsc: Add flag to control HTTP connections
authorJiaxin Wu <jiaxin.wu@intel.com>
Fri, 6 Jan 2017 03:55:47 +0000 (11:55 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Mon, 23 Jan 2017 02:27:45 +0000 (10:27 +0800)
v3:
* Correct the commits grammar

v2:
* Rename the flag.

This flag is to overwrite the value of PcdAllowHttpConnections,
then the platform can make a decision whether to allow HTTP
connections or not.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Kinney Michael D <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Gary Lin <glin@suse.com>
Nt32Pkg/Nt32Pkg.dsc

index 134afb8d25387bcc04c42caadd6b13301b3ac1af..47e37ecae134094104cb995089e7bdce36b47f71 100644 (file)
@@ -4,7 +4,7 @@
 # The Emulation Platform can be used to debug individual modules, prior to creating\r
 #    a real platform. This also provides an example for how an DSC is created.\r
 #\r
-# Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
 # Copyright (c) 2015, Hewlett-Packard Development Company, L.P.<BR>\r
 # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
 #\r
   #       feature, please follow the instructions found in the file "Patch-HOWTO.txt" \r
   #       located in CryptoPkg\Library\OpensslLib to enable the OpenSSL building first.\r
   #\r
-  DEFINE TLS_ENABLE      = FALSE\r
+  DEFINE TLS_ENABLE = FALSE\r
+  \r
+  #\r
+  # Indicates whether HTTP connections (i.e., unsecured) are permitted or not.\r
+  # -D FLAG=VALUE\r
+  #\r
+  # Note: If ALLOW_HTTP_CONNECTIONS is TRUE, HTTP connections are allowed. Both \r
+  #       the "https://" and "http://" URI schemes are permitted. Otherwise, HTTP \r
+  #       connections are denied. Only the "https://" URI scheme is permitted.\r
+  #\r
+  DEFINE ALLOW_HTTP_CONNECTIONS = TRUE\r
 \r
 ################################################################################\r
 #\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000\r
 !endif\r
 \r
+!if $(ALLOW_HTTP_CONNECTIONS) == TRUE\r
+  gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE\r
+!endif\r
+\r
 !ifndef $(USE_OLD_SHELL)\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }\r
 !endif\r