runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Interop.OpenSsl.cs should not depend on SslProtocols definition

Open vijaykota opened this issue 11 years ago • 3 comments

At https://github.com/dotnet/corefx/blob/master/src/Common/src/Interop/Unix/libssl/Interop.OpenSsl.cs#L222 the enum SslProtocols is used which is specifc to System.Net.Primitives. As a result, other libraries like System.Net.HttpClient which consume functionality from Interop.OpenSsl.cs are forced to add a reference to System.Net.Primtives (and transitively other libs the latter depends on)

vijaykota avatar Oct 26 '15 09:10 vijaykota

Having libraries like System.Net.Http depend on System.Net.Primitives is fine. System.Net.Primitives is considered the "base" contract.

So, I don't understand this issue really.

cc: @stephentoub @CIPop @pgavlin

davidsh avatar Oct 26 '15 13:10 davidsh

But what is the advantage of introducing a dependency? System.Net.HttpClient was just an example. If defining a new type called PalSslProtocols is not an option, the shimmed method (unmanaged code) can take 5 bools as params (ssl2, ssl3.. etc.)

vijaykota avatar Oct 27 '15 05:10 vijaykota

System.Net.Http already has a dependency on System.Net.Primitives. https://github.com/dotnet/corefx/blob/master/src/System.Net.Http/src/project.json#L9 This isn't an issue. Closing.

eerhardt avatar Oct 27 '15 14:10 eerhardt