sfackler / rust-native-tls

Apache License 2.0
470 stars 195 forks source link

Fix off-by-one error in schannel's max_protocol_version #204

Closed blyxxyz closed 3 years ago

blyxxyz commented 3 years ago

max_protocol_version set a maximum of one version earlier than it was supposed to.

There are two tests that exercise this. I believe they didn't catch it because:

sfackler commented 3 years ago

The ubuntu failure seems unrelated to this change. I wonder if they disabled TLS 1.1 in their build? Might be easiest to just enable the vendored feature in that build setup.

blyxxyz commented 3 years ago

Sounds good. The feature doesn't affect the other platforms, so I've just enabled it unconditionally.

sfackler commented 3 years ago

Thanks!