diff options
| author | David Weinstein <[email protected]> | 2016-08-16 23:59:24 -0400 |
|---|---|---|
| committer | David Weinstein <[email protected]> | 2016-08-17 01:23:54 -0400 |
| commit | 06f19cf285c9fc3b46bd8baca2825dcf1634a64a (patch) | |
| tree | 557adbded4ab093d55325cabbcc144483e75d574 /openssl/src | |
| parent | Fix docs (diff) | |
| download | rust-openssl-06f19cf285c9fc3b46bd8baca2825dcf1634a64a.tar.xz rust-openssl-06f19cf285c9fc3b46bd8baca2825dcf1634a64a.zip | |
Be explicit regarding Asn1TimeRef lifetimes
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/x509/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index 12a122b2..31a6cae8 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -436,7 +436,7 @@ impl<'a> X509Ref<'a> { /// Returns certificate Not After validity period. /// Requires the `x509_expiry` feature. #[cfg(feature = "x509_expiry")] - pub fn not_after(&self) -> Asn1TimeRef { + pub fn not_after<'b>(&'b self) -> Asn1TimeRef<'b> { unsafe { let date = ::c_helpers::rust_0_8_X509_get_notAfter(self.0); assert!(!date.is_null()); @@ -447,7 +447,7 @@ impl<'a> X509Ref<'a> { /// Returns certificate Not Before validity period. /// Requires the `x509_expiry` feature. #[cfg(feature = "x509_expiry")] - pub fn not_before(&self) -> Asn1TimeRef { + pub fn not_before<'b>(&'b self) -> Asn1TimeRef<'b> { unsafe { let date = ::c_helpers::rust_0_8_X509_get_notBefore(self.0); assert!(!date.is_null()); |