diff options
| author | Steven Fackler <[email protected]> | 2017-01-04 22:34:50 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2017-01-04 23:04:26 -0800 |
| commit | c6ea4f3e2a8b6159d4772ee5274001cff7caff2f (patch) | |
| tree | 20205314f7c3ce878a76b41e794e818caaa5e5c2 | |
| parent | Provide master key access (diff) | |
| download | rust-openssl-c6ea4f3e2a8b6159d4772ee5274001cff7caff2f.tar.xz rust-openssl-c6ea4f3e2a8b6159d4772ee5274001cff7caff2f.zip | |
Fix time type
| -rw-r--r-- | openssl-sys/src/ossl10x.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openssl-sys/src/ossl10x.rs b/openssl-sys/src/ossl10x.rs index 4d37d2a1..037298c1 100644 --- a/openssl-sys/src/ossl10x.rs +++ b/openssl-sys/src/ossl10x.rs @@ -2,7 +2,9 @@ use std::sync::{Mutex, MutexGuard}; use std::sync::{Once, ONCE_INIT}; use std::mem; -use libc::{c_int, c_char, c_void, c_long, c_uchar, size_t, c_uint, c_ulong, time_t}; +use libc::{c_int, c_char, c_void, c_long, c_uchar, size_t, c_uint, c_ulong}; +#[cfg(not(ossl101))] +use libc::time_t; #[repr(C)] pub struct stack_st_ASN1_OBJECT { @@ -440,7 +442,7 @@ pub struct SSL_SESSION { verify_result: c_long, references: c_int, timeout: c_long, - time: time_t, + time: c_long, compress_meth: c_uint, cipher: *const c_void, cipher_id: c_ulong, |