aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src/ossl110.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-10-14 18:04:31 -0700
committerSteven Fackler <[email protected]>2016-10-14 18:56:15 -0700
commitd976b8f59558f57561bd37b037955b47a328902f (patch)
tree7aa7dd167c34fe0c3356e3231c358c4facdf392a /openssl-sys/src/ossl110.rs
parentSupport hostname verification (diff)
downloadrust-openssl-d976b8f59558f57561bd37b037955b47a328902f.tar.xz
rust-openssl-d976b8f59558f57561bd37b037955b47a328902f.zip
Enable hostname verification on 1.0.2
Diffstat (limited to 'openssl-sys/src/ossl110.rs')
-rw-r--r--openssl-sys/src/ossl110.rs12
1 files changed, 1 insertions, 11 deletions
diff --git a/openssl-sys/src/ossl110.rs b/openssl-sys/src/ossl110.rs
index 20cd0940..1a7c9e00 100644
--- a/openssl-sys/src/ossl110.rs
+++ b/openssl-sys/src/ossl110.rs
@@ -1,4 +1,4 @@
-use libc::{c_int, c_void, c_char, c_uchar, c_ulong, c_long, c_uint, size_t};
+use libc::{c_int, c_void, c_char, c_uchar, c_ulong, c_long, c_uint};
pub enum BIGNUM {}
pub enum BIO {}
@@ -44,11 +44,6 @@ pub const OPENSSL_DIR: c_int = 4;
pub const CRYPTO_EX_INDEX_SSL: c_int = 0;
pub const CRYPTO_EX_INDEX_SSL_CTX: c_int = 1;
-pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: c_uint = 0x1;
-pub const X509_CHECK_FLAG_NO_WILDCARDS: c_uint = 0x2;
-pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: c_uint = 0x4;
-pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: c_uint = 0x8;
-pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: c_uint = 0x10;
pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: c_uint = 0x20;
pub fn init() {}
@@ -106,13 +101,8 @@ extern {
pub fn SSL_CTX_get_options(ctx: *const ::SSL_CTX) -> c_ulong;
pub fn SSL_CTX_set_options(ctx: *mut ::SSL_CTX, op: c_ulong) -> c_ulong;
pub fn SSL_CTX_clear_options(ctx: *mut ::SSL_CTX, op: c_ulong) -> c_ulong;
- pub fn SSL_get0_param(ssl: *mut ::SSL) -> *mut X509_VERIFY_PARAM;
pub fn X509_getm_notAfter(x: *const ::X509) -> *mut ::ASN1_TIME;
pub fn X509_getm_notBefore(x: *const ::X509) -> *mut ::ASN1_TIME;
- pub fn X509_VERIFY_PARAM_set_hostflags(param: *mut X509_VERIFY_PARAM, flags: c_uint);
- pub fn X509_VERIFY_PARAM_set1_host(param: *mut X509_VERIFY_PARAM,
- name: *const c_char,
- namelen: size_t) -> c_int;
pub fn DH_set0_pqg(dh: *mut ::DH,
p: *mut ::BIGNUM,
q: *mut ::BIGNUM,