Skip to content

Tls client stream - #532

Merged
Emill merged 9 commits into
npgsql:masterfrom
Emill:tls-client-stream
Mar 21, 2015
Merged

Emill merged 9 commits into
npgsql:masterfrom
Emill:tls-client-stream

Conversation

@Emill

@Emill Emill commented Mar 13, 2015

Copy link
Copy Markdown
Contributor

No description provided.

@roji

roji commented Mar 16, 2015

Copy link
Copy Markdown
Member

Wow, here it is :)

I haven't looked at the actual TLS implementation because I don't think I have much to contribute there.

One question regarding the integration into Npgsql: I see the UseSslStream connection string parameter is still there, but is always false. How about letting users specify it as true to force usage of the .NET implementation, just in case? We could add a check that bombs if async notifications are used along with UseSslStream=true (because of the lack of DataAvailable)?

If you're really against letting users choose .NET SslStream, then the parameter should be removed altogether.

Aside from that it looks good.

Emill added 8 commits March 21, 2015 12:49
There are some problems with SslStream and Mono's stream:
* No DataAvailable property so that (a)sync notifications
can be properly supported.
* Both streams seem to have problems with renegotiations.
* Mono currently has a very old cipher suite with no
"Perfect forward secrecy".
* It's a bit annoying to have an external dependency.
@Emill
Emill force-pushed the tls-client-stream branch from 8be6751 to e7428f6 Compare March 21, 2015 11:50
@Emill

Emill commented Mar 21, 2015

Copy link
Copy Markdown
Contributor Author

I see no problem that the users can choose to use .NET SslStream, so I'll leave the parameter, but defaulted to TlsClientStream.
We could "bomb" if the user wants async notifications and use .NET SslStream, but that can be another pull request.

Emill added a commit that referenced this pull request Mar 21, 2015
@Emill
Emill merged commit 6f4baf3 into npgsql:master Mar 21, 2015
@roji roji added this to the 3.0 milestone Mar 23, 2015
@roji roji added the feature label Mar 23, 2015
@roji roji mentioned this pull request Mar 23, 2015
@roji roji modified the milestones: 3.0, 3.0-beta1 Mar 30, 2015
@roji roji modified the milestones: 3.0-beta1, 3.0 Aug 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants