diff options
| author | David Weinstein <[email protected]> | 2016-08-08 16:42:02 -0400 |
|---|---|---|
| committer | David Weinstein <[email protected]> | 2016-08-17 01:23:54 -0400 |
| commit | 32a4e2ba50786a3c5a0d6c5951236c16e2976955 (patch) | |
| tree | 4ad5d5e14cc17fed39e73d99f35ac03ff257aa38 /openssl/src/x509 | |
| parent | Progress on asn1 expiry (diff) | |
| download | rust-openssl-32a4e2ba50786a3c5a0d6c5951236c16e2976955.tar.xz rust-openssl-32a4e2ba50786a3c5a0d6c5951236c16e2976955.zip | |
Introduce `Asn1TimeRef`
Diffstat (limited to 'openssl/src/x509')
| -rw-r--r-- | openssl/src/x509/mod.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index 851dd881..dc649f18 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -10,7 +10,7 @@ use std::collections::HashMap; use std::marker::PhantomData; use HashTypeInternals; -use asn1::Asn1Time; +use asn1::{Asn1Time, Asn1TimeRef}; use bio::{MemBio, MemBioSlice}; use crypto::hash; use crypto::hash::Type as HashType; @@ -434,18 +434,18 @@ impl<'a> X509Ref<'a> { } /// Returns Issuer validity notAfter - pub fn not_after(&self) -> Asn1Time { + pub fn not_after(&self) -> Asn1TimeRef { unsafe { - let date = ffi_extras::X509_get_notAfter(self.handle()); - Asn1Time::from_raw(date) + let date = ::c_helpers::rust_0_8_X509_get_notAfter(self.0); + Asn1TimeRef::from_ptr(date) } } /// Returns Issuer validity notBefore - pub fn not_before(&self) -> Asn1Time { + pub fn not_before(&self) -> Asn1TimeRef { unsafe { - let date = ffi_extras::X509_get_notBefore(self.handle()); - Asn1Time::from_raw(date) + let date = ::c_helpers::rust_0_8_X509_get_notBefore(self.0); + Asn1TimeRef::from_ptr(date) } } |