diff options
| author | Steven Fackler <[email protected]> | 2016-11-13 12:19:31 +0000 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-11-13 12:19:31 +0000 |
| commit | 85c1474ce68932d4fad0e53144cf43428b5e12c7 (patch) | |
| tree | e56c09d2d5b2647a5ad044e0f1d8d7344969345c | |
| parent | Use ffdhe2048 in mozilla_intermediate (diff) | |
| download | rust-openssl-85c1474ce68932d4fad0e53144cf43428b5e12c7.tar.xz rust-openssl-85c1474ce68932d4fad0e53144cf43428b5e12c7.zip | |
No need to use a raw string anymore
| -rw-r--r-- | openssl/src/ssl/connector.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/ssl/connector.rs b/openssl/src/ssl/connector.rs index 213c90b7..07c44ce7 100644 --- a/openssl/src/ssl/connector.rs +++ b/openssl/src/ssl/connector.rs @@ -8,7 +8,7 @@ use pkey::PKeyRef; use x509::X509Ref; // ffdhe2048 from https://wiki.mozilla.org/Security/Server_Side_TLS#ffdhe2048 -const DHPARAM_PEM: &'static str = r#" +const DHPARAM_PEM: &'static str = " -----BEGIN DH PARAMETERS----- MIIBCAKCAQEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz +8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a @@ -17,7 +17,7 @@ YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi 7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD ssbzSibBsu/6iGtCOGEoXJf//////////wIBAg== -----END DH PARAMETERS----- -"#; +"; fn ctx(method: SslMethod) -> Result<SslContextBuilder, ErrorStack> { let mut ctx = try!(SslContextBuilder::new(method)); |