diff options
| author | Steven Fackler <[email protected]> | 2016-04-13 14:45:49 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-04-13 14:45:49 -0700 |
| commit | 9511a9bc1985d69116a546672657a89cc0397ce1 (patch) | |
| tree | 2a482eeb4e09c360685737f2e0cc79db4c35aeb7 /openssl-sys/src/lib.rs | |
| parent | Merge pull request #379 from rix0rrr/add-context-id (diff) | |
| parent | Resolves #378 - Module version with the version information (diff) | |
| download | rust-openssl-9511a9bc1985d69116a546672657a89cc0397ce1.tar.xz rust-openssl-9511a9bc1985d69116a546672657a89cc0397ce1.zip | |
Merge pull request #380 from Yoric/master
Resolves #378 - Module version with the version information
Diffstat (limited to 'openssl-sys/src/lib.rs')
| -rw-r--r-- | openssl-sys/src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 36a736b9..e9a99274 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -259,6 +259,12 @@ pub const SSL_TLSEXT_ERR_ALERT_WARNING: c_int = 1; pub const SSL_TLSEXT_ERR_ALERT_FATAL: c_int = 2; pub const SSL_TLSEXT_ERR_NOACK: c_int = 3; +pub const SSLEAY_VERSION : c_int = 0; +pub const SSLEAY_CFLAGS : c_int = 2; +pub const SSLEAY_BUILT_ON : c_int = 3; +pub const SSLEAY_PLATFORM : c_int = 4; +pub const SSLEAY_DIR : c_int = 5; + #[cfg(any(feature = "npn", feature = "alpn"))] pub const OPENSSL_NPN_UNSUPPORTED: c_int = 0; #[cfg(any(feature = "npn", feature = "alpn"))] @@ -769,6 +775,9 @@ extern "C" { pub fn d2i_RSA_PUBKEY(k: *const *mut RSA, buf: *const *const u8, len: c_uint) -> *mut RSA; pub fn i2d_RSAPrivateKey(k: *mut RSA, buf: *const *mut u8) -> c_int; pub fn d2i_RSAPrivateKey(k: *const *mut RSA, buf: *const *const u8, len: c_uint) -> *mut RSA; + + pub fn SSLeay() -> c_long; + pub fn SSLeay_version(key: c_int) -> *const c_char; } pub mod probe; |