diff options
| author | Steven Fackler <[email protected]> | 2016-11-06 11:57:50 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-11-06 11:57:50 -0800 |
| commit | a4e0581e4fabc2a038209176242213e4ed48125e (patch) | |
| tree | 1fc252ed4e0df9e284208ee4aa6ebbe94f996149 /openssl-sys/src | |
| parent | Add accessors for cert and private key (diff) | |
| download | rust-openssl-a4e0581e4fabc2a038209176242213e4ed48125e.tar.xz rust-openssl-a4e0581e4fabc2a038209176242213e4ed48125e.zip | |
Fix build on 1.0.1
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 2c39f2ff..13532477 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1576,6 +1576,9 @@ extern { pub fn SSL_get_verify_result(ssl: *const SSL) -> c_long; pub fn SSL_shutdown(ssl: *mut SSL) -> c_int; pub fn SSL_get_certificate(ssl: *const SSL) -> *mut X509; + #[cfg(ossl101)] + pub fn SSL_get_privatekey(ssl: *mut SSL) -> *mut EVP_PKEY; + #[cfg(not(ossl101))] pub fn SSL_get_privatekey(ssl: *const SSL) -> *mut EVP_PKEY; #[cfg(not(osslconf = "OPENSSL_NO_COMP"))] @@ -1608,7 +1611,9 @@ extern { pub fn SSL_CTX_use_PrivateKey(ctx: *mut SSL_CTX, key: *mut EVP_PKEY) -> c_int; pub fn SSL_CTX_check_private_key(ctx: *const SSL_CTX) -> c_int; + #[cfg(not(ossl101))] pub fn SSL_CTX_get0_certificate(ctx: *const SSL_CTX) -> *mut X509; + #[cfg(not(ossl101))] pub fn SSL_CTX_get0_privatekey(ctx: *const SSL_CTX) -> *mut EVP_PKEY; pub fn SSL_CTX_set_cipher_list(ssl: *mut SSL_CTX, s: *const c_char) -> c_int; |