Commit Graph
264 Commits
Author SHA1 Message Date
dotnet-bot 6883e89fc3 Updating CoreFX dependencies to rc3-24008-00
Commit migrated from https://github.com/dotnet/corefx/commit/30b74738cdac9c75a2dd165d339f206b1070f3cd
2016-04-08 06:40:37 +00:00
dotnet-bot 0f0193e356 Updating CoreFX dependencies to rc3-24007-00
Commit migrated from https://github.com/dotnet/corefx/commit/d9fdf25de0e1cf35219a26d4f840302e5379f292
2016-04-07 05:37:12 +00:00
dotnet-bot be7ca463ae Updating CoreFX dependencies to rc3-24006-00
Commit migrated from https://github.com/dotnet/corefx/commit/aff79bf3fa8ce8c13b6084d82aca30e534142b81
2016-04-06 05:21:19 +00:00
Stephen Toub f348637ada Merge pull request dotnet/corefx#7317 from kapilash/CodeCleanUp
Unix NegotiateStream: Addressing PR feedback

Commit migrated from https://github.com/dotnet/corefx/commit/a9c4fbdb5cc647e42d561c32494e1b71b050a9ec
2016-04-05 23:13:56 -04:00
dotnet-bot 8c6d7acd5d Updating CoreFX dependencies to rc3-24005-00
Commit migrated from https://github.com/dotnet/corefx/commit/afbf526ac0fae250fc47623f2c43d2caa1abb803
2016-04-05 06:23:55 -04:00
dotnet-bot 9f65b1e1ef Updating CoreFX dependencies to rc3-24004-00
Commit migrated from https://github.com/dotnet/corefx/commit/9fd2c8863f2be58ee5d1431f0c658de61e991551
2016-04-04 20:19:10 -04:00
Stephen Toub ba8bf6c2cd Add CurlHandlers.SslProtocols option
Add CurlHandlers.SslProtocols option

With libcurl on the OpenSSL backend (the recommended configuration), we can provide full-fidelity for this option.  With libcurl on another SSL backend, we can allow choosing all three TLS protcols or just one TLS protocol, but we can't support selecting two of the three.

Commit migrated from https://github.com/dotnet/corefx/commit/bd79e80f25923e0f2e29e07aba60b03070596bb4
2016-04-04 17:27:18 -04:00
Lakshmi Priya Sekar f452ecd1cd Fix project dependencies from the xunit extensions update.
Commit migrated from https://github.com/dotnet/corefx/commit/1939982be59ede355131c9d85684dba4b0449c50
2016-04-01 14:58:15 -07:00
Lakshmi Priya Sekar 2a3abf12b4 Update xunit.netcore.extensions to latest.
Commit migrated from https://github.com/dotnet/corefx/commit/a7bb9eb3327f5cc791d39b4cff764dd7dd29fda5
2016-04-01 14:04:56 -07:00
Jonathan Miller 0e43cc624e Merge pull request dotnet/corefx#6572 from sokket/builds
Adding builds files to the test projects

Commit migrated from https://github.com/dotnet/corefx/commit/e8326c3dab65e2e8eac466f346a9693788d41ca9
2016-03-31 11:41:43 -07:00
Jonathan Miller 7c2ce6913c Adding builds files for the test projects
Commit migrated from https://github.com/dotnet/corefx/commit/752599494fce80b5d0059a9090fdc010d8c7f45b
2016-03-31 10:46:26 -07:00
stephentoub 025ea3f97f Update packages to rc3-23931-00
Commit migrated from https://github.com/dotnet/corefx/commit/e421dd9c41c308f83511e350c1e407d1f728ba78
2016-03-31 08:26:49 -04:00
stephentoub dabfe7fc9d Update packages to rc3-23930-00
Commit migrated from https://github.com/dotnet/corefx/commit/64a2b6c70977e33b4e8fb90e8f5d3b019b843e61
2016-03-30 07:30:59 -04:00
Hemanth Kapila e5afaa1c0e NegotiateStream: Code Cleanup
NegotiateStreamTests are cleaned up to remove boiler-plate code.
Minor Code cleanup to accomodate PR feedback

OS specific error message for native dependencies


Commit migrated from https://github.com/dotnet/corefx/commit/aec145e690fb91bc906181b4cbb87dc51b99d5df
2016-03-29 19:34:17 +05:30
stephentoub aa64955b41 Update packages to rc3-23925-00
Commit migrated from https://github.com/dotnet/corefx/commit/268eea1b538fa80a0042a1eabc4e51c84473d7b0
2016-03-25 20:23:47 -04:00
stephentoub 11bb3f3c94 Remove and replace some stale [ActiveIssue(...)]
Remove some stale [ActiveIssues] where the tests now pass.

Replace some others with [PlatformSpecific], where the behavior is deemed to be "by design" / accepted.

