Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(net): Split Ssl into SslClient and SslServer #757

Merged
merged 1 commit into from
Apr 6, 2016

Conversation

sfackler
Copy link
Contributor

@sfackler sfackler commented Apr 6, 2016

SSL libraries other than OpenSSL don't necessarily have the ability to
easily create server and client side connections at the same time. This
is backwards compatible due to blanket impls.

Closes #756

SSL libraries other than OpenSSL don't necessarily have the ability to
easily create server and client side connections at the same time. This
is backwards compatible due to blanket impls.

Closes hyperium#756
@coveralls
Copy link

Coverage Status

Coverage remained the same at 90.521% when pulling 2c86e80 on sfackler:ssl-split into bc3878d on hyperium:master.

@@ -493,7 +527,7 @@ impl<S: NetworkStream> NetworkStream for HttpsStream<S> {

/// A Http Listener over SSL.
#[derive(Clone)]
pub struct HttpsListener<S: Ssl> {
pub struct HttpsListener<S: SslServer> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this break constructing HttpsListener for users who don't have the SslServer imported?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe so. You don't need to have the trait imported for a type to implement it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that sounds right on second thought

@seanmonstar seanmonstar merged commit 80f0123 into hyperium:master Apr 6, 2016
@sfackler sfackler deleted the ssl-split branch April 12, 2016 23:16
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.

4 participants