diff options
| author | David Weinstein <[email protected]> | 2016-08-16 22:39:30 -0400 |
|---|---|---|
| committer | David Weinstein <[email protected]> | 2016-08-17 01:23:54 -0400 |
| commit | 96b1ef829cc51a901dd7b7225b9307b8628a4898 (patch) | |
| tree | 994620614ab4aedce01827ea030a1e8180c9ced6 /openssl/src/asn1 | |
| parent | Introduce `Asn1TimeRef` (diff) | |
| download | rust-openssl-96b1ef829cc51a901dd7b7225b9307b8628a4898.tar.xz rust-openssl-96b1ef829cc51a901dd7b7225b9307b8628a4898.zip | |
Add `"x509_expiry"` feature flag
- fix return of `ASN1_TIME_print`
- assert on null `date`
Diffstat (limited to 'openssl/src/asn1')
| -rw-r--r-- | openssl/src/asn1/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/src/asn1/mod.rs b/openssl/src/asn1/mod.rs index 4fb4c7cf..1eab9f04 100644 --- a/openssl/src/asn1/mod.rs +++ b/openssl/src/asn1/mod.rs @@ -58,7 +58,7 @@ impl<'a> fmt::Display for Asn1TimeRef<'a> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let mem_bio = try!(MemBio::new()); let as_str = unsafe { - ffi::ASN1_TIME_print(mem_bio.as_ptr(), self.0); + try_ssl!(ffi::ASN1_TIME_print(mem_bio.as_ptr(), self.0)); String::from_utf8_unchecked(mem_bio.get_buf().to_owned()) }; write!(f, "{}", as_str) |