Commit Graph
264 Commits
Author SHA1 Message Date
Matt Ellis e80c1f6794 Remove debian.8.2-x64 rid from projects
debian.8-x64 is the correct rid for debian and CI no longer uses it.


Commit migrated from https://github.com/dotnet/corefx/commit/8eba099f188af464e5e4ef8cd1b75ec53b137918
2016-05-17 19:22:33 -07:00
dotnet-bot 3aa5dbf336 Updating CoreFX dependencies to rc3-24117-00
Commit migrated from https://github.com/dotnet/corefx/commit/976b88889266258325f501e443b5bda6200cd3cc
2016-05-17 16:57:43 -04:00
Deepak Shankargouda 66f0590c27 Enabling perf tests execution on linux via helix (dotnet/corefx#8441)
Enabling perf tests execution on linux via helix


Commit migrated from https://github.com/dotnet/corefx/commit/0d35a7fdc378de6df5058086bd1edddefcd2ed95
2016-05-17 12:43:46 -07:00
Matt Ellis 39c142ef5a Add additional runtimes
- Add "debian.8-x64". This is the correct rid for Debian, after this
  lands, I will need to update CI before we can remove "debian.8.2-x64"

- Add a generic "linux-x64" rid which we can use in cases where we want
  to build for a distro where we don't yet have a set of runtime
  packages.  This will let us restore the managed assets (since they are
  specific to "unix" or "linux" and then folks can do a native build to
  get the shims and runtime and copy them over (this is a more
  reasonable approach than our current strategy of just using
  ubuntu.14.04-x64)

- Sort runtime sections


Commit migrated from https://github.com/dotnet/corefx/commit/6fa4bc1d215d17ff484aa3f541c5e3181f6918de
2016-05-15 00:19:07 -07:00
dotnet-bot 8e00f7db31 Updating CoreFX dependencies to rc3-24113-00
Commit migrated from https://github.com/dotnet/corefx/commit/4a1e90e8a33c423e5356e9850b834cbfa24bfde7
2016-05-13 15:50:55 +00:00
Matt Ellis 9d35e26f4e Fix S.S.SecureString cross plat build issue
When the Configuration is set to Windows_Debug, it forces the project
to be built for Windows_NT instead of AnyOS.

We also need to flow the InputOSGroup to the reference (since it cross
compiles for different OSGroups) so we pick up the right version of the
reference.

Fixes dotnet/corefx#8425


Commit migrated from https://github.com/dotnet/corefx/commit/98a5735b7708d5d1fcb2d9e720a60f30fd28dddf
2016-05-13 00:02:29 -07:00
dotnet-bot ce3a923ef2 Updating CoreFX dependencies to rc3-24112-00
Commit migrated from https://github.com/dotnet/corefx/commit/388140d1885acee4019544e4b9f8ccb6dd4310d6
2016-05-12 05:51:26 +00:00
stephentoub a678e5bf56 Port mini-stress test for SecureString
Commit migrated from https://github.com/dotnet/corefx/commit/dbac7947c03e0a278f4a5bd3623a614a5a364c4f
2016-05-11 15:33:41 -04:00
stephentoub bb56a66ba5 Updating CoreFX dependencies to rc3-24111-00
Commit migrated from https://github.com/dotnet/corefx/commit/3b49a7960613e27f89538a53a893a0f8fbb74593
2016-05-11 06:47:29 -04:00
dotnet-bot bb2d7075e5 Updating CoreFX dependencies to rc3-24110-00
Commit migrated from https://github.com/dotnet/corefx/commit/2c092dd2f1ede076753ffee8342a4e04f919b89a
2016-05-11 00:08:46 +00:00
stephentoub 1c932533b1 Switch SecureString to use CryptProtectMemory
Switch from CryptProtectData to CryptProtectMemory, per feedback and to enable these to be used without a logged-in user, matching the full framework.

Also added some more tests.


Commit migrated from https://github.com/dotnet/corefx/commit/252473667b31743e900332af0cd4a6dce97cb04d
2016-05-09 21:56:04 -04:00
stephentoub 126aee5d87 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/8fa9f0c611700c72fb253a0da3158658212bfe6a
2016-05-09 10:34:37 -04:00
stephentoub da805e653e Fix SecureString implementation
- Get it to compile again; lots changed since it was removed.
- Fix the package; lots changed since it was removed.
- Fix the Unix implementation to be usable; previous hacky attempts were made to provide deeper security but that significantly impacted usability... now it simply keeps the data in unmanaged memory and ensures it's zeroed out when disposed.
- Added missing methods to SecureStringMarshal
- Improved the tests
- General additional code cleanup


Commit migrated from https://github.com/dotnet/corefx/commit/d144478997b46afcf7a82e6860fce3c29d0dcf62
2016-05-09 09:51:35 -04:00
stephentoub 0071306cde Revert "Remove SecureString usages"
This reverts commit dotnet/corefx@46db5bcbb4.


Commit migrated from https://github.com/dotnet/corefx/commit/8f40e4de684f9a84e5bb959b62499b459e8a7914
2016-05-09 09:51:35 -04:00
Pallavi Taneja 372bd04fe5 Remove the left over pieces for SecureString from the open.
[tfs-changeset: 1533070]


Commit migrated from https://github.com/dotnet/corefx/commit/6f66c4b5c7a500fbb8812a15e403f904cae8ef24
2015-10-02 14:42:47 -07:00
Pallavi Taneja 0185f7f683 Remove SecureString usages
Commit migrated from https://github.com/dotnet/corefx/commit/46db5bcbb484baf02f98320287d2fe0bd2e86599
2015-09-29 15:01:25 -07:00
bartonjs a52f41057c Update all CoreFx package references to 23328 build.
`build.cmd /p:LockDependencies=true` was the start of this change, but some errors with xunit build numbers led to all xunit upgrades being reset back to what they had in master.

project.json changes:
* System.Net.Security\src Switch off of explicit beta versioning, use the same baseline as everyone else.  The S.S.C.Algorithms explicit upgrade is no longer required.
* System.Net.Requests\tests didn't build.  Looking at the project.lock.json change, it appeared that a System.Net.Http reference was lost, restored it.
* System.Net.Http\tests didn't build. Looking at the project.lock.json change, it appeared that a System.IO.FileSystem reference was lost, restored it.
* System.Net.WebSockets.Client\src didn't build. Looking at the project.lock.json change, it appeared that a System.Collections (4.0.10) reference was lost, restored it.
* System.Diagnostics.TextWriterTraceListener\tests needed the runtime reference to load the correct System.Diagnostics.TraceSource binary.


Commit migrated from https://github.com/dotnet/corefx/commit/cec3a0f2db542bfa9d9c56bf988d966eacc35ad9
2015-09-29 11:40:37 -07:00
Alexander Köplinger 3e20a867b2 Update build to use DNX beta7 instead of beta5
The corefx build used an older beta5 version of DNX which hardcoded the path to bash in dnu, breaking the build on FreeBSD.
Updating DNX to the latest "stable" beta7 release fixes this.

After updating I noticed a few test projects didn't build anymore as they were missing some dependencies in project.json, added those.

Fixes dotnet/corefx#3173


Commit migrated from https://github.com/dotnet/corefx/commit/6df77fdbb6cf8e0d35a3074bb325f7810085daa3
2015-09-16 02:12:26 +02:00
Nick Guerrera 753e95f292 Shim memory map functions
Commit migrated from https://github.com/dotnet/corefx/commit/e001833c95b622bcdcd66f3e4a56cd83e648f849
2015-09-10 18:10:43 -07:00
Nick Guerrera 453f5e9697 Remove unused gnu_get_libc_version P/Invoke declaration
This was previously needed for the logic to switch between GNU
strerror_r and POSIX strerror_r, but that is now addressed by the shims.


Commit migrated from https://github.com/dotnet/corefx/commit/ff96ce829df16f8a0b58f568e9b696fa19e698a8
2015-08-27 08:07:54 -07:00
stephentoub 4992aaa978 Fix access to user's home directory on Unix
Today in several places we get a user's home directory by accessing the HOME environment variable.  This is the right place to check first, but in certain cases it may not be set, such as in initialization scripts.

This commit implements a fallback, such that if HOME doesn't have a path, we consult the pw_dir path from a call to getpwuid_r for the current user.

As long as I was adding getpwuid_r to the native shim, I also moved our existing geteuid and getegid imports to the shims.


Commit migrated from https://github.com/dotnet/corefx/commit/5b8f55c8d43a880147478cb7d2191fa607000594
2015-08-19 15:06:32 -04:00
Eric St. John d7a0ae297b Update corefx packages to latest
Commit migrated from https://github.com/dotnet/corefx/commit/23f0b695bd162e0f665427c95180dc21931e5c70
2015-08-14 15:43:23 -07:00
Eric St. John 77309d4821 Update the version of all assemblies
This change updates the assembly versions of all of the corefx assemblies
as needed after we shipped stable versions.  Assemblies with API differences
get a minor version bump.  Assemblies with only bugfixes get a build version
bump.

In order to facilitate this I had to update the reference assemblies, so I took
the opportunity to port them all to the open.

[tfs-changeset: 1514419]


Commit migrated from https://github.com/dotnet/corefx/commit/40723b795917f2e98b64d45c17effb2546dd0cae
2015-08-13 17:07:57 -07:00
Nick Guerrera b760fb6fb0 Merge pull request dotnet/corefx#2606 from nguerrera/add-errno-shim
Add errno shim (+ existing shim cleanup precursor)

Commit migrated from https://github.com/dotnet/corefx/commit/b9fc9e6d00fef3e83f2d80951e210b868627c328
2015-08-06 20:41:35 -07:00
stephentoub d6467ac0af Use RuntimeInformation across corefx for platform detection
This commit deletes our temporary Interop.PlatformDetection.cs mechanism and replaces usage of it with usage of System.Runtime.InteropServices.RuntimeInformation.dll.


Commit migrated from https://github.com/dotnet/corefx/commit/6861b625b391566544be9a60356c8c03b15e5fb5
2015-08-06 10:25:17 -04:00
Nick Guerrera f6ce429b8e Respond to PR feeback
* Defer conversions until necessary
* Rename Errno -> RawErrno
* Return null for ERANGE for strerror
* Add conversion helper for Error -> ErrorInfo
* Fix typos
* Remove unnecessary _POSIX_C_SOURCE define
* Fix names and sizes of managed FileStatus members
* Don't double-initialize ErrorInfo out param
* Zero out BirthTime when not available
* Put back newline at EOL
* Restore size of UnixFileSystemObject
* Use ignored local name for ignored error info
* Rename Interop.System to Interop.Sys to avoid
  collision with System namespace


Commit migrated from https://github.com/dotnet/corefx/commit/e82401bd3feea682832215d1e97dbb4bb73e211a
2015-08-06 06:52:01 +00:00
Nick Guerrera ef4deeef20 Use new errno shim from managed code
Commit migrated from https://github.com/dotnet/corefx/commit/2b01345b2a925400569269b1149afd645c77b790
2015-08-06 06:52:01 +00:00
Jeremy Barton 70feac8d6a Merge pull request dotnet/corefx#2614 from bartonjs/fix_build_warnings
Remove build warnings in cryptography libraries

Commit migrated from https://github.com/dotnet/corefx/commit/d6d8a09fe6b3eaeae985d2dbf14209eabf9b349d
2015-08-04 16:23:53 -07:00
bartonjs b54a524c21 Remove build warnings in cryptography libraries
System.Security.Cryptography.Primitives uses System.IO-4.0.10.  The rest of the cryptography libraries seems to get an implicit reference to System.IO, but 4.0.0.  A post-build analysis is not pleased by this state of affairs.

So, for all libraries that currently package-to-package reference System.Security.Cryptography.Primitives; add a System.IO-4.0.10 reference.


Commit migrated from https://github.com/dotnet/corefx/commit/115a4a3101e60773f1b5fed77b5f2cb4f2a164bd
2015-08-04 07:36:11 -07:00
Eric Mellino 66969e748b Re-lock dependencies with latest xunit
Commit migrated from https://github.com/dotnet/corefx/commit/795cbc75f8e167047a7c19cd7e21e99b9b9f4308
2015-08-03 16:40:33 -07:00
Eric Mellino 219af47e0c Update test dependencies
Fixes all test warnings about 'different versions of the same dependent
assembly'


Commit migrated from https://github.com/dotnet/corefx/commit/b84f53f744ba0418255cbe471b783dde2a700a8e
2015-08-03 13:44:34 -07:00
Eric Mellino c0015fc582 Move all tests to latest xunit beta
Commit migrated from https://github.com/dotnet/corefx/commit/7c12b0120834f92d5c591124f692ea1b64c6a877
2015-08-03 11:27:48 -07:00
Eric St. John 47aaf9fcf8 Use stable package dependencies and move our packages to post-stable versions
This change modifies the build to consume the stable version where available.

This disables building the dowlevel packages since we shipped them once as stable and we're done.
From here on out, we'll only build the latest version (except for a servicing event, which would
be handled by syncing to a hash).

I can't rev the package versions in the normal way yet (by modifying the assembly version of the contents)
because that turned out to be too big of a problem to tackle in this change. Instead I added a
parameter to the task that calculates package versions to do the rev for anything that was
stable, but only when building the package itself, not when calculating the dependencies.
This has the downside of not permitting a dependency on a incremented pre-release version if we've
shipped a stable version, but that is a small point in time problem until I can rev the assembly
versions.

[tfs-changeset: 1508664]


Commit migrated from https://github.com/dotnet/corefx/commit/ee1ec2891c7c65b46fa9dfb078636be503bb2a60
2015-07-31 15:47:51 -07:00
Jeremy Barton b4912ec0f5 Repartiton crypto contracts, and refresh the API set.
Some of the contracts were moved in their entirety:

System.Security.Cryptography.Encryption            => System.Security.Cryptography.Primitives
System.Security.Cryptography.Hashing               => System.Security.Cryptography.Primitives

System.Security.Cryptography.RandomNumberGenerator => System.Security.Cryptography.Algorithms
System.Security.Cryptography.Encryption.Aes        => System.Security.Cryptography.Algorithms
System.Security.Cryptography.Hashing.Algorithms    => System.Security.Cryptography.Algorithms
System.Security.Cryptography.DeriveBytes           => System.Security.Cryptography.Algorithms

The only partitioned library was System.Security.Cryptography.RSA:
  The RSA base class and supporting types                            => System.Security.Cryptography.Algorithms
  The RSACryptoServiceProvider class and additional supporting types => System.Security.Cryptography.Csp
  The internal RSAOpenSsl type was made public                       => System.Security.Cryptography.OpenSsl
  RSACng was copied from desktop                                     => System.Security.Cryptography.Cng

This change also pulls in the RSA contract refresh from 4.6.
It does not yet add RSA.Create() to do the right reflection-forward lookups (the change was already big enough)
It also has the sad side effect of turning off the RSA tests for Linux, but fixing that problem is high on my list after getting the packages published. (I wanted to keep as many files as possible intact so they show as moves both in TFS and on github... rename+edit in TFS will likely not show up as cleanly in git).
Git builds will continue to have test coverage, but with the old contracts disabled ToF tests will shut down.  ToF tests will be re-enabled in a followup change.

[tfs-changeset: 1505642]


Commit migrated from https://github.com/dotnet/corefx/commit/ce0506baea623efdb74707aee0e4aa169d6f468c
2015-07-24 08:13:47 -07:00
stephentoub bab02c72eb Ensure all Common includes use a <Link/>
Modifies various .csproj files to ensure that all Includes for files under Common use a <Link/> so that Visual Studio shows the files under a Common folder rather than flattened in the root.

Fixes dotnet/corefx#144


Commit migrated from https://github.com/dotnet/corefx/commit/264d92084d6c6366c3c23edaaab54a32f61d501b
2015-07-15 10:21:33 -04:00
Nick Guerrera 4c28436d2e Update package dependency versions
Commit migrated from https://github.com/dotnet/corefx/commit/0c6b87e4e67e80b5d751bcd6883ca6e89fb68157
2015-06-24 14:04:15 -07:00
Matt Mitchell 9d11745057 Update build tools. Contains changes to support FreeBSD in xunit.
Float package versions to get the latest version of the netcore extensions (has FreeBSD support)


Commit migrated from https://github.com/dotnet/corefx/commit/c760824a531ffc3981148a8ef9b97f56af9ff643
2015-06-23 16:06:50 -07:00
Eric StJohn 1a58e04134 Update corefx packages to version 23011
Commit migrated from https://github.com/dotnet/corefx/commit/3bb2f035a7c1f6168a6bd34fbf3851f7eedf76bf
2015-06-19 16:33:53 -07:00
Jostein Kjønigsen 371984f88d Implement FreeBSD platform support various corefx classes.
- SecureString
- System.Diagnostics.Debug


Commit migrated from https://github.com/dotnet/corefx/commit/87ca286dd74f7fb6aa4d251c3856a48fe6369ab9
2015-06-14 12:15:47 +02:00
stephentoub 68b0c18d2d Update all project.lock.json files
Used:
build.cmd /t:RestorePackage /p:LockDependencies=true


Commit migrated from https://github.com/dotnet/corefx/commit/76fcb7ab9444f68577ca0ec17055ca8c4e574b75
2015-06-10 10:19:11 -04:00
Eric StJohn e8454e28a5 Update projects to latest CoreFx packages
This is the result of build /t:RestorePackages /p:LockDependencies=true from the root.

This adds all missing project.lock.json files and updates existing ones to the latest package versions.


Commit migrated from https://github.com/dotnet/corefx/commit/38e0d2a0f8513afe6dc7d86a67e5776ab7b99df1
2015-05-27 12:18:06 -07:00
Eric Mellino 1d600c2909 Merge pull request dotnet/corefx#1809 from dotnet-bot/from-tfs
Merge changes from TFS

Commit migrated from https://github.com/dotnet/corefx/commit/e9b144e6882b972fbca043f5f5b156ff45813c5f
2015-05-21 20:46:11 -07:00
Eric St. John a8788d6383 Lock dependencies to ensure we build against a predictable package version
This change adds the lock files to repo to ensure we build against a stable set of dependencies.  To explicitly update dependencies use build.cmd /T:RestorePackages /P:LockDependencies=true and this will pick up the latest depenedencies.

Existing projects adding new dependencies will automatically update the lock file incrementally.

New projects should make sure to check their lock file in with locked set to true.

[tfs-changeset: 1474296]


Commit migrated from https://github.com/dotnet/corefx/commit/d2fbc005707933db1cebca035d6cd6073af6cae4
2015-05-21 15:23:27 -07:00
Jeremy Kuhne e5f55716db Make tools packages.config host platform specific.
Commit migrated from https://github.com/dotnet/corefx/commit/13f9e121ad8e1c6a7d7cb0e4be4a9c5cdc814094
2015-05-20 14:09:51 -07:00
Stephen Toub f6cae2d491 Merge pull request dotnet/corefx#1750 from stephentoub/secure_string_fixes
Multiple fixes to SecureString

Commit migrated from https://github.com/dotnet/corefx/commit/4353712ec6960f17cacbad45675955001b409404
2015-05-15 20:21:41 -04:00
Stephen Toub 16abe9bbec Add assert on lenInBytes to SafeBSTRHandle.Allocate
Commit migrated from https://github.com/dotnet/corefx/commit/3a18569dd90d43fdf6b045e2a9162e793c1faaa6
2015-05-15 19:09:05 -04:00
Stephen Toub 843dfcf6e9 Dispose of SecureString buffers
Each time a modification is made to a SecureString, the buffer is decrypted, modified, and encrypted.  And each of these operations results in a new buffer being created.  But the old buffer isn't being disposed, meaning it's left for finalization.

This commit calls Dispose on such buffers.


Commit migrated from https://github.com/dotnet/corefx/commit/98e72ffe453ada38b3f0f0c471526bb28bad4f1b
2015-05-15 19:09:03 -04:00
Matt Ellis 771502f50b Merge 'upstream/master' into from-tfs
Conflicts:
	dir.props
	src/.nuget/packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/eb58e5b84672c7a0b82ee6b241577134d36c1401
2015-05-15 15:26:03 -07:00
Eric St. John de6614c63a Update to latest CoreFx packages
Latest packages are now on dotnet-core myget feed.

This should address a many of the warnings in the build.  I will follow up with another change to address the rest.

This change brings in the latest build tools with updates to consume "latest" packages (* versions).

I've updated every project in the repo to use * versioning for dependencies.

The new packages can be used to resolve runtime assets as well (like clrcompression.dll) so I have removed the custom code in System.IO.Compression to copy this dll.  Instead the test project references the actual System.IO.Compression package and sets the correct runtime IDs to pull out the resources.  The System.IO.Compression.dll from the package is not used since the project reference takes precedence.

I had to workaround an issue in System.Xml.XmlSerializer with the current packages: System.Runtime.WindowsRuntime 4.0.0 has a depedendency on "windows" package which doesn't exist.  This was caused by our auto-generation task not filtering the winrt reference in the reference assembly's surface area.  I've fixed this in a separate change and we can remove the workaround once we have a new set of packages.  https://github.com/dotnet/corefx/issues/1761

I also had to add a dependency to System.Security.Cryptography.Hashing.Algorithms\tests due to an issue with DNX.  It's not honoring the dependency group with no targetFramework when another dependency group exists in the nuspec.  This is inconsistent with nuget v2 and should be fixed in DNX.  https://github.com/aspnet/dnx/issues/1881

[tfs-changeset: 1471885]


Commit migrated from https://github.com/dotnet/corefx/commit/08c0d8628ef621fbd44d7aaa85b3239616a6b108
2015-05-15 12:40:33 -07:00
Alexander Köplinger b46f878f13 Remove outdated comment about packages.config from csproj's
Since the move to project.json we no longer use packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/1d489b12d2f6b7b7128888d525dc2e49fe2f1782
2015-05-15 20:10:42 +02:00