diff options
| author | Marko Lalic <[email protected]> | 2015-03-18 15:08:45 +0100 |
|---|---|---|
| committer | Marko Lalic <[email protected]> | 2015-03-23 08:14:47 +0100 |
| commit | f09cfdfdd5217929b97d0fd7ac55632373b76801 (patch) | |
| tree | 006e7ee36d81f12bc1bd468fa359db583ab219d1 /openssl-sys/src | |
| parent | openssl-sys: Add NPN functions and constants (diff) | |
| download | rust-openssl-f09cfdfdd5217929b97d0fd7ac55632373b76801.tar.xz rust-openssl-f09cfdfdd5217929b97d0fd7ac55632373b76801.zip | |
openssl-sys: Add TLS extension constants
Diffstat (limited to 'openssl-sys/src')
| -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 f9ef4b4f..59f11b65 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -134,6 +134,11 @@ pub const SSL_VERIFY_PEER: c_int = 1; pub const TLSEXT_NAMETYPE_host_name: c_long = 0; +pub const SSL_TLSEXT_ERR_OK: c_int = 0; +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; + #[cfg(feature = "npn")] pub const OPENSSL_NPN_UNSUPPORTED: c_int = 0; #[cfg(feature = "npn")] |