diff options
| author | David Rajchenbach-Teller <[email protected]> | 2016-04-13 21:56:03 +0200 |
|---|---|---|
| committer | David Rajchenbach-Teller <[email protected]> | 2016-04-13 23:29:25 +0200 |
| commit | 0c48f9a0e018c6655cfd70872f87bac000f3dfa3 (patch) | |
| tree | 9e057824a8571e939de66e6ccf735456ec87c722 /openssl-sys/src | |
| parent | Merge pull request #376 from kcking/kcking-copy-pkey-using-der (diff) | |
| download | rust-openssl-0c48f9a0e018c6655cfd70872f87bac000f3dfa3.tar.xz rust-openssl-0c48f9a0e018c6655cfd70872f87bac000f3dfa3.zip | |
Resolves #378 - Module version with the version information
Diffstat (limited to 'openssl-sys/src')
| -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 85f434ae..e00b07a7 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"))] @@ -768,6 +774,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; |