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

Various networking fixes #400

Merged
merged 14 commits into from May 6, 2016

Conversation

Projects
None yet
2 participants
@brson
Copy link
Contributor

brson commented May 6, 2016

  • Use the platform-native TLS stacks with native-tls, removing the OpenSSL dep on Windows.
  • Do TLS hostname verification, via native-tls
  • Remove the direct OpenSSL dep by switching to rust-crypto for sha256
  • Upgrade OpenSSL to the latest version on Unix

Fixes #243, fixes #204, #344

r? @alexcrichton cc @sfackler @seanmonstar

@brson

This comment has been minimized.

Copy link
Contributor Author

brson commented May 6, 2016

It appears that rust-crypto has a native component that's failing the build. I'll find a sha256 implementation that doesn't.

@brson brson force-pushed the brson:hyperstuff branch from 7742513 to 5e3ee9a May 6, 2016

@@ -1,13 +1,15 @@
#![feature(core_intrinsics)] // For type_name().
#![feature(fundamental)]
#![feature(step_by)]

This comment has been minimized.

@alexcrichton

alexcrichton May 6, 2016

Member

:( I thought we wanted to go the other way

This comment has been minimized.

@brson

brson May 6, 2016

Author Contributor

Yeah, it just happened to be used by the sha code and didn't seem worth messing with, but it should be easy to remove. I'll look at it.

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented May 6, 2016

Nice! r+ from me basically, but looks like the openssl crate is still getting compiled on MinGW which is causing a build failure. Maybe something's bringing it in by accident?

brson added some commits May 6, 2016

Override NetworkStream::close
Passing this call through seems like the safe thing to do.

@brson brson merged commit 2b7c96f into rust-lang:master May 6, 2016

1 of 2 checks passed

continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.