diff options
author | Steven Fackler <sfackler@palantir.com> | 2019-02-22 10:14:15 -0700 |
---|---|---|
committer | Steven Fackler <sfackler@palantir.com> | 2019-02-22 10:14:15 -0700 |
commit | 7eee39f1ec02f63c63110f59b82cbe0c592162a4 (patch) | |
tree | 58523261cca03e603d0f836982fa689af8e0898a /openssl/src/ocsp.rs | |
parent | 7f4ceb51a488cb497437c7df965291182f65c612 (diff) | |
download | rust-openssl-7eee39f1ec02f63c63110f59b82cbe0c592162a4.zip |
Rustfmt
Diffstat (limited to 'openssl/src/ocsp.rs')
-rw-r--r-- | openssl/src/ocsp.rs | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/openssl/src/ocsp.rs b/openssl/src/ocsp.rs index a1e3d3b2..310c3dbe 100644 --- a/openssl/src/ocsp.rs +++ b/openssl/src/ocsp.rs @@ -1,16 +1,16 @@ use ffi; use foreign_types::ForeignTypeRef; use libc::{c_int, c_long, c_ulong}; -use std::ptr; use std::mem; +use std::ptr; -use {cvt, cvt_p}; use asn1::Asn1GeneralizedTimeRef; use error::ErrorStack; use hash::MessageDigest; use stack::StackRef; use x509::store::X509StoreRef; -use x509::{X509, X509Ref}; +use x509::{X509Ref, X509}; +use {cvt, cvt_p}; bitflags! { pub struct OcspFlag: c_ulong { @@ -130,7 +130,8 @@ impl<'a> OcspStatus<'a> { self.next_update.as_ptr(), nsec as c_long, maxsec.map(|n| n as c_long).unwrap_or(-1), - )).map(|_| ()) + )) + .map(|_| ()) } } } @@ -160,7 +161,8 @@ impl OcspBasicResponseRef { certs.as_ptr(), store.as_ptr(), flags.bits(), - )).map(|_| ()) + )) + .map(|_| ()) } } @@ -222,7 +224,8 @@ impl OcspCertId { digest.as_ptr(), subject.as_ptr(), issuer.as_ptr(), - )).map(OcspCertId) + )) + .map(OcspCertId) } } } @@ -249,7 +252,8 @@ impl OcspResponse { cvt_p(ffi::OCSP_response_create( status.as_raw(), body.map(|r| r.as_ptr()).unwrap_or(ptr::null_mut()), - )).map(OcspResponse) + )) + .map(OcspResponse) } } |