diff options
| author | Steven Fackler <[email protected]> | 2016-08-10 20:51:06 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-08-10 20:51:06 -0700 |
| commit | c4e7743c57bde2d25b8a14521c48bba85fe72e68 (patch) | |
| tree | 71c853706a665984f88031a2403d6643c74c6dfe /openssl/src/x509 | |
| parent | Fix workspace declaration (diff) | |
| download | rust-openssl-c4e7743c57bde2d25b8a14521c48bba85fe72e68.tar.xz rust-openssl-c4e7743c57bde2d25b8a14521c48bba85fe72e68.zip | |
Asn1 and Bignum renames
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 3bdbaa67..31c67453 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -306,11 +306,11 @@ impl X509Generator { let not_before = try!(Asn1Time::days_from_now(0)); let not_after = try!(Asn1Time::days_from_now(self.days)); - try_ssl!(ffi::X509_set_notBefore(x509.handle(), not_before.handle() as *const _)); + try_ssl!(ffi::X509_set_notBefore(x509.handle(), not_before.as_ptr() as *const _)); // If prev line succeded - ownership should go to cert mem::forget(not_before); - try_ssl!(ffi::X509_set_notAfter(x509.handle(), not_after.handle() as *const _)); + try_ssl!(ffi::X509_set_notAfter(x509.handle(), not_after.as_ptr() as *const _)); // If prev line succeded - ownership should go to cert mem::forget(not_after); |