And update a few issue numbers.


Commit migrated from https://github.com/dotnet/corefx/commit/9c13b0c9389189d86fb2d270c28660946b3ae80c
2016-03-25 15:24:49 -04:00
stephentoub 0de8ee2b33 Update packages to rc3-23923
Commit migrated from https://github.com/dotnet/corefx/commit/123180cde4aadbed151ffbc00c09b85b7532da68
2016-03-23 11:56:57 -04:00
Stephen Toub 3ffda29b90 Merge pull request dotnet/corefx#7060 from stephentoub/curl_certs
Implement several certificate properties on CurlHandler

Commit migrated from https://github.com/dotnet/corefx/commit/42857d83882be72db269c14d83345f9a5e740cb6
2016-03-21 16:20:43 -04:00
Stephen Toub 745721c45c Merge pull request dotnet/corefx#7101 from stephentoub/updatepackages
Update packages to rc3-23921

Commit migrated from https://github.com/dotnet/corefx/commit/379c22f76b6b03e17ee4ee9ad93e9ac0dc23f519
2016-03-21 14:23:02 -04:00
stephentoub 5c548a386c Address PR feedback, and misc cert-related improvements
- Disable libcurl's cert verification when we're going to do it all ourselves
- Disable application policy for the single-cert manual case
- Avoid allocating a List when a simple array suffices
- Avoid an array allocation when a stack handle is invalid
- Dispose of a chain when Build fails in client callback
- Dispose of chain and certificate in client callback
- Avoid explicitly throwing an exception across an interop boundary when an invalid SSL pointer is provided
- Use named return constants in client callback for readability
- Dispose of certificates retrieved from store
- Remove some unnecessary code in GetRequestCertificateAuthorities


Commit migrated from https://github.com/dotnet/corefx/commit/027eb1e0dbac9bfa1c9b925fcf84e0566372d916
2016-03-21 12:44:20 -04:00
stephentoub 7754902596 Implement several certificate properties on CurlHandler
Adds implementations for:
- ClientCertificates
- ServerCertificateValidationCallback
- CheckCertificateRevocationList

I've explicitly not added these to the contract, as we're not ready for that yet on other platforms, and I've not added tests (though I've done some testing manually, such as verifying that I could run tweaked versions of the WinHttp server callback tests against this successfully).


Commit migrated from https://github.com/dotnet/corefx/commit/8376a43a5c425cc78dfb94c53b6f100eb5146aca
2016-03-21 12:44:19 -04:00
stephentoub b60997fa74 Update packages to rc3-23921
Commit migrated from https://github.com/dotnet/corefx/commit/3eb508d41d476e4ca0c74d106584c7a7f0d51a17
2016-03-21 12:10:10 -04:00
stephentoub 7cd276893e Fix NegotiateStream_EchoServer_ClientWriteRead_Successive_Async_Success test
Two issues:
1. It's calling ReadAsync and expecting that all bytes requested will be read, even though it's valid for ReadAsync to return fewer than the number requested.
2. It's expecting ContinueWith to automatically unwrap the inner task, and as a result it's not actually waiting for the second write or the second read to complete.


Commit migrated from https://github.com/dotnet/corefx/commit/64dd9b963a1b06d6a9e7d8b76a464f6a882fab6b
2016-03-21 10:24:31 -04:00
Jon Hanna 9e5785eb93 Fix Multiple Typos
Commit migrated from https://github.com/dotnet/corefx/commit/b0dd6b14fc845058b768fc7052b46aab0c1da22c
2016-03-20 16:37:09 +00:00
Jon Hanna 109feb6662 Fix multiple typos.
Commit migrated from https://github.com/dotnet/corefx/commit/3e57029abfd9b205857460b89b9907ccaac4a249
2016-03-20 14:55:31 +00:00
Stephen Toub 6c947edadf Merge pull request dotnet/corefx#6880 from justinvp/netsecurity
Break dependency on older collections in System.Net.Security

Commit migrated from https://github.com/dotnet/corefx/commit/41949d5fafd7cd283a71cf4332679c6179e8afbc
2016-03-19 13:27:58 -04:00
Eric St. John 6aeccb0bae Fix tests to restore using the latest packages
We removed the lifting from the lineup so tests should reference the
latest packages in order to ensure an implementation is available.

The latest pacakges exclude implementation dependencies so I needed to
add these to projects that were depending on them coming in transitively.


Commit migrated from https://github.com/dotnet/corefx/commit/bef9061fd1238adf47b864d8924d121e4134465b
2016-03-19 08:01:11 -07:00
Eric St. John ff75367f93 Update packages to rc3-23918
Commit migrated from https://github.com/dotnet/corefx/commit/d3d217b2ab336b862c27a3e605e32dc0c0a6d472
2016-03-19 08:01:09 -07:00
Justin Van Patten f88ef2e2f9 System.Net.Security: Remove dependency on non-generic collections
Includes minor perf improvements and cleanup.


