Commit Graph
208 Commits
Author SHA1 Message Date
Eric St. John 5af200cd50 Rename "dotnet" to "NETStandard"
Fixes https://github.com/dotnet/corefx/issues/5707

We are changing the .NET packages to no longer use the ‘dotnet’, ‘dotnet5.x’, and ‘dnxcore50’ monikers.  This is thee first stage of the change for dotnet->netstandard.

The replacements are as follows

Old moniker | New moniker
----------------- | ------------------
dotnet5.x | netstandard1.y  (where y = x -1)
DNXCore50 | netstandardapp1.5
dotnet | netstandard1.3

To prepare for this change you can do the following to your project.json.  This change will require a recent build of NuGet or dotnet.exe and can be done prior to consuming the packages with the breaking change.  These packages will not work with DNX.

For a project targeting dotnet5.6
```
    "frameworks": {
        "netstandard1.5": {
            "imports": [ "dotnet5.6" ]
        }
    },
```

For a project targeting dnxcore50
```
    "frameworks": {
        "netstandardapp1.5": {
            "imports": [ "dnxcore50", "portable-net45+win8" ]
        }
    },
```

[tfs-changeset: 1578321]


Commit migrated from https://github.com/dotnet/corefx/commit/4435f9f2776ae007e05f4454675e56cf76a51975
2016-02-23 20:18:17 -08:00
Eric Mellino 803de07923 Consolidate all facade projects, cleanup project files
* Move all of the project configurations currently living in the
  "facade\<lib>.csproj" files into the root library project. This means
  there will now be only one project file for the source build of each
  library, regardless of how many configurations it has. The .builds file
  of each library will only reference that single project file multiple
  times.

