aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-10-30 15:14:29 -0700
committerSteven Fackler <[email protected]>2016-10-30 15:14:29 -0700
commitd1179f1ad28f16c90eba8d89a03b2821aabd9469 (patch)
treeb78975836135254e185d119c05c87ee8b56ac9e3 /openssl/src
parentAdd a mozilla modern profile (diff)
downloadrust-openssl-d1179f1ad28f16c90eba8d89a03b2821aabd9469.tar.xz
rust-openssl-d1179f1ad28f16c90eba8d89a03b2821aabd9469.zip
Update docs
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/ssl/connector.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/openssl/src/ssl/connector.rs b/openssl/src/ssl/connector.rs
index 701fdeaf..c283145e 100644
--- a/openssl/src/ssl/connector.rs
+++ b/openssl/src/ssl/connector.rs
@@ -99,10 +99,13 @@ impl ClientConnector {
pub struct ServerConnectorBuilder(SslContextBuilder);
impl ServerConnectorBuilder {
- /// Creates a new builder for server-side TLS connections.
+ /// Creates a new builder configured to connect to non-legacy clients. This should generally be
+ /// considered a reasonable default choice.
///
- /// The configuration is based off of the intermediate profile of Mozilla's server side
- /// TLS configuration recommendations.
+ /// This corresponds to the intermediate configuration of Mozilla's server side TLS
+ /// recommendations. See its [documentation][docs] for more details on specifics.
+ ///
+ /// [docs]: https://wiki.mozilla.org/Security/Server_Side_TLS
pub fn mozilla_intermediate<I>(method: SslMethod,
private_key: &PKeyRef,
certificate: &X509Ref,
@@ -131,6 +134,12 @@ impl ServerConnectorBuilder {
ServerConnectorBuilder::finish_setup(ctx, private_key, certificate, chain)
}
+ /// Creates a new builder configured to connect to modern clients.
+ ///
+ /// This corresponds to the modern configuration of Mozilla's server side TLS recommendations.
+ /// See its [documentation][docs] for more details on specifics.
+ ///
+ /// [docs]: https://wiki.mozilla.org/Security/Server_Side_TLS
pub fn mozilla_modern<I>(method: SslMethod,
private_key: &PKeyRef,
certificate: &X509Ref,