From f0d5a7a62885b38458a8f87f87ed9b45b2d161a0 Mon Sep 17 00:00:00 2001 From: nfbot Date: Mon, 17 Dec 2018 09:22:22 +0000 Subject: [PATCH] Update 3 NuGet dependencies --- source/nanoFramework.System.Net.Http.nuspec | 6 +++--- .../Http/System.Net.HttpListener.cs | 2 +- .../Http/System.Net.HttpWebRequest.cs | 16 ++++++++-------- .../System.Net.Http.nfproj | 16 ++++++++-------- .../packages.config | 8 ++++---- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/source/nanoFramework.System.Net.Http.nuspec b/source/nanoFramework.System.Net.Http.nuspec index 885178cd..4441e561 100644 --- a/source/nanoFramework.System.Net.Http.nuspec +++ b/source/nanoFramework.System.Net.Http.nuspec @@ -17,9 +17,9 @@ nanoFramework.System.Net.Http assembly for nanoFramework C# projects nanoFramework C# csharp netmf netnf nanoFramework.System.Net.Http - - - + + + diff --git a/source/nanoFramework.System.Net.Http/Http/System.Net.HttpListener.cs b/source/nanoFramework.System.Net.Http/Http/System.Net.HttpListener.cs index 76fc4697..6bce1984 100644 --- a/source/nanoFramework.System.Net.Http/Http/System.Net.HttpListener.cs +++ b/source/nanoFramework.System.Net.Http/Http/System.Net.HttpListener.cs @@ -404,7 +404,7 @@ private void AcceptThreadFunc() SslProtocols[] sslProtocols = new SslProtocols[] { SslProtocols.Default }; // Throws exception if fails. - ((SslStream)netStream).AuthenticateAsServer(m_httpsCert, SslVerification.NoVerification, sslProtocols); + ((SslStream)netStream).AuthenticateAsServer(m_httpsCert, sslProtocols); netStream.ReadTimeout = 10000; } diff --git a/source/nanoFramework.System.Net.Http/Http/System.Net.HttpWebRequest.cs b/source/nanoFramework.System.Net.Http/Http/System.Net.HttpWebRequest.cs index 414638dc..7942a379 100644 --- a/source/nanoFramework.System.Net.Http/Http/System.Net.HttpWebRequest.cs +++ b/source/nanoFramework.System.Net.Http/Http/System.Net.HttpWebRequest.cs @@ -223,7 +223,7 @@ protected override void Dispose(bool disposing) /// HttpWebRequest. When the server certificate is received, it /// is validated with certificates in this array. /// - X509Certificate[] m_caCerts; + X509Certificate m_caCert; /// /// The number of people using the connection. Must reference-count this @@ -351,14 +351,14 @@ public NetworkCredential Credentials } /// - /// Gets or sets the array of certificates used to authenticate https - /// servers. These certificates are used only for https connections; - /// http connections do not require them. + /// Gets or sets the root CA certificate used to authenticate with https + /// servers. This certificate is used only for https connections; + /// http connections do not require this. /// - public X509Certificate[] HttpsAuthentCerts + public X509Certificate HttpsAuthentCert { - get { return m_caCerts; } - set { m_caCerts = value; } + get { return m_caCert; } + set { m_caCert = value; } } /// @@ -1445,7 +1445,7 @@ private InputNetworkStreamWrapper EstablishConnection(Uri proxyServer, Uri targe SslStream sslStream = new SslStream(retStream.m_Socket); // Throws exception is fails. - sslStream.AuthenticateAsClient(m_originalUrl.Host, null, m_caCerts, SslVerification.CertificateRequired, SslProtocols.Default); + sslStream.AuthenticateAsClient(m_originalUrl.Host, null, m_caCert, SslProtocols.Default); // Changes the stream to SSL stream. retStream.m_Stream = sslStream; diff --git a/source/nanoFramework.System.Net.Http/System.Net.Http.nfproj b/source/nanoFramework.System.Net.Http/System.Net.Http.nfproj index a0608879..a708f090 100644 --- a/source/nanoFramework.System.Net.Http/System.Net.Http.nfproj +++ b/source/nanoFramework.System.Net.Http/System.Net.Http.nfproj @@ -62,16 +62,16 @@ - - ..\packages\nanoFramework.CoreLibrary.1.0.6-preview-010\lib\mscorlib.dll + + ..\packages\nanoFramework.CoreLibrary.1.1.0\lib\mscorlib.dll True - - ..\packages\nanoFramework.Runtime.Events.1.0.2-preview-017\lib\nanoFramework.Runtime.Events.dll + + ..\packages\nanoFramework.Runtime.Events.1.0.2\lib\nanoFramework.Runtime.Events.dll True - - ..\packages\nanoFramework.System.Net.1.0.2-preview-013\lib\System.Net.dll + + ..\packages\nanoFramework.System.Net.1.0.2\lib\System.Net.dll True @@ -81,11 +81,11 @@ - + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}. - + diff --git a/source/nanoFramework.System.Net.Http/packages.config b/source/nanoFramework.System.Net.Http/packages.config index 9a89eb83..22a58a8f 100644 --- a/source/nanoFramework.System.Net.Http/packages.config +++ b/source/nanoFramework.System.Net.Http/packages.config @@ -1,7 +1,7 @@  - - - - + + + + \ No newline at end of file