forked from rustls/rustls-ffi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade rustls to 0.20.0 (rustls#88)
This results in breaking API changes, because rustls 0.20 involved a lot of API changes. In particular: - rustls_\*_config_builder is now a multi-step process, moving through the ConfigBuilder typestates introduced in rustls 0.20.0. - reading plaintext can result in RUSTLS_RESULT_PLAINTEXT_EMPTY (read more TLS bytes from the wire to get more plaintext) or RUSTLS_RESULT_UNEXPECTED_EOF (peer closed connection uncleanly). A clean connection shutdown is signaled by returning RUSTLS_RESULT_OK with n == 0 from rustls_connection_read() - The RUSTLS_CERT_\* errors have been simplified and consolidated. - rustls_connection_get_peer_certificate -> rustls_connection_peer_certificate - rustls_connection_get_negotiated_ciphersuite -> rustls_connection_negotiated_ciphersuite - rustls_server_config_builder_set_protocols -> rustls_server_config_builder_set_alpn_protocols - rustls_server_config_builder_set_ciphersuites -> removed
- Loading branch information
Showing
14 changed files
with
847 additions
and
865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.