Skip to content

Commit 2e7a8b4

Browse files
authored
Implement more SSL methods (RustPython#6210)
* openssl-sys version * selected_alpn_protocol * get_ciphers * get_channel_binding * Add Tls1_1 and Tls1_2 * consts * fix ssl truncate bug * verify_flags * shared ciphers * verify_client_post_handshake * shutdown * get_verified_chain * fix lints * fix _wrap_socket * Fix convert_openssl_error * clean up ssl * X509_check_ca * set default verify flag * Fix version * fix import * consts * fix httplib
1 parent c6c931a commit 2e7a8b4

File tree

3 files changed

+472
-61
lines changed

3 files changed

+472
-61
lines changed

Lib/test/test_httplib.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,8 +1780,6 @@ def test_networked_bad_cert(self):
17801780
h.request('GET', '/')
17811781
self.assertEqual(exc_info.exception.reason, 'CERTIFICATE_VERIFY_FAILED')
17821782

1783-
# TODO: RUSTPYTHON
1784-
@unittest.expectedFailure
17851783
@unittest.skipIf(sys.platform == 'darwin', 'Occasionally success on macOS')
17861784
def test_local_unknown_cert(self):
17871785
# The custom cert isn't known to the default trust bundle

stdlib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ gethostname = "1.0.2"
107107
socket2 = { version = "0.6.0", features = ["all"] }
108108
dns-lookup = "3.0"
109109
openssl = { version = "0.10.72", optional = true }
110-
openssl-sys = { version = "0.9.80", optional = true }
110+
openssl-sys = { version = "0.9.110", optional = true }
111111
openssl-probe = { version = "0.1.5", optional = true }
112112
foreign-types-shared = { version = "0.1.1", optional = true }
113113

0 commit comments

Comments
 (0)