diff options
| author | Erik Johnston <[email protected]> | 2016-02-17 22:04:49 +0000 |
|---|---|---|
| committer | Erik Johnston <[email protected]> | 2016-02-17 22:38:32 +0000 |
| commit | 1e9667ea89cf1f52c65b4b70d1ef0dfd2770332e (patch) | |
| tree | e55a2c2913e20249d22034b1d4611a54ec59ebb5 /openssl-sys | |
| parent | Merge branch 'release' (diff) | |
| download | rust-openssl-1e9667ea89cf1f52c65b4b70d1ef0dfd2770332e.tar.xz rust-openssl-1e9667ea89cf1f52c65b4b70d1ef0dfd2770332e.zip | |
Add support for SSL_CIPHER
Diffstat (limited to 'openssl-sys')
| -rw-r--r-- | openssl-sys/src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index eb2717f3..5b57606f 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -24,6 +24,7 @@ pub type EVP_CIPHER_CTX = c_void; pub type EVP_MD = c_void; pub type EVP_PKEY_CTX = c_void; pub type SSL = c_void; +pub type SSL_CIPHER = c_void; pub type SSL_CTX = c_void; pub type SSL_METHOD = c_void; pub type X509 = c_void; @@ -649,6 +650,15 @@ extern "C" { pub fn SSL_COMP_get_name(comp: *const COMP_METHOD) -> *const c_char; + pub fn SSL_get_current_cipher(ssl: *const SSL) -> *const SSL_CIPHER; + + pub fn SSL_CIPHER_get_name(cipher: *const SSL_CIPHER) -> *const c_char; + pub fn SSL_CIPHER_get_bits(cipher: *const SSL_CIPHER, alg_bits: *const c_int) -> c_int; + pub fn SSL_CIPHER_get_version(cipher: *const SSL_CIPHER) -> *const c_char; + pub fn SSL_CIPHER_description(cipher: *const SSL_CIPHER, buf: *mut c_char, size: c_int) -> *const c_char; + pub fn SSL_CIPHER_get_cipher_nid(cipher: *const SSL_CIPHER) -> c_int; + pub fn SSL_CIPHER_get_digest_nid(cipher: *const SSL_CIPHER) -> c_int; + pub fn SSL_CTX_new(method: *const SSL_METHOD) -> *mut SSL_CTX; pub fn SSL_CTX_free(ctx: *mut SSL_CTX); pub fn SSL_CTX_set_verify(ctx: *mut SSL_CTX, mode: c_int, |