diff options
| author | Benjamin Fry <[email protected]> | 2017-02-14 23:58:05 -0800 |
|---|---|---|
| committer | Benjamin Fry <[email protected]> | 2017-02-16 19:49:14 -0800 |
| commit | ce2cfc56a6e4c542dfeea143ed9932aca1bd1027 (patch) | |
| tree | cd6ae76cf6e8144fbee4778b71afa9af84c7a09e /openssl-sys/src | |
| parent | fix cfg options for v102 and v110 (diff) | |
| download | rust-openssl-ce2cfc56a6e4c542dfeea143ed9932aca1bd1027.tar.xz rust-openssl-ce2cfc56a6e4c542dfeea143ed9932aca1bd1027.zip | |
fix versions for sys as well
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 6c66447e..0073e69a 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1143,6 +1143,7 @@ pub const SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE: c_int = 65; pub const SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP: c_int = 70; pub const SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP: c_int = 71; pub const SSL_CTRL_GET_EXTRA_CHAIN_CERTS: c_int = 82; +#[cfg(not(any(ossl101, libressl)))] pub const SSL_CTRL_SET_VERIFY_CERT_STORE: c_int = 106; pub const SSL_MODE_ENABLE_PARTIAL_WRITE: c_long = 0x1; @@ -1350,6 +1351,7 @@ pub unsafe fn SSL_CTX_add_extra_chain_cert(ctx: *mut SSL_CTX, x509: *mut X509) - SSL_CTX_ctrl(ctx, SSL_CTRL_EXTRA_CHAIN_CERT, 0, x509 as *mut c_void) } +#[cfg(not(any(ossl101, libressl)))] pub unsafe fn SSL_CTX_set0_verify_cert_store(ctx: *mut SSL_CTX, st: *mut X509_STORE) -> c_long { SSL_CTX_ctrl(ctx, SSL_CTRL_SET_VERIFY_CERT_STORE, 0, st as *mut c_void) } |