Commit migrated from https://github.com/dotnet/corefx/commit/9926a6fc52d957d181439a2a1371e2dac495a2a0
2016-03-19 09:35:33 +09:00
Hemanth Kapila 437267bc28 Enable NegotiateStream For Unix
Enabling NegotiateStream for Unix using native gssapi implementation.
The native libraries used are mit-krb5 on linux and the built-in GSS.Framework for OSX.

Also included are the tests which rely on configuring and deploying KDC on the host machine.


Commit migrated from https://github.com/dotnet/corefx/commit/facff9e8d04d9e7ddf53eabea365306266f48865
2016-03-19 00:01:29 +05:30
Eric St. John b134ef2308 Ensure stable assembly ref versions.
Make sure that all of the projects that consume API versions
decremented by
https://github.com/dotnet/corefx/pull/6902/commits/dotnet/corefx@716bb82ed9eb75a5a1e9beb0472d403177cff53f
reference the decremented assembly version.


Commit migrated from https://github.com/dotnet/corefx/commit/fe5b65ef7eaf4ede18e6bf47fc0bbdd79402b5b5
2016-03-15 13:57:09 -07:00
Eric St. John cb42aba990 Fixup typo in Net.Security project.json
This should be dotnet5.4.


Commit migrated from https://github.com/dotnet/corefx/commit/a99a9e2aca8ab5e2aa2f66473c5a527c73216672
2016-03-14 17:32:05 -07:00
Eric St. John 9ccdabca91 Fix generation of Net.Security
This was regressed by https://github.com/dotnet/corefx/commit/dotnet/corefx@be08afd9701053f5f9369762db58b87c8ca9559f


Commit migrated from https://github.com/dotnet/corefx/commit/6799e64e851721d2d3a4be09e9cb641494bfb437
2016-03-14 16:45:32 -07:00
Christopher Costa aab016344e Fat package conversions
Commit migrated from https://github.com/dotnet/corefx/commit/be08afd9701053f5f9369762db58b87c8ca9559f
2016-03-10 16:15:19 -08:00
stephentoub d5e591e45a Update packages to rc3-23910
Commit migrated from https://github.com/dotnet/corefx/commit/ab3948bfab039aac2afc1b521883425a171b982d
2016-03-10 09:37:40 -05:00
stephentoub 4e4871961d Fix AsyncResult.AsyncState cast to ExceptionDispatchInfo
Commit migrated from https://github.com/dotnet/corefx/commit/ca30a2e963c9beb233d80d357589b88badd41e80
2016-03-09 09:20:42 -05:00
Eric St. John 8cba463a08 Update crypto package dependency versions
System.Security.Cryptography.Algorithms, Cng, and X509Certificates are
now 4.1.0.  Update dependencies to ensure we get the right build.


Commit migrated from https://github.com/dotnet/corefx/commit/6e3e29dbec3705094a539b6b2dc863c5a8ee270c
2016-03-08 21:40:47 -08:00
stephentoub f4959f5f54 Throw PlatformNotSupportedException for unsupported encryption policies
Commit migrated from https://github.com/dotnet/corefx/commit/774f5d02f1ac039cf23fafe4b7fc4089447050cb
2016-03-08 20:46:48 -05:00
stephentoub 7fb4ccd3dd Re-enable System.Net.Security "no encryption" tests on Linux
We'd disabled these tests on Linux because they were failing on OpenSUSE.  The reason turned out to be that the openssl installed on OpenSUSE was built explicitly without null cipher support.  This commit re-enables the tests, but as ConditionalFacts that check whether we're either on Windows or on a Unix with an openssl that sports null ciphers.


Commit migrated from https://github.com/dotnet/corefx/commit/28b0230bfbf8555a6af6993b7a86f639d4143f2e
2016-03-08 20:37:13 -05:00
stephentoub c0eb281ce4 Fix version conflict warnings when building System.Net.Security.Tests
Commit migrated from https://github.com/dotnet/corefx/commit/fa3c609fd33d2943efd6ccd1035b17582c3b91ec
2016-03-08 14:10:34 -05:00
stephentoub f9b3bc26fd Use ExceptionDispatchInfo in SslStream
Currently in SslStream, exceptions get captured and then later thrown with "throw exception;".  This causes their stack traces to get overwritten, losing information about where the exception actually came from.  This commit changes these locations to use ExceptionDispatchInfo instead, enabling the stacks and Watson bucket information to be preserved.

