diff options
| author | Steven Fackler <[email protected]> | 2016-10-21 17:13:30 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-10-21 17:13:30 -0700 |
| commit | b7017a7eecf57aa6f1ab18ea1da771bafcab2ea9 (patch) | |
| tree | bb601aa88f027eeeab082d121569cec96033f750 /openssl/src/x509 | |
| parent | Convert X509Ref (diff) | |
| download | rust-openssl-b7017a7eecf57aa6f1ab18ea1da771bafcab2ea9.tar.xz rust-openssl-b7017a7eecf57aa6f1ab18ea1da771bafcab2ea9.zip | |
Update Asn1TimeRef
Diffstat (limited to 'openssl/src/x509')
| -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 99710fc4..9c91bfc1 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -446,7 +446,7 @@ impl X509Ref { } /// Returns certificate Not After validity period. - pub fn not_after<'a>(&'a self) -> Asn1TimeRef<'a> { + pub fn not_after<'a>(&'a self) -> &'a Asn1TimeRef { unsafe { let date = compat::X509_get_notAfter(self.as_ptr()); assert!(!date.is_null()); @@ -455,7 +455,7 @@ impl X509Ref { } /// Returns certificate Not Before validity period. - pub fn not_before<'a>(&'a self) -> Asn1TimeRef<'a> { + pub fn not_before<'a>(&'a self) -> &'a Asn1TimeRef { unsafe { let date = compat::X509_get_notBefore(self.as_ptr()); assert!(!date.is_null()); |