From bc0809a17df948f3828757621bc34351f96cc206 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Mon, 30 Apr 2018 20:52:19 -0700 Subject: Flag off constants added in 1.0.2h Closes #868 --- openssl-sys/src/ossl10x.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'openssl-sys/src') diff --git a/openssl-sys/src/ossl10x.rs b/openssl-sys/src/ossl10x.rs index 9b79fb57..6a4d4346 100644 --- a/openssl-sys/src/ossl10x.rs +++ b/openssl-sys/src/ossl10x.rs @@ -1,13 +1,13 @@ -use std::sync::{Mutex, MutexGuard}; -use std::sync::{Once, ONCE_INIT}; +use std::io::{self, Write}; use std::mem; -use std::ptr; use std::process; -use std::io::{self, Write}; +use std::ptr; +use std::sync::{Mutex, MutexGuard}; +use std::sync::{Once, ONCE_INIT}; -use libc::{c_char, c_int, c_long, c_uchar, c_uint, c_ulong, c_void, size_t}; #[cfg(not(ossl101))] use libc::time_t; +use libc::{c_char, c_int, c_long, c_uchar, c_uint, c_ulong, c_void, size_t}; #[repr(C)] pub struct stack_st_ASN1_OBJECT { @@ -131,7 +131,7 @@ pub struct DSA { #[repr(C)] pub struct ECDSA_SIG { pub r: *mut BIGNUM, - pub s: *mut BIGNUM + pub s: *mut BIGNUM, } #[repr(C)] @@ -719,8 +719,11 @@ pub const CRYPTO_LOCK_X509: c_int = 3; pub const CRYPTO_LOCK_SSL_CTX: c_int = 12; pub const CRYPTO_LOCK_SSL_SESSION: c_int = 14; +#[cfg(ossl102h)] pub const X509_V_ERR_INVALID_CALL: c_int = 65; +#[cfg(ossl102h)] pub const X509_V_ERR_STORE_LOOKUP: c_int = 66; +#[cfg(ossl102h)] pub const X509_V_ERR_PROXY_SUBJECT_NAME_VIOLATION: c_int = 67; static mut MUTEXES: *mut Vec> = 0 as *mut Vec>; -- cgit v1.2.3