diff options
| author | Steven Fackler <[email protected]> | 2016-10-29 14:19:09 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-10-29 14:19:09 -0700 |
| commit | 57d10ebbc3c04d5089b034b9d88f40c302783c96 (patch) | |
| tree | f41e3cbc6f32de2773aeaec0e7782d87ccfba7a4 /openssl/src/ssl/connector.rs | |
| parent | Implement client and server connectors (diff) | |
| download | rust-openssl-57d10ebbc3c04d5089b034b9d88f40c302783c96.tar.xz rust-openssl-57d10ebbc3c04d5089b034b9d88f40c302783c96.zip | |
Add PKeyRef
Diffstat (limited to 'openssl/src/ssl/connector.rs')
| -rw-r--r-- | openssl/src/ssl/connector.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/ssl/connector.rs b/openssl/src/ssl/connector.rs index aed01f8c..62f0a284 100644 --- a/openssl/src/ssl/connector.rs +++ b/openssl/src/ssl/connector.rs @@ -4,7 +4,7 @@ use dh::Dh; use error::ErrorStack; use ssl::{self, SslMethod, SslContextBuilder, SslContext, Ssl, SSL_VERIFY_PEER, SslStream, HandshakeError}; -use pkey::PKey; +use pkey::PKeyRef; use x509::X509Ref; // apps/dh2048.pem @@ -85,7 +85,7 @@ impl ClientConnector { pub struct ServerConnectorBuilder(SslContextBuilder); impl ServerConnectorBuilder { - pub fn tls<I, T>(private_key: &PKey, + pub fn tls<I, T>(private_key: &PKeyRef, certificate: &X509Ref, chain: I) -> Result<ServerConnectorBuilder, ErrorStack> @@ -96,7 +96,7 @@ impl ServerConnectorBuilder { } fn new<I, T>(method: SslMethod, - private_key: &PKey, + private_key: &PKeyRef, certificate: &X509Ref, chain: I) -> Result<ServerConnectorBuilder, ErrorStack> |