diff options
| author | Steven Fackler <[email protected]> | 2018-08-08 12:44:16 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2018-08-08 13:19:55 -0700 |
| commit | 1396143c661a9f9775328d60bc38b6fdec2a4c8a (patch) | |
| tree | 176d7cd23ede4490083db0dcfa64b10c5c4b1299 /openssl-sys | |
| parent | Merge pull request #972 from sfackler/err-unspecified-cfg (diff) | |
| download | rust-openssl-1396143c661a9f9775328d60bc38b6fdec2a4c8a.tar.xz rust-openssl-1396143c661a9f9775328d60bc38b6fdec2a4c8a.zip | |
Add get_shutdown and set_shutdown
Diffstat (limited to 'openssl-sys')
| -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 48d2aa9c..8002ab21 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1319,6 +1319,9 @@ pub const SSL_SESS_CACHE_NO_INTERNAL_STORE: c_long = 0x200; pub const SSL_SESS_CACHE_NO_INTERNAL: c_long = SSL_SESS_CACHE_NO_INTERNAL_LOOKUP | SSL_SESS_CACHE_NO_INTERNAL_STORE; +pub const SSL_SENT_SHUTDOWN: c_int = 1; +pub const SSL_RECEIVED_SHUTDOWN: c_int = 2; + pub const SSL3_VERSION: c_int = 0x300; pub const TLS1_VERSION: c_int = 0x301; pub const TLS1_1_VERSION: c_int = 0x302; @@ -2476,6 +2479,8 @@ extern "C" { pub fn SSL_get0_param(ssl: *mut SSL) -> *mut X509_VERIFY_PARAM; pub fn SSL_get_verify_result(ssl: *const SSL) -> c_long; pub fn SSL_shutdown(ssl: *mut SSL) -> c_int; + pub fn SSL_get_shutdown(ssl: *const SSL) -> c_int; + pub fn SSL_set_shutdown(ss: *mut SSL, mode: c_int); pub fn SSL_get_certificate(ssl: *const SSL) -> *mut X509; #[cfg(not(ossl102))] pub fn SSL_get_privatekey(ssl: *mut SSL) -> *mut EVP_PKEY; |