Comments (6)
Thanks for the kind suggestion, but no - for political reasons: Github Terms of Service arguably contains a special licensing clause which is not problematic for liberally licensed code like this project but effectively weakens stronger copyleft licensed code. I therefore never push code to Github.
I already shared the code change as a patch. Please tell me if helpful to you that I provide it as a git branch that you can clone and merge. I fully understand if you have no interest in playing along with my policital game, though.
from tls.
What test command are you running?
from tls.
Sorry, I forgot to copy that and no longer have that build log lying around - but it was likely cargo test --all-targets --no-default-features
.
I am packaging this crate for Debian, and run tests in various feature combinations.
from tls.
This one-line fix solved the issue for me: https://salsa.debian.org/debian/rust-tokio-rustls/-/blob/debian/latest/debian/patches/1001_tls12.patch
--- a/tokio-rustls/tests/badssl.rs
+++ b/tokio-rustls/tests/badssl.rs
@@ -32,6 +32,7 @@
}
#[tokio::test]
+#[cfg(feature = "tls12")]
async fn test_tls12() -> io::Result<()> {
let mut root_store = rustls::RootCertStore::empty();
root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {
from tls.
Good catch, would you like to open a PR?
from tls.
Anyone else feel like fixing this?
I notice that a new release went out, without this getting fixed :-(
from tls.
Related Issues (20)
- rustls: unable to do session resumption with api.devicecheck.apple.com HOT 3
- test fails with only feature http1 enabled
- tcp Recv-Q accumulation appears on the tls server HOT 2
- HTTP upgrade on the same port HOT 2
- use features to make tokio-rustls compatible with `futures` interface HOT 4
- TLS handshake stuck in weak network environment HOT 12
- Proxy protocol support HOT 4
- `try_read` for `TlsStream` HOT 4
- Release new tokio-native-tls version to push "vendored" feature out? HOT 2
- tokio-rustls: how to use buffering with TlsStream? HOT 4
- Moving tokio-rustls into the rustls org? HOT 12
- Several RUSTSEC vulnerabilities in openssl HOT 1
- Getting UnexpectedEof on read_to_end while the sync version works fine HOT 3
- Optional TLS streams? HOT 2
- TlsAcceptor not responding HOT 1
- the method `get_ref` exists for reference `&TlsStream<AllowStd<S>>`, but its trait bounds were not satisfied HOT 1
- Cannot load the example identity: "Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()" HOT 1
- Latest published version of tokio-native-tls contains bad dependency
- Strange situation.It can be interfered with by other ws or tcp requests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tls.