For example, instead of:
```
System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
     at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult) in corefx\src\System.Net.Security\src\System\Net\SecureProtocols\SslState.cs:line 752
     at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result) in corefx\src\System.Net.Security\src\System\Net\SecureProtocols\SslState.cs:line 722
     at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult) in corefx\src\System.Net.Security\src\System\Net\SecureProtocols\SslStream.cs:line 125
     at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Xunit.Assert.<RecordExceptionAsync>d__61.MoveNext()
```
we now get:
```
System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
     at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) in corefx\src\System.Net.Security\src\System\Net\SecureProtocols\SslState.cs:line 882
     at System.Net.Security.SslState.PartialFrameCallback(AsyncProtocolRequest asyncRequest) in corefx\src\System.Net.Security\src\System\Net\SecureProtocols\SslState.cs:line 1110
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult) in corefx\src\System.Net.Security\src\System\Net\SecureProtocols\SslState.cs:line 752
     at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result) in corefx\src\System.Net.Security\src\System\Net\SecureProtocols\SslState.cs:line 722
     at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult) in corefx\src\System.Net.Security\src\System\Net\SecureProtocols\SslStream.cs:line 125
     at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Xunit.Assert.<RecordExceptionAsync>d__61.MoveNext()
```


Commit migrated from https://github.com/dotnet/corefx/commit/be3b7c684d0cac65b02643821366eb596e658c65
2016-03-08 14:10:34 -05:00
stephentoub 54c817496d Pass Exception through SecurityStatusPal in SslStream
There isn't a good mapping between OpenSSL errors and most of the errors in SecurityStatusPal.  As a result, with the current set up, important information about errors that occurred is getting lost and translated into meaningless information by the time it makes it out to the developer, making it difficult to diagnose the cause of a failure.

This commit allows the original exception behind a failure to be passed through the PAL layer, such that when an exception is eventually thrown, the Unix implementation can choose to use the original exception rather than translating the error code.


Commit migrated from https://github.com/dotnet/corefx/commit/c728b965bf9eea09ea1d3b06a2d70768d60c468e
2016-03-08 14:10:34 -05:00
Eric St. John f4d3d8121e Undo X509Certificates workarounds
Fixes https://github.com/dotnet/corefx/issues/6718

Previously NETStandard1.3 packages couldn't consume X509Certificates
due to a missing reference assembly.  That's been fixed so we can undo
the workarounds.


Commit migrated from https://github.com/dotnet/corefx/commit/13f225a650f40b5661cccc93985facb1b07f3786
2016-03-08 08:46:51 -08:00
Eric St. John 04a73fbed6 Update packages to rc3-23908
Commit migrated from https://github.com/dotnet/corefx/commit/86a230845c4f1840dcb9b52165c6976fad5b5868
2016-03-08 08:46:50 -08:00
Eric St. John 1e65a7ae4b Remove S.Runtime 4.1.0 workarounds
Previously we were incorrectly lifting InteropServices references to
4.1.0.0 in the packages  https://github.com/dotnet/corefx/pull/6648.

This caused an issue when consuming those packages since it would
cause a typeforward to System.Runtime and we weren't referencing
the version of System.Runtiem to satisfy the forward.  Now that I've
fixed the incorrect baselining we can remove the System.Runtime
workarounds.


Commit migrated from https://github.com/dotnet/corefx/commit/d2b7863243eca913cd52c1f860261a053af1655c
2016-03-07 13:00:48 -08:00
Eric St. John 65d3d63e3e Workaround no NETStandard1.3 support in X509 pkg
Switches from package to project reference for projects that consume
X509Certificates and target NETStandard1.3.  Package refefences were
added to other crypto contracts to satisfy the closure walk done during
target framework validation.

Remove all of this when fixing https://github.com/dotnet/corefx/issues/6718


Commit migrated from https://github.com/dotnet/corefx/commit/4c7720dee1897bddd69be267d84261530a136c87
2016-03-07 13:00:12 -08:00
stephentoub 38f7d19954 Update packages to rc3-23907
Commit migrated from https://github.com/dotnet/corefx/commit/baed539ebb753fefc91da9870ddeee72df0a6e14
2016-03-07 10:12:40 -05:00
stephentoub f3434408bc Update xunit.netcore.extensions to 00187
Commit migrated from https://github.com/dotnet/corefx/commit/3cfd81e7369628d052da6367b28c6f5b5839f55d
2016-03-03 22:06:40 -05:00
stephentoub 9b4473ede7 Upgrade package versions to rc3-23901
Commit migrated from https://github.com/dotnet/corefx/commit/55246a7fc60807d021fded5e333784956a662a51
2016-03-02 07:40:12 -05:00
Eric St. John 7c5ac76238 Add support for new Xamarin frameworks
The latest build tools contains framework lists for two new Xamarin fxs:
  Xamarin.TVOS
  Xamarin.WatchOS

This adds placeholders for those frameworks so that they can support
the packages with inbox facades.


Commit migrated from https://github.com/dotnet/corefx/commit/baf425fa935f4ecd32712448be627604067cf1d3
2016-02-29 14:43:27 -08:00