From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from g9t5009.houston.hpe.com (g9t5009.houston.hpe.com [15.241.48.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BD3941A1E6B for ; Thu, 8 Sep 2016 12:15:55 -0700 (PDT) Received: from arm-build-server.us.rdlabs.hpecorp.net (arm-build-server.us.rdlabs.hpecorp.net [16.84.24.54]) by g9t5009.houston.hpe.com (Postfix) with ESMTP id 2CC554C; Thu, 8 Sep 2016 19:15:55 +0000 (UTC) From: Thomas Palmer To: edk2-devel@lists.01.org Cc: jiaxin.wu@intel.com, joseph.shifflett@hpe.com, Thomas Palmer Date: Thu, 8 Sep 2016 14:15:48 -0500 Message-Id: <1473362148-7445-3-git-send-email-thomas.palmer@hpe.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473362148-7445-1-git-send-email-thomas.palmer@hpe.com> References: <1473362148-7445-1-git-send-email-thomas.palmer@hpe.com> Subject: [PATCH v2 2/2] [edk2-staging/HTTPS-TLS][PATCH]: NetworkPkg/HttpDxe: Unrestrict TLSv X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2016 19:15:55 -0000 Demonstrate the TLS regotiation in this feature branch. Remove the code that calls EfiTlsVersion in the HttpDxe module. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Thomas Palmer --- NetworkPkg/HttpDxe/HttpsSupport.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/NetworkPkg/HttpDxe/HttpsSupport.c b/NetworkPkg/HttpDxe/HttpsSupport.c index 9a68b45..5af3233 100644 --- a/NetworkPkg/HttpDxe/HttpsSupport.c +++ b/NetworkPkg/HttpDxe/HttpsSupport.c @@ -2,6 +2,7 @@ Miscellaneous routines specific to Https for HttpDxe driver. Copyright (c) 2016, Intel Corporation. All rights reserved.
+(C) Copyright 2016 Hewlett Packard Enterprise Development LP
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -480,30 +481,17 @@ TlsConfigureSession ( // // TlsConfigData initialization // - HttpInstance->TlsConfigData.Version.Major = TLS10_PROTOCOL_VERSION_MAJOR; - HttpInstance->TlsConfigData.Version.Minor = TLS10_PROTOCOL_VERSION_MINOR; HttpInstance->TlsConfigData.ConnectionEnd = EfiTlsClient; HttpInstance->TlsConfigData.VerifyMethod = EFI_TLS_VERIFY_PEER; HttpInstance->TlsConfigData.SessionState = EfiTlsSessionNotStarted; // - // EfiTlsVersion // EfiTlsConnectionEnd, // EfiTlsVerifyMethod // EfiTlsSessionState // Status = HttpInstance->Tls->SetSessionData ( HttpInstance->Tls, - EfiTlsVersion, - &(HttpInstance->TlsConfigData.Version), - sizeof (EFI_TLS_VERSION) - ); - if (EFI_ERROR (Status)) { - goto ERROR; - } - - Status = HttpInstance->Tls->SetSessionData ( - HttpInstance->Tls, EfiTlsConnectionEnd, &(HttpInstance->TlsConfigData.ConnectionEnd), sizeof (EFI_TLS_CONNECTION_END) -- 2.7.4