dotnet/Documentation/compatibility/WCF-PipeConnection.GetHashA...

37 lines
1.0 KiB
Markdown
Raw Normal View History

## WCF PipeConnection.GetHashAlgorithm now uses SHA256
### Scope
Minor
### Version Introduced
4.7.1
### Source Analyzer Status
NotPlanned
### Change Description
2017-10-04 03:20:10 +08:00
Starting with the .NET Framework 4.7.1, Windows Communication Foundation uses a SHA256 hash to generate random names for named pipes. In the .NET Framework 4.7 and earlier versions, it used a SHA1 hash.
- [ ] Quirked
- [ ] Build-time break
2017-10-24 01:08:47 +08:00
### Recommended Action
2017-10-04 03:20:10 +08:00
If you run into compatibility issue with this change on the .NET Framework 4.7.1 or later, you can opt-out it by adding the following line to the `<runtime>` section of your app.config file:
2017-10-04 03:20:10 +08:00
```xml
<configuration>
<runtime>
<AppContextSwitchOverrides value="Switch.System.ServiceModel.UseSha1InPipeConnectionGetHashAlgorithm=true" />
2017-10-24 01:08:47 +08:00
</runtime>
2017-10-04 03:20:10 +08:00
</configuration>
```
2017-10-24 01:08:47 +08:00
2017-10-24 01:46:29 +08:00
### Affected APIs
* Not detectable via API analysis
2017-10-04 03:20:10 +08:00
### Category
Windows Communication Foundation (WCF)
2017-10-04 03:20:10 +08:00
<!--
### Original Bug
[395685] (https://devdiv.visualstudio.com/web/wi.aspx?pcguid=011b8bdf-6d56-4f87-be0d-0092136884d9&id=395685)
2017-10-04 03:20:10 +08:00
-->