Santiago Fernandez Madero [Tue, 7 Aug 2018 17:33:44 +0000 (10:33 -0700)]
Fix Dictionary tests to work in all frameworks (dotnet/corefx#31630)
Commit migrated from https://github.com/dotnet/corefx/commit/
5524fb540121fa69380c3279708d5fc5c462fbee
Paulo Janotti [Tue, 7 Aug 2018 15:18:22 +0000 (08:18 -0700)]
Make UWP GetPortNames closer to Fx one (dotnet/corefx#31591)
Commit migrated from https://github.com/dotnet/corefx/commit/
d07e5ad9a68ba2db432ba9aa8ee47d256b957ca4
Filip Navara [Tue, 7 Aug 2018 14:17:19 +0000 (16:17 +0200)]
Convert X500NameEncoder to use AsnWriter
Commit migrated from https://github.com/dotnet/corefx/commit/
f1d07c81b5095fbcc66cefc7119f38d0acca5d80
Michal Strehovský [Tue, 7 Aug 2018 07:22:59 +0000 (09:22 +0200)]
Extend reflection test coverage for pointer-typed properties (dotnet/corefx#31615)
Commit migrated from https://github.com/dotnet/corefx/commit/
1533e38ec7ed0080d418c2c980343c62d612ff75
Levi Broderick [Mon, 6 Aug 2018 22:23:20 +0000 (15:23 -0700)]
Update breaking change guidance re: adding interface to existing type (dotnet/corefx#31616)
Commit migrated from https://github.com/dotnet/corefx/commit/
2340b22bacd991c9b5ff585bb6257229ec65b098
Max Kerr [Mon, 6 Aug 2018 21:39:12 +0000 (14:39 -0700)]
Implement HTTP/2 loopback server for frame level testing of SocketsHttpHandler (dotnet/corefx#31521)
This is an initial pass at support for frame level testing of the HTTP/2 protocol.
Commit migrated from https://github.com/dotnet/corefx/commit/
66649ff5862c7b723fded40c505942de19bdb107
dotnet-maestro-bot [Mon, 6 Aug 2018 16:47:33 +0000 (09:47 -0700)]
Update BuildTools to preview1-03106-01
Commit migrated from https://github.com/dotnet/corefx/commit/
5773f3505ad435b317015452daf8c966467f31ec
Caesar Chen [Mon, 6 Aug 2018 19:44:42 +0000 (12:44 -0700)]
Add HTTP/2 CookieContainer support (dotnet/corefx#31440)
* http/2 CookieContainer support
* address feedback
* address feedback 2
* remove grouping
* fix test issue
Commit migrated from https://github.com/dotnet/corefx/commit/
f1be6ce925a2f3a97d8838674987f543058c0942
Caesar Chen [Mon, 6 Aug 2018 17:03:44 +0000 (10:03 -0700)]
Move BackendSupportsAlpn check to CoreFx.Private.TestUtilities (dotnet/corefx#31592)
* add BackendSupportsAlpn to comon
* address feedback
* address feedback
Commit migrated from https://github.com/dotnet/corefx/commit/
e4c68f518455c921b5d425df845dc12eba8081e4
Matt Galbraith [Mon, 6 Aug 2018 16:54:42 +0000 (09:54 -0700)]
Merge pull request dotnet/corefx#31584 from MattGal/remove-ubuntu-1710
Remove Ubuntu 17.10 from CoreFX official runs
Commit migrated from https://github.com/dotnet/corefx/commit/
df5d561e11c1cff659cd9f37738f52519920f9fc
dotnet-maestro-bot [Mon, 6 Aug 2018 14:51:36 +0000 (07:51 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26806-04, preview1-26806-04, preview1-26806-01, beta-26806-00, beta-26806-00, respectively (dotnet/corefx#31604)
Commit migrated from https://github.com/dotnet/corefx/commit/
a5502628c8a9a2f7bc7c48363c89db2eced2617a
dotnet-maestro-bot [Mon, 6 Aug 2018 02:44:33 +0000 (19:44 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26806-01, preview1-26806-01, preview1-26805-04, respectively (dotnet/corefx#31603)
Commit migrated from https://github.com/dotnet/corefx/commit/
e267ad25d58459b90be7cea74ea11b9689daf191
Filip Navara [Sun, 5 Aug 2018 22:49:33 +0000 (00:49 +0200)]
Fix implementation of WriteKeyParameterInteger
Commit migrated from https://github.com/dotnet/corefx/commit/
1e2dfe2c2ef9ca04a46e38f6645021e5da39ffe3
Filip Navara [Sun, 5 Aug 2018 22:49:06 +0000 (00:49 +0200)]
Use GeneralNameAsn in SubjectAlternativeNameBuilder
Commit migrated from https://github.com/dotnet/corefx/commit/
8d2407974c88b50c54f29ee20fd9deb8e6d00b1f
dotnet-maestro-bot [Sun, 5 Aug 2018 15:28:03 +0000 (08:28 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26805-04, preview1-26805-04, preview1-26805-01, respectively (dotnet/corefx#31594)
Commit migrated from https://github.com/dotnet/corefx/commit/
28cb4c8917c25033bb136055c3c2462907a281fe
Filip Navara [Sat, 4 Aug 2018 22:52:08 +0000 (00:52 +0200)]
Consolidate IsLegalKeySize and related methods into common code.
Commit migrated from https://github.com/dotnet/corefx/commit/
aa731cb68cd60128cc4b1efcd8b1a8e859750755
Martin Baulig [Sat, 4 Aug 2018 17:56:40 +0000 (13:56 -0400)]
Rename S.S.C.Pkcs internal `Helpers` class into `PkcsHelpers`
There are a variety of different parial `Internal.Cryptography.Helper` class parts split across
multiple assemblies. This is causing problems for Mono because you cannot "combine" different
parts of partial class across assembly boundaries.
In Mono, the `System.Security.Cryptography.Pkcs` namespace lives in `System.Security.dll`,
but we are already using different parts of that internal class in our `mscorlib.dll`, which is
now causing conflicts due to [InternalsVisibleTo]
Commit migrated from https://github.com/dotnet/corefx/commit/
5812dcbef2cde02a8213139085deefe666376f2c
Filip Navara [Sat, 4 Aug 2018 17:54:58 +0000 (19:54 +0200)]
Merge X509Certificates Oids with the common ones.
Commit migrated from https://github.com/dotnet/corefx/commit/
85c4b4bdae8095c3681d4cd91e00894f26c3baf6
Bruce Forstall [Sat, 4 Aug 2018 00:36:46 +0000 (17:36 -0700)]
Merge pull request dotnet/corefx#30923 from BruceForstall/Arm64VSBuild2
Change arm64 build to use public VS tools instead of private toolset
Commit migrated from https://github.com/dotnet/corefx/commit/
c1788c695d4349c522fc5620eff7d3dd46a0ab5f
Josh Free [Fri, 3 Aug 2018 22:17:11 +0000 (15:17 -0700)]
Add macOS 10.14 Mojave to the RID graph (dotnet/corefx#31548)
Add macOS 10.14 Mojave to Microsoft.NETCore.Platforms
Fixes https://github.com/dotnet/corefx/issues/31547
Commit migrated from https://github.com/dotnet/corefx/commit/
b101ed555dd1fb91b24c4a9d5d665df9e68f335c
Brian Robbins [Fri, 3 Aug 2018 18:03:40 +0000 (11:03 -0700)]
Expose EventWrittenEventArgs.OSThreadId and EventWrittenEventArgs.TimeStamp in the System.Diagnostics.Tracing contract. (dotnet/corefx#31564)
Commit migrated from https://github.com/dotnet/corefx/commit/
c8c882c7366f2facfca4c8069de79da477dcf05b
Geoff Kizer [Fri, 3 Aug 2018 17:55:11 +0000 (10:55 -0700)]
Handle nt auth with Connection: close on initial challenge (dotnet/corefx#31527)
When we receive an initial NT auth challenge that has Connection: close set on the response, we need to proceed with authentication on a new connection.
Fixes dotnet/corefx#30327
Commit migrated from https://github.com/dotnet/corefx/commit/
eedddac1bd10a7c8629a9db7f46fc8afc7385d63
Matt Galbraith [Fri, 3 Aug 2018 17:39:46 +0000 (10:39 -0700)]
Remove Ubuntu 17.10 from CoreFX official runs
Commit migrated from https://github.com/dotnet/corefx/commit/
945b7405486de3e7042779c0319115ac6380e3e0
dotnet-maestro-bot [Fri, 3 Aug 2018 17:09:30 +0000 (10:09 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26803-04, preview1-26803-03, preview1-26803-02, respectively (dotnet/corefx#31582)
Commit migrated from https://github.com/dotnet/corefx/commit/
408fe4f405f4d67c554f03d8fc9e94eb7da55dbb
dotnet-maestro-bot [Fri, 3 Aug 2018 12:31:22 +0000 (05:31 -0700)]
Update ProjectNTfs, ProjectNTfsTestILC to beta-26803-00, beta-26803-00, respectively (dotnet/corefx#31574)
Commit migrated from https://github.com/dotnet/corefx/commit/
38c51476dea06b15d32b98caa64bf292f85f4258
Tanner Gooding [Fri, 3 Aug 2018 12:31:12 +0000 (05:31 -0700)]
Make `Vector64<T>`, `Vector128<T>`, and `Vector256<T>` readonly (dotnet/corefx#31573)
Commit migrated from https://github.com/dotnet/corefx/commit/
ebbd513f2b9750e52b2db46cc78a0cd69c61943c
Filip Navara [Fri, 3 Aug 2018 05:24:30 +0000 (07:24 +0200)]
Move GeneralNameAsn from Pkcs to Common for sharing
Commit migrated from https://github.com/dotnet/corefx/commit/
23915a606017197aed1d24960096b532d24d626e
Marco Rossignoli [Fri, 3 Aug 2018 04:16:26 +0000 (06:16 +0200)]
Added System.Runtime.ProfileOptimization (dotnet/corefx#31067)
Commit migrated from https://github.com/dotnet/corefx/commit/
23fab4631ed927f5657e4ab4a6ce4d45d08bcf7a
dotnet-maestro-bot [Fri, 3 Aug 2018 02:36:40 +0000 (19:36 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26803-01, preview1-26803-01, preview1-26802-04, respectively (dotnet/corefx#31572)
Commit migrated from https://github.com/dotnet/corefx/commit/
54516d08450150cb5fab4e07d999c5d4d4b46398
Dustin Masters [Fri, 3 Aug 2018 01:16:03 +0000 (18:16 -0700)]
Fix looking up headers on HttpClient response (dotnet/corefx#31550)
Headers marked as `HttpHeaderType.Request` were not able to be accessed
via the `Headers.GetValues` method. When looking up a header,
the `HeaderDescriptor` gets set to to `HttpHeaderType.Custom` in
`GetHeaderDescriptor`, but the persisted header in `_headerStore` had
`HeaderType` set to `HttpHeaderType.Request`, so lookups would fail.
This change makes the insert logic consistent with the lookup logic.
Fixes dotnet/corefx#31143
Commit migrated from https://github.com/dotnet/corefx/commit/
8917abaf35ea153f4bbf1098d74d02963ef08e76
dotnet-maestro-bot [Thu, 2 Aug 2018 13:37:53 +0000 (06:37 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26802-05, preview1-26802-04, preview1-26802-01, beta-26802-00, beta-26802-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/
94044e225179b9e7cd5d45d9c959ccb5a222e5d2
Matt Galbraith [Thu, 2 Aug 2018 22:41:30 +0000 (15:41 -0700)]
Merge pull request dotnet/corefx#31566 from MattGal/update-fedoras
Removing Fedora 26 and adding 28 as appropriate.
Commit migrated from https://github.com/dotnet/corefx/commit/
2642a25cb86b5897eebe9e3ff32da1155ca8de3e
Matt Galbraith [Thu, 2 Aug 2018 21:48:18 +0000 (14:48 -0700)]
Removing Fedora 26 and adding 28 as appropriate. Fix a couple README.md typos.
Commit migrated from https://github.com/dotnet/corefx/commit/
e4559a3ca8b32edd8f8c2c8b51ee484b2b29e01b
Anirudh Agnihotry [Thu, 2 Aug 2018 21:10:30 +0000 (14:10 -0700)]
Using Utimes instead of utime hence setting millisecond attribute of last access and last modified time to non-zero (dotnet/corefx#31522)
* using utimes instead of utime
* Test for checking millisec attribute is set or not
* Documenting the values in case of the failure
* NanoSecond enabled
* feedback addressed
* int64_t added
* Fixing build on ci Osx(on which utimensat is not available)
* Minor nits done
Commit migrated from https://github.com/dotnet/corefx/commit/
cd62bb271e98410319460b4ba48332416bcccf65
Filip Navara [Thu, 2 Aug 2018 18:06:59 +0000 (20:06 +0200)]
Start migration of S.S.C.X509Certificates to new Asn.1 APIs
* Read/write X509 extensions using the new ASN classes.
* Change to accept BER, because netfx accepted it.
* Migrate AppleCertificatePal's CertificateData to new ASN classes.
* Migrate CertificateRequest to new ASN classes.
* Update PKCSdotnet/corefx#9 and PKCSdotnet/corefx#10 serialization to use new ASN.1 classes.
* Add test for normalizing zero-only serial number.
* Reimplement RSAPssX509SignatureGenerator using AsnSerializer.
* Reuse PssParamAsn from S.S.C.Pkcs.
Commit migrated from https://github.com/dotnet/corefx/commit/
9853efb2db2063621a40612dc66adc06188b8778
Alexkumar Patel [Thu, 2 Aug 2018 17:39:00 +0000 (13:39 -0400)]
Improve performance for GetViewBetween and enumerating TreeSubSet (dotnet/corefx#30921)
* Improve performance for GetViewBetween and enumerating TreeSubSet
* VersionCheckImpl is not called within the constructor
* count does not get updated by VersionCheckImpl
* count is now updated within VersionCheckCount which is
only called when retrieving Count property. As a result
count has been replaced with Count inside TreeSubSet/SortedSet
where nessessary.
* For TreeSubSet the enumerator now uses the Count of the
parent set (entire tree) when creating the stack.
This results in a larger stack size, however it eliminates the
need to get the count of TreeSubSet, which drastically
increases the performance.
* Cleaned up code and added comments
* Fixed logic error with updateCount
* Removed unnecessary blank line
* Changed VersionCheckCount -> VersionCheck
* Cleaning code
Commit migrated from https://github.com/dotnet/corefx/commit/
cc4d621fc57b5b515d6601c623337ce552ad7f86
Bruce Forstall [Mon, 9 Jul 2018 20:26:07 +0000 (13:26 -0700)]
Change arm64 build to use public VS tools instead of private toolset
Commit migrated from https://github.com/dotnet/corefx/commit/
aea747d507b1c7f3587b92d158c21e4047068ece
dotnet-maestro-bot [Thu, 2 Aug 2018 03:52:37 +0000 (20:52 -0700)]
Update BuildTools, CoreClr, CoreFx, CoreSetup to preview1-03101-02, preview1-26802-01, preview1-26802-01, preview1-26801-04, respectively (dotnet/corefx#31549)
Commit migrated from https://github.com/dotnet/corefx/commit/
384cd87dbf91a21d2a2fa7c4ebb2a96b44616684
Paulo Janotti [Thu, 2 Aug 2018 03:44:03 +0000 (20:44 -0700)]
IO.Ports UAP: use GetCommPorts (dotnet/corefx#31539)
IO.Ports UAP: use GetCommPorts
Commit migrated from https://github.com/dotnet/corefx/commit/
0d4ade609e2b08ee33364beccbe435040f4814cd
Tanner Gooding [Tue, 31 Jul 2018 17:18:37 +0000 (10:18 -0700)]
Expose the x86 HWIntrinsics via a set of class hierarchies matching the underlying ISA hierarchies
Commit migrated from https://github.com/dotnet/corefx/commit/
e8afef97b7fc3d1c45efa467c8e71b1322c84891
Brian Robbins [Wed, 1 Aug 2018 19:48:42 +0000 (12:48 -0700)]
Provide a desktop-only implementation of RuntimeThread.CurrentOSThreadId for Microsoft.Diagnostics.Tracing.EventSource.Redist.
Commit migrated from https://github.com/dotnet/corefx/commit/
267b16e0495281e503eca0837eb30914ad973393
Luqun Lou [Wed, 1 Aug 2018 19:49:00 +0000 (12:49 -0700)]
Add S.R.WindowsRuntime implemenation assembly into .NetCoreApp (dotnet/corefx#30761)
Commit migrated from https://github.com/dotnet/corefx/commit/
724ffdee9db1c95314ca3c45f2692c2b7f73d78e
David Shulman [Wed, 1 Aug 2018 18:49:23 +0000 (11:49 -0700)]
Add test helper to enable SocketsHttpHandler HTTP/2 testing (dotnet/corefx#31530)
The HTTP/2 feature is turned off by default on SocketsHttpHandler since the implementation
is not done. It can be enabled via AppContext or environment variable settings. However,
using those settings is not practical because we need a more granular way of turning on
the HTTP/2 feature for running certain tests.
This PR adds a test helper that uses reflection to set the internal _maxHttpVersion field
of SocketsHttpHandler. I also enabled one HTTP/2 test to demonstrate how to use this test
helper method.
Contributes to dotnet/corefx#31496
Commit migrated from https://github.com/dotnet/corefx/commit/
2f9483cdf78c8b6319f471ccb09422a2b0248ee7
dotnet-maestro-bot [Wed, 1 Aug 2018 17:49:54 +0000 (10:49 -0700)]
Update BuildTools to preview1-03101-01 (dotnet/corefx#31537)
Commit migrated from https://github.com/dotnet/corefx/commit/
7534eddc90495eac1d7276b740367db0cd04fdc4
Jiayi Yu [Wed, 1 Aug 2018 17:27:58 +0000 (10:27 -0700)]
fix a race condition (dotnet/corefx#31437)
Commit migrated from https://github.com/dotnet/corefx/commit/
07f9f7ed665d6a8e20667dd33740e810978ff523
dotnet-maestro-bot [Wed, 1 Aug 2018 13:37:38 +0000 (06:37 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26801-06, preview1-26801-04, preview1-26801-01, beta-26801-00, beta-26801-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/
627d2d365c88178c161c8a5344765a569fc1f871
Josh Free [Tue, 31 Jul 2018 22:22:06 +0000 (15:22 -0700)]
Update Ubuntu 18.04 build instructions
Update Ubuntu 18.04 build instructions to include OpenSSL 1.0.2 headers
https://github.com/dotnet/corefx/issues/28924#issuecomment-
379889142
Commit migrated from https://github.com/dotnet/corefx/commit/
89fe18fc44397309b59af62a01d5e6a8a662a2e8
Josh Free [Tue, 31 Jul 2018 21:34:39 +0000 (14:34 -0700)]
correct clean -all line
correct the clean -all line
Commit migrated from https://github.com/dotnet/corefx/commit/
24a41c3be54ae6fd99c4cb7870f738667c69178e
Santiago Fernandez Madero [Tue, 31 Jul 2018 21:06:56 +0000 (14:06 -0700)]
Fix buffer size in gpstream for netcoreapp20 (dotnet/corefx#31518)
* Fix buffer size in gpstream for netcoreapp20
* Bring back System.Buffers using
Commit migrated from https://github.com/dotnet/corefx/commit/
43d8f38a949c8602a0cc552d1fcb5b1a0c79cae5
Hugh Bellamy [Tue, 31 Jul 2018 21:03:08 +0000 (22:03 +0100)]
Remove unecessary DiagnosticUtility from Syndication code (dotnet/corefx#31184)
* Remove unecessary DiagnosticUtility from Syndication code
Commit migrated from https://github.com/dotnet/corefx/commit/
8b5269680e2bf05e610ecaa2320c965007cec84e
dotnet-maestro-bot [Tue, 31 Jul 2018 14:21:36 +0000 (07:21 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26731-07, preview1-26731-04, preview1-26731-01, beta-26731-00, beta-26731-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/
465b377e030a292616bb9e97dba733a7d17985f6
Michal Strehovský [Tue, 31 Jul 2018 13:57:24 +0000 (15:57 +0200)]
Make non-file URL support optional in XmlUrlResolver
This adds [removable feature annotation](https://github.com/dotnet/designs/pull/42) to `XmlDownloadManager`.
If the user specifies that they would like to remove support for this at publish/native compilation time, the linker/compiler is going to replace the method body of `CreateWebRequestOrThrowIfRemoved` with a throwing method body. The exception message is going to inform the user that the feature has been removed because they opted into the removal.
Contributes to dotnet/corefx#30597. Saves 1.2 MB of the size of the Windows UWP People app. This is a size on disk regression that came with NetStandard 2.0.
Commit migrated from https://github.com/dotnet/corefx/commit/
5898cdd5b835fde14bb3c25c39755725de02f2b9
Michal Strehovský [Tue, 31 Jul 2018 13:52:03 +0000 (15:52 +0200)]
Add RemovableFeatureAttribute
Commit migrated from https://github.com/dotnet/corefx/commit/
e5720ae475b90710586b734f149df2ded318cf73
Alfred Myers [Tue, 31 Jul 2018 14:48:57 +0000 (11:48 -0300)]
X509Certificates2Collection.Find Ignores LRM ('\u200E') when decoding hex string
* Skip Left-To-Right-Mark (copied out of MMC) when it's the first character while parsing hex strings
* Added tests for FindByThumbprint and FindBySerialNumber
Commit migrated from https://github.com/dotnet/corefx/commit/
ba505f52eb415364c1fd4f52ac00c51f37b8d125
Filip Navara [Tue, 31 Jul 2018 14:47:17 +0000 (16:47 +0200)]
Fix [de]serializing ASN.1 classes with default values used together with explicit tag.
* Fix deserializing ASN.1 classes with default values used together with explicit tag.
* Fix default values in PssParamsAsn not to include the explicit tags.
* Fix default values in PssParamsAsn to include explicit NULLs as per comments and RFC.
Commit migrated from https://github.com/dotnet/corefx/commit/
c78053f43e4634a29eabcd6d82ff6d7589b5b120
Anirudh Agnihotry [Tue, 31 Jul 2018 03:05:54 +0000 (20:05 -0700)]
Ported BooleanType to corefx (dotnet/corefx#31497)
Commit migrated from https://github.com/dotnet/corefx/commit/
1ac5ad6d8d2ec93d81db51e727008afe038343d2
Santiago Fernandez Madero [Tue, 31 Jul 2018 00:40:54 +0000 (17:40 -0700)]
Improve GdiPlusStreamHelper to use Span stream apis and kill allocations and make it somehow faster (dotnet/corefx#31494)
* Disable drawing tests that use not implemented gdiplus apis
* Improve GdiPlusStreamHelper to use Span stream apis and kill allocations and make it somehow faster
* PR Feedback
Commit migrated from https://github.com/dotnet/corefx/commit/
f563bfa8064c5b720b165ae0dc40d59d3f6b04cb
Martin Baulig [Mon, 30 Jul 2018 23:13:36 +0000 (19:13 -0400)]
Move platform-specific pieces of `CertificatePal` into separate classes.
* Pal.OSX/CertificatePal.cs: Move `AppleCertificatePal` into its own file and add
all static methods from `CertificatePal` to it, turning `CertificatePal` into a
tiny proxy.
* Pal.Unix/CertificatePal.cs: Move static methods into `OpenSslCertificatePal`, then add `CertificatePal` proxy.
* Pal.Unix/OpenSslX509Encoder.cs and StorePal.cs: use `OpenSslCertificatePal` instead
of `CertificatePal`.
Commit migrated from https://github.com/dotnet/corefx/commit/
3117285369d4f4ed924751950e491bfdc47374cb
David Shulman [Mon, 30 Jul 2018 21:21:59 +0000 (14:21 -0700)]
Add SocketsHttpHandler AppContext and Env variables for HTTP/2 opt-in (dotnet/corefx#31462)
The conclusion from the API review meetings was that we are not adding any
new public APIs to control MaxHttpVersion. This PR adds AppContext and
environment variable controls for opting into HTTP/2.0 support for SocketsHttpHandler.
The default for now is that max version is HTTP/1.1 unless these switches are
used. We will re-evaluate changing the default as we get closer to shipping to
determine if HTTP/2.0 support should be on by default.
Fixes dotnet/corefx#31424
Commit migrated from https://github.com/dotnet/corefx/commit/
5bff639f1afd949852bc098fed27c002d5916036
Wraith2 [Mon, 30 Jul 2018 20:07:26 +0000 (21:07 +0100)]
Remove version increment from Dictionary<K,V>.Remove overloads (dotnet/corefx#30956)
* change tests to support safe enumeration modification operations
* change tests to support safe enumeration modification operations
* restore intrinsic changes
* fix flag comparison copy paste error
* fixing project
* Address feedback
* Address feedback, disable remove tests for 31112
* fix serialization of SortedDictionary.ValueCollection being marked possible
* remove ActiveIssue exclusions for 31112
Commit migrated from https://github.com/dotnet/corefx/commit/
55fd6fed4505d65de2870988802ba642fbf3e61d
dotnet-maestro-bot [Mon, 30 Jul 2018 15:53:46 +0000 (08:53 -0700)]
Update BuildTools to preview1-03030-01
Commit migrated from https://github.com/dotnet/corefx/commit/
6dc43c7d545d6d42eb251ca8d88ef41db7d5c8ca
Filip Navara [Mon, 30 Jul 2018 17:20:34 +0000 (19:20 +0200)]
Reduce redundant code between S.S.C.X509Certificates and S.S.C.Pkcs
* Move X509ExtensionAsn to common source
* Move GetSubjectKeyIdentifier from Helpers directly to ManagedPal and reimplement it using X509SubjectKeyIdentifierExtension public API.
* Remove now-unused Certificate, TbsCertificateLite classes.
Commit migrated from https://github.com/dotnet/corefx/commit/
a07f0c8d4efcb384c2d831c2582645098922d3ca
Santiago Fernandez Madero [Mon, 30 Jul 2018 16:27:03 +0000 (09:27 -0700)]
Add back dotnet restore to compat pack validation script (dotnet/corefx#31481)
Commit migrated from https://github.com/dotnet/corefx/commit/
f15471a929e6a29d5a257f8128b59b020fb2e9a3
Dan Moseley [Mon, 30 Jul 2018 16:05:13 +0000 (09:05 -0700)]
Skip Linq test for UWP (dotnet/corefx#31467)
Commit migrated from https://github.com/dotnet/corefx/commit/
bbd8b4d67090afcf23f4f0f69e94f7cfa41a7e62
Dan Moseley [Mon, 30 Jul 2018 16:05:01 +0000 (09:05 -0700)]
Disable tests for UAP (dotnet/corefx#31466)
Commit migrated from https://github.com/dotnet/corefx/commit/
622839530dec891f196b1b7f68aa45e35b435bf8
Hugh Bellamy [Mon, 30 Jul 2018 16:03:56 +0000 (17:03 +0100)]
Add Conversions.To* VB tests (dotnet/corefx#31341)
* Add Conversions.To* VB tests
* Fixes to test data
* Cleanup tests
* Fix parsing on spanish CI
* Update ConversionsTests.cs
Be robust wrt culture
* Consolidate test data, address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/
55c2eb8c9fd3a7171d46b48ed444af0c4edfe17d
Santiago Fernandez Madero [Mon, 30 Jul 2018 15:51:53 +0000 (08:51 -0700)]
Update compat pack test to restore for 3.0 (dotnet/corefx#31446)
Commit migrated from https://github.com/dotnet/corefx/commit/
f9e73743c76e1d5963508aa85dcfdda802334de7
dotnet-maestro-bot [Mon, 30 Jul 2018 15:35:41 +0000 (08:35 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26730-04, preview1-26730-04, preview1-26730-01, beta-26730-00, beta-26730-00, respectively (dotnet/corefx#31472)
Commit migrated from https://github.com/dotnet/corefx/commit/
82b732db451f4912b73e7913dc70dac06d0f1c03
Dan Moseley [Mon, 30 Jul 2018 15:35:18 +0000 (08:35 -0700)]
Enable strict globally, fix comparison of IntPtr, Guid with null (dotnet/corefx#31457)
* Fix comparison of IntPtr with null
* Enable strict globally and fix
* another
* More fixes
* Disable for S.T.L
Commit migrated from https://github.com/dotnet/corefx/commit/
a0e4d78a74b241289dcf0c4c1c6fa026e394a150
Andrew Arnott [Mon, 30 Jul 2018 15:21:15 +0000 (09:21 -0600)]
Add PipeStream.FlushAsync (dotnet/corefx#31454)
This saves GC pressure by avoiding a TaskFactory.StartNew call in the base FlushAsync implementation.
Commit migrated from https://github.com/dotnet/corefx/commit/
28b4581515d7dbd334d5640e91c68e30005b32ac
dotnet-maestro-bot [Mon, 30 Jul 2018 02:49:51 +0000 (19:49 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26730-01, preview1-26730-01, preview1-26729-02, respectively (dotnet/corefx#31465)
Commit migrated from https://github.com/dotnet/corefx/commit/
f9d403be123af9af4097b52403f61a17273727e6
Jay Krell [Mon, 30 Jul 2018 01:04:34 +0000 (18:04 -0700)]
Make CoreFX/Native be valid C++. (dotnet/corefx#31342)
* Make CoreFX/Native be valid C++.
- Assignment from void* to non-void.
Add cast.
- sizeof_member(struct foo, bar)
Add typedef struct foo foo and remove struct in member_sizeof.
* Change IsInBounds to accept const void* to avoid every caller
needing to cast.
* Remove struct on c_static_assert(offsetof) also.
Commit migrated from https://github.com/dotnet/corefx/commit/
3686f5a4b5eab5eb8678063864a44df4cae05e4c
dotnet-maestro-bot [Sun, 29 Jul 2018 19:32:57 +0000 (12:32 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26729-04, preview1-26729-03, preview1-26729-01, respectively (master) (dotnet/corefx#31450)
* Update CoreClr, CoreFx, CoreSetup to preview1-26729-04, preview1-26729-03, preview1-26729-01, respectively
* Version increment for TrimExcess and EnsureCapacity (dotnet/corefx#31007)
Tests for version increment in TrimExcess and EnsureCapacity (dotnet/corefx#31007)
Revert "Version increment for TrimExcess and EnsureCapacity (dotnet/corefx#31007)"
This reverts commit dotnet/corefx@
92d8f19e11e01948fdbdd3c87867b019a4250006.
Tests for enumeration invalidation in TrimExcess and EnsureCapacity (dotnet/corefx#31007)
Commit migrated from https://github.com/dotnet/corefx/commit/
fff6642338839959fffabb1e2e68b64014ce1ef5
Dan Moseley [Sun, 29 Jul 2018 19:03:18 +0000 (12:03 -0700)]
Add VB test project (dotnet/corefx#31455)
* Add VB test project
* Fix VB Guid
Commit migrated from https://github.com/dotnet/corefx/commit/
1750822c9e7861c6c0eed02821c809e93cb5ef85
Dávid Kaya [Sun, 29 Jul 2018 17:36:36 +0000 (19:36 +0200)]
Set ECDsaCng default hash algorithm to SHA256
Also added tests for both ECDsaCng and ECDiffieHellmanCng to ensure the default matches .NET Framework.
Commit migrated from https://github.com/dotnet/corefx/commit/
d60303de08c9c9c4b2138f02ad597f6486648c11
David Shulman [Sun, 29 Jul 2018 14:57:08 +0000 (07:57 -0700)]
Fix networking tests to work against NETFX (dotnet/corefx#31397)
Several of these tests were disabled because they failed on NETFX. This PR adjusts the tests
to work properly on NETFX due to some differences in behavior from .NET Core.
Fixes dotnet/corefx#28882
Commit migrated from https://github.com/dotnet/corefx/commit/
f5a165540c4067b8fe0635b9beb6102d0b1d87a3
Adam Gauthier [Sat, 28 Jul 2018 23:34:05 +0000 (19:34 -0400)]
Move CryptMsgClose to Common Interop from Pkcs and X509
Commit migrated from https://github.com/dotnet/corefx/commit/
96f782f1cededf1528510f4ddfb5721a056d68b5
Dan Moseley [Sat, 28 Jul 2018 23:31:58 +0000 (16:31 -0700)]
Disable WinRT test from Server Core and Iot Core (dotnet/corefx#31442)
* Disable WinRT test from Server Core and Iot Core
* Update ActivatorTests.netcoreapp.cs
Commit migrated from https://github.com/dotnet/corefx/commit/
2a1f993f7666b733a56310cfadbd40408d44676c
EdwinEngelen [Sat, 28 Jul 2018 05:31:29 +0000 (07:31 +0200)]
Add properties Now and Today (dotnet/corefx#30682)
Commit migrated from https://github.com/dotnet/corefx/commit/
dfa1338034a24eacda7a89d63363ab267a603449
dotnet-maestro-bot [Sat, 28 Jul 2018 04:09:12 +0000 (21:09 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26728-01, preview1-26728-01, preview1-26727-03, respectively (dotnet/corefx#31444)
Commit migrated from https://github.com/dotnet/corefx/commit/
52a747941c5fe36e253c7bac2012794d31dfe300
Adam Gauthier [Sat, 28 Jul 2018 03:24:57 +0000 (23:24 -0400)]
Use CertFreeCertificateContext from Common Interop in Cryptography.Pkcs (dotnet/corefx#31406)
Commit migrated from https://github.com/dotnet/corefx/commit/
916062220f361e24646b13b5d1448795d33cb4bf
EdwinEngelen [Sat, 28 Jul 2018 00:37:43 +0000 (02:37 +0200)]
Add Strings.Filter methods (dotnet/corefx#31181) (dotnet/corefx#31408)
Commit migrated from https://github.com/dotnet/corefx/commit/
fcb0efcd92035c22c93bd7442adbb5a5a99cdffb
EdwinEngelen [Sat, 28 Jul 2018 00:36:03 +0000 (02:36 +0200)]
Place argument name in exception message (dotnet/corefx#31086) (dotnet/corefx#31438)
Commit migrated from https://github.com/dotnet/corefx/commit/
e72860e6255af3b99545fafe5d6604bb304000aa
Dan Moseley [Sat, 28 Jul 2018 00:29:49 +0000 (17:29 -0700)]
Keep test path under max path when test method names are long (dotnet/corefx#31396)
* Keep test path under max path
* Feedback
* Truncate GUID
Commit migrated from https://github.com/dotnet/corefx/commit/
40170c6b50261b28c78a3b5558d1b2757cbdd2fa
dotnet-maestro-bot [Fri, 27 Jul 2018 18:35:22 +0000 (11:35 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26727-01, preview1-26727-04, preview1-26727-01, beta-26727-00, beta-26727-00, respectively (dotnet/corefx#31411)
Commit migrated from https://github.com/dotnet/corefx/commit/
129c5f6b24016ccb1142aef648926e94ccbbefed
Luqun Lou [Fri, 27 Jul 2018 16:38:22 +0000 (09:38 -0700)]
Add Marshal API Marshal.GetExceptionPointers (dotnet/corefx#31169)
Commit migrated from https://github.com/dotnet/corefx/commit/
f97d4ca98c46bb8914d74e5ab6c349e0e1dedbbc
Filip Navara [Fri, 27 Jul 2018 15:30:52 +0000 (17:30 +0200)]
Add T61String support to AsnReader.
Commit migrated from https://github.com/dotnet/corefx/commit/
579c40f1c1f7e5b62ffa949c6c1e26829e5c0f07
Dan Moseley [Fri, 27 Jul 2018 12:17:24 +0000 (05:17 -0700)]
Seal Appdomain to match NETFX (dotnet/corefx#31399)
Commit migrated from https://github.com/dotnet/corefx/commit/
b9d82ae7fd6912b6c0c758e47d0824689adaeafc
Marco Rossignoli [Fri, 27 Jul 2018 00:37:49 +0000 (02:37 +0200)]
Cleanup CAS attributes (dotnet/corefx#31386)
* cleanup CAS attributes
* fix spaces
Commit migrated from https://github.com/dotnet/corefx/commit/
a9d16d97206aa8d2aead52194f40acdd3c85ca28
Pavel Krymets [Thu, 26 Jul 2018 22:20:23 +0000 (15:20 -0700)]
Do not expand stacktraces when completion exception is rethrown multiple times (dotnet/corefx#31375)
Commit migrated from https://github.com/dotnet/corefx/commit/
24c278065c55ee0afa08322b1794f08533634897
dotnet-maestro-bot [Thu, 26 Jul 2018 20:45:34 +0000 (13:45 -0700)]
Update CoreClr, CoreSetup to preview1-26726-04, preview1-26726-01, respectively (dotnet/corefx#31385)
Commit migrated from https://github.com/dotnet/corefx/commit/
f36495b1ceb1fbe7f29c765d08367506db5e9f70
Jeremy Barton [Thu, 26 Jul 2018 15:24:38 +0000 (08:24 -0700)]
Move the Export method from ICertificatePal to ICertificatePalCore
Conflicting changes.
Commit migrated from https://github.com/dotnet/corefx/commit/
f391820c4808bcb02c7b3dd88b684f36a0a98b6a
Eden [Thu, 26 Jul 2018 14:45:18 +0000 (23:45 +0900)]
Fix HAVE_SHM_OPEN_THAT_WORKS_WELL_ENOUGH_WITH_MMAP setup
Commit migrated from https://github.com/dotnet/corefx/commit/
24d18a33552e5488ab584051719ca0e95e193917
Filip Navara [Thu, 26 Jul 2018 14:40:28 +0000 (16:40 +0200)]
Split ICertificatePal across the needs for X509Certificate and X509Certificate2
Facilitates Mono code reuse, where the two classes (and their PAL interfaces) are in different assemblies.
Commit migrated from https://github.com/dotnet/corefx/commit/
963e4ffe9e39d29723899823d04e79321d594221
dotnet-maestro-bot [Thu, 26 Jul 2018 08:52:06 +0000 (01:52 -0700)]
Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-03025-01, preview1-26726-01, preview1-26725-04, preview1-26725-04, beta-26726-00, beta-26726-00, respectively (dotnet/corefx#31345)
Commit migrated from https://github.com/dotnet/corefx/commit/
b93095e8fd025747cb1f9686ed4851dc71b9960e
Phil Garcia [Thu, 26 Jul 2018 02:50:08 +0000 (19:50 -0700)]
Changed internal value to readonly for primitive types (dotnet/corefx#30717)
* Changed internal value to readonly for primitive types
* Updated ApiCompatBaseline.uapaot.txt
Commit migrated from https://github.com/dotnet/corefx/commit/
43f0fd2465d3a10500da7cae74f811b9c7be73f4
Adam Gauthier [Thu, 26 Jul 2018 01:20:39 +0000 (21:20 -0400)]
Use CertCloseStore from Common Interop in X509Certificates (dotnet/corefx#31339)
Commit migrated from https://github.com/dotnet/corefx/commit/
75f6028c60d6c36d75f1a5999492b2c0812337ad
Adam Gauthier [Wed, 25 Jul 2018 23:45:31 +0000 (19:45 -0400)]
Use CertFreeCertificateContext from Common Interop in X509Certificates
Commit migrated from https://github.com/dotnet/corefx/commit/
0c044218122730ff2f91e771ee3e372b89e6e759
Martin Baulig [Wed, 25 Jul 2018 23:44:37 +0000 (19:44 -0400)]
Add ICertificatePal.Export() and use it in X509Certificate.Export().
Partial layering breakup to help with Mono code sharing.
Commit migrated from https://github.com/dotnet/corefx/commit/
c9176baf0080fa5296855295cd06fb61d13e4302
Filip Navara [Wed, 25 Jul 2018 22:26:03 +0000 (00:26 +0200)]
Usa AsnReader.ThrowIfNotEmpty instead of explicit checks.
Commit migrated from https://github.com/dotnet/corefx/commit/
90aed6e851d7ad2d7374b294cca601dbaeb01083