* Do some minor cleanup of project files along the way. Fix up the VS
  default configuration blocks to be a bit more uniform. Remove redundant
  defaults (OutputType, PlatformTarget, etc. Fix some condition spacing.


Commit migrated from https://github.com/dotnet/corefx/commit/26edfd6839044ca6368e28502e0893c1b1819b4c
2016-02-22 11:11:10 -08:00
Christopher Costa b7275a6e29 Merge branch 'master' of https://github.com/dotnet/corefx into open_pkgs
Commit migrated from https://github.com/dotnet/corefx/commit/7df55caaad1d1e21866ec31b0e7161db9ae2179c
2016-02-19 14:21:24 -08:00
dotnet-bot b32ddb5d98 Deploy nameof throughout corefx in MemberData
Commit migrated from https://github.com/dotnet/corefx/commit/9c3156b9ada06b8e58ac53d48fc303500bf3e476
2016-02-18 23:58:15 -05:00
dotnet-bot 3184718282 Deploy nameof throughout corefx in exception construction
Mostly automated replacement of parameter name string literals with corresponding usage of nameof.


Commit migrated from https://github.com/dotnet/corefx/commit/396b41ddec99d01505c1bc4fa02fb0f0c5844990
2016-02-18 23:58:06 -05:00
Christopher Costa d95b14a3c4 Merge branch 'master' of https://github.com/dotnet/corefx into open_pkgs
Commit migrated from https://github.com/dotnet/corefx/commit/b70432898b7a00edb3303c0fbf4a1b98ebe442b4
2016-02-18 10:28:54 -08:00
stephentoub 95d7cc7534 Update packages to rc3-23818
Commit migrated from https://github.com/dotnet/corefx/commit/380a2ebf4a498f9ab0a819c71d8717377e601bfb
2016-02-18 07:28:09 -05:00
Christopher Costa 23ac6d7e8d Merge branch 'master' of https://github.com/dotnet/corefx into open_pkgs
Commit migrated from https://github.com/dotnet/corefx/commit/ddcd78f8f2ccd3debefefb5e10164d7a038bb7e0
2016-02-17 10:46:00 -08:00
stephentoub 180fba592f Update packages to rc3-23816
Commit migrated from https://github.com/dotnet/corefx/commit/c2e6426b9b9494d5478f656396f4da5711e8729a
2016-02-16 11:05:43 -05:00
Christopher Costa 1df6eaae43 Open package conversions for corefx.
Commit migrated from https://github.com/dotnet/corefx/commit/030e29992f6be20ffb9d9d3e799118f3354bce22
2016-02-11 13:37:45 -08:00
stephentoub 685d9f5063 Add API review headers to ref files
Commit migrated from https://github.com/dotnet/corefx/commit/5240b324e50f9aabaa11d4b0c46acc34e370a724
2016-02-11 10:50:44 -05:00
Stephen Toub f581539eca Merge pull request dotnet/corefx#6016 from stephentoub/remove_cctors
Remove ~20 explicit static cctors across corefx

Commit migrated from https://github.com/dotnet/corefx/commit/11efc0d43d56e1c280653934b27ae5c1ef05af8c
2016-02-11 08:48:15 -05:00
stephentoub 0dc4f0e58f Remove a handful of explicit static cctors across corefx
Explicit static cctors cause the C# compiler to not mark types as beforefieldinit, which in turn means that the backend compiler needs to add checks to static methods to ensure that the type has been initialized.  We have a bunch of such cctors across corefx that can be easily removed; this commit does so.  In a few places, it also presizes some collections to help avoid unnecessary memory pressure.


Commit migrated from https://github.com/dotnet/corefx/commit/79ae21b1b9a113230da7ebfbffa4e3c3fe36f0ac
2016-02-11 07:59:21 -05:00
Davis Goodin 1bc755f9e7 Adds custom xplat nuget that can restore from VSTS feed, adds the VSTS feed, and upgrades project.jsons throughout NDP\FxCore to pass new nuget compatability checks.
Some fixes (adding imports, adding Platforms package) were tooled, but more complex ones (forking project.jsons, editing csproj's) were not.

Also makes dependency version validation rules case-insensitive. (I used this fix to update the versions of some packages.)

[tfs-changeset: 1573868]


Commit migrated from https://github.com/dotnet/corefx/commit/84af04317505d48feaa1e83dd5dc27ddc0f6de76
2016-02-09 14:20:02 -08:00
Cristian Pop 60e09ea41b Merge pull request dotnet/corefx#5852 from CIPop/snstest
Test fixes for System.Net.Security

Commit migrated from https://github.com/dotnet/corefx/commit/4cd21f31004ca7205a5789fe22b334242ab766fc
2016-02-09 13:07:34 -08:00
Jeremy Barton 016afcf113 Merge pull request dotnet/corefx#5981 from bartonjs/osx_remotecert_test
Remove the stale ActiveIssue(5555) tag for OSX

Commit migrated from https://github.com/dotnet/corefx/commit/69e8882f0e1713411e7f51dea0f50a36819bf928
2016-02-08 23:06:11 -08:00
bartonjs 63b35f0cfd Remove the ActiveIssue(5555) tag for OSX
Since the default root store should have trust for this cert now,
consider this scenario to be Generally Regarded As Safe, like it is
for the other platforms.


Commit migrated from https://github.com/dotnet/corefx/commit/88b0d052a76ec90ec6fa575428a1d55d3901ae88
2016-02-08 18:21:54 -08:00
David Shulman 1f1410d4c8 Merge pull request dotnet/corefx#5953 from stephentoub/remove_client
Remove Client property from TcpClient and UdpClient

Commit migrated from https://github.com/dotnet/corefx/commit/1384104e25838004b230fc7f17fffb768c62fa5e
2016-02-08 16:21:28 -08:00
Cristian Pop 01d61b736f Fixing and adding tests for the in-memory VirtualNetwork/Stream. Adding
TaskTimeoutExtensions and fixing the System.Net.Security timeout pattern.


Commit migrated from https://github.com/dotnet/corefx/commit/27954497d635ff0f01fbb16e1b485156c51398ea
2016-02-08 16:02:01 -08:00
stephentoub 2e521c57c9 Update packages to rc3-23808
Commit migrated from https://github.com/dotnet/corefx/commit/31bb3a0cd271aebc9a4336a53b0fc3bb900fe22f
2016-02-08 07:26:49 -05:00
stephentoub 53f90194de Remove Client property from TcpClient and UdpClient
The property leaks through the abstraction.  It's rarely used.  And it complicates things on Unix due to exposing the underlying socket instance combined with difficulties with multiple connect calls on a single socket instance.

Until we have good reason to expose it in the contract, we're removing it from the contract before it's stable.


Commit migrated from https://github.com/dotnet/corefx/commit/30abd30421289509cd3bd18a9114501afdc0fb7c
2016-02-07 10:40:27 -05:00
Stephen Toub 0062318ecb Merge pull request dotnet/corefx#5892 from stephentoub/large_write_test
Add a large write/read test for SslStream

Commit migrated from https://github.com/dotnet/corefx/commit/327fb365bc7a0cc388f8151927fa552c6178dfb7
2016-02-04 21:45:31 -05:00
stephentoub 22d4b057d7 Add large write/read test for SslStream
Commit migrated from https://github.com/dotnet/corefx/commit/bb58fe8011d0c461a2a57faf2647fd73799f2f29
2016-02-04 14:10:00 -05:00
Stephen Toub 37dc6fd97f Merge pull request dotnet/corefx#5835 from stephentoub/sslreadbyte
Override ReadByte on SslStream

Commit migrated from https://github.com/dotnet/corefx/commit/4e2632e194dff28fdf296e0f38c508ef0b95e532
2016-02-04 09:55:08 -05:00
stephentoub 318936cdab Override ReadByte on SslStream
In an application that's using the Redis client library, a significant portion of the allocations are coming from calls to ReadByte on an SslStream.  Since SslStream doesn't override ReadByte, the base Stream.ReadByte is used, and it ends up allocating a temporary array to use in a call to Read.

This commit adds an override of ReadByte on SslStream that returns data from the stream's internal buffer if any is available, otherwise falling back to the old behavior.

On a test that repeatedly writes 1000 bytes and then reads each of those with ReadByte, allocations are reduced by 10x and throughput is doubled. (Note that removing the Interlocked.Exchange in ReadByte yields another 20% improvement in throughput, but I've left it in so as not to impact guarantees of the type.)


Commit migrated from https://github.com/dotnet/corefx/commit/b999431c9c519a797aff3eb472b614e0f15c6650
2016-02-04 08:25:22 -05:00
stephentoub 30a19d4335 Update packages to rc3-23803
Commit migrated from https://github.com/dotnet/corefx/commit/d27ef6fb6092060e643c49a670e825e0cc01ff4d
2016-02-04 07:38:24 -05:00
stephentoub 715cbde1c2 Update dependencies to rc3-23729
Commit migrated from https://github.com/dotnet/corefx/commit/372c940deee1f81c452e69a0ad46ae9f18f6d803
2016-01-29 18:11:41 -08:00
bartonjs 614c77f99b Make SslStreamPal.StartMutualAuthAsAnonymous a constant
Commit migrated from https://github.com/dotnet/corefx/commit/93ac19d8e584e17362bcc9614bb44814cd843295
2016-01-29 06:43:19 -08:00
Stephen Toub c82c776c03 Merge pull request dotnet/corefx#5758 from bartonjs/unix_sslstream_clientauth
Enable Client Auth Certs for Unix SslStream.

Commit migrated from https://github.com/dotnet/corefx/commit/f04c30f5ef95b5dd0f1ca5d5684b20c4cb0a2719
2016-01-28 23:23:19 -08:00
stephentoub de46cba923 Reenable cert validation test on Linux
Commit migrated from https://github.com/dotnet/corefx/commit/c7f630678f752e96a95f8fc53c208306981eb7ea
2016-01-28 18:27:29 -08:00
Jose Perez Rodriguez 88f2de884f Merge pull request dotnet/corefx#5711 from joperezr/RestoreMSBuild
Use .Net Core MSBuild for OS X and Linux Builds

Commit migrated from https://github.com/dotnet/corefx/commit/ab6ec2fa803a330e73809cf478753959a36185e5
2016-01-28 15:51:39 -08:00
bartonjs a0da1541af Enable Client Auth Certs for Unix SslStream.
Pass the handle:

The Windows SslStream flow is to start a TLS session as server auth, then
process a CredentialsRequired during the handshake, add credentials to
the existing session, and continue.

It's hard to maintain symmetry on that flow for the Unix pathway, due to
the API differences in OpenSSL and SChannel.  So, the Unix session will
always pass down to native the provided client auth credentials, and
OpenSSL can use them when it sees appropriate.

Untrusted certificates should still complete handshake:

The Unix SslStream implementation had two different places that a client
authentication certificate was validated.  The first one was from an
OpenSSL callback, and reporting an error will interrupt the TLS handshake.
The second was from after the handshake, and presents the results to the
user validation callback to determine if data should be sent after the handshake.

In the ideal case the first version is redundant, in a user-handled case it caused
a failure when success was expected; so it should just be removed.

Enable the client authentication cert test for Unix:

Also asserts that the IsMutuallyAuthenticated property gets set, the certificates
used were the correct ones, and that both forward and callback versions of
providing the certificate function.


Commit migrated from https://github.com/dotnet/corefx/commit/908a129d5f32a6b5d2737d651445fdd38e1937ea
2016-01-28 15:36:59 -08:00
Jose Perez Rodriguez 0df7c31e39 Use .Net Core MSBuild for OS X and Linux Builds
Commit migrated from https://github.com/dotnet/corefx/commit/4367ec4c791928c6b2f994e9602dbc75aea7934d
2016-01-28 08:46:24 -08:00
Stephen Toub 75b957414f Merge pull request dotnet/corefx#5723 from stephentoub/update_license_headers
Update licensing headers

Commit migrated from https://github.com/dotnet/corefx/commit/ac67ffac987d0c27236c4a6cf1255c2bcbc7fe7d
2016-01-27 14:10:52 -08:00
stephentoub 9ecf277528 Update package versions to rc3-23727
Commit migrated from https://github.com/dotnet/corefx/commit/c442e611d1b4dddc12703b8b80bea9f3889f141d
2016-01-27 08:08:48 -08:00
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
Stephen Toub 8d935f132d Merge pull request dotnet/corefx#5717 from CIPop/removeCsProjTodo
Removing/updating TODOs from System.Net CSProj files

Commit migrated from https://github.com/dotnet/corefx/commit/7ed0277b10518c257a907815b08762a8f77fa43c
2016-01-26 21:59:57 -08:00
Lakshmi Priya Sekar 1aa7a9ac09 Update packages version to 23726.
Commit migrated from https://github.com/dotnet/corefx/commit/213da430524eceb9e90883c3d08848f62c813a91
2016-01-26 16:30:20 -08:00
Cristian Pop 643a78f92f Removing/updating TODOs from System.Net CSProj files
Commit migrated from https://github.com/dotnet/corefx/commit/2e7bd14c5e55ecda926977eef6d5717644783059
2016-01-26 16:15:32 -08:00
Stephen Toub d3bec923b6 Enable System.Net.Security tests on OS X
Commit migrated from https://github.com/dotnet/corefx/commit/b75bcefbae1f1a650224869773fb2bff650dbced
2016-01-25 22:37:01 -05:00
stephentoub 4ef1e70a8a Update package dependencies to rc3-23725
Commit migrated from https://github.com/dotnet/corefx/commit/fad28575225858febd3069d41582a1502c5dda07
2016-01-25 14:38:56 -05:00
Cristian Pop 6247a71128 Merge pull request dotnet/corefx#5642 from CIPop/snsasserts1
Fixing assert conditions for System.Net.Security.

Commit migrated from https://github.com/dotnet/corefx/commit/fab477215a4ce42f0364a4f67244333ef7483310
2016-01-25 10:40:01 -08:00
stephentoub 6545572fb1 Upgrade packages to rc3-23722
Commit migrated from https://github.com/dotnet/corefx/commit/02ece5061a33a7c12113cc4a52b2321d9e6db185
2016-01-23 11:36:29 -05:00
Cristian Pop 7b2e6bafc7 Fixing assert conditions for System.Net.Security.
Commit migrated from https://github.com/dotnet/corefx/commit/1baa844d3a12a5fc225e4c3408726ed917f3cb6e
2016-01-22 17:59:39 -08:00
Cristian Pop 2c567ee8a4 Merge pull request dotnet/corefx#5541 from CIPop/snsrw
Porting async implementation and adding TPL overrides for SslStream Read/WriteAsync

Commit migrated from https://github.com/dotnet/corefx/commit/fac18d8b452438f476b2976c2b7809b677521208
2016-01-22 10:35:12 -08:00
Cristian Pop 4762440ff6 Porting APM functionality for SslStream's InnerStream. Adding TPL wrappers and a simple test proposed by the community.
Commit migrated from https://github.com/dotnet/corefx/commit/aa2e8a7f31077d1787027cd851b88f6a29e126e5
2016-01-21 17:02:05 -08:00
stephentoub f9329ef695 Disable tests failing on CentOS or OpenSUSE
Commit migrated from https://github.com/dotnet/corefx/commit/24dba75503899e794ffde2cf07a4ada57f22072a
2016-01-21 18:29:05 -05:00
stephentoub 0fbf6b8716 Re-enable System.Net.Security tests on Linux
Commit migrated from https://github.com/dotnet/corefx/commit/20199b506c8b1e624de69245ed9fa5b04628178e
2016-01-21 18:29:05 -05:00
stephentoub 891c3cd484 Fix clientCertificateRequired handling
The design of AuthenticateAsServerAsync has a clientCertificatesRequired flag.  On Unix we were mapping that to "SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT", which causes OpenSSL to fail the handshake if no cert is provided.  But the Windows code actually still allows this through, instead setting a policy error to indicate that no certificate was required.  I'm simply removing the SSL_VERIFY_FAIL_IF_NO_PEER_CERT flag to match that design.  I've also updated the test to assert that the error is actually being set.


Commit migrated from https://github.com/dotnet/corefx/commit/81f6c96f4f0562f1dfdf348f5ea9c126be28251e
2016-01-21 18:29:05 -05:00
stephentoub 607c97ab27 Update OpenSSL error handling
Fix handling of certain OpenSSL errors to ensure we don't confliate two different error schemes and don't lose error information in the interop code.


Commit migrated from https://github.com/dotnet/corefx/commit/b9d6a1a9a46bf4a74624a71cfe42b078c2f86dfc
2016-01-21 18:29:05 -05:00