diff options
| author | Paul Florence <[email protected]> | 2017-11-10 10:05:52 -0500 |
|---|---|---|
| committer | Paul Florence <[email protected]> | 2017-11-10 10:05:52 -0500 |
| commit | 0bae121e1268565eb29e90e68b8c5e98ab1fe979 (patch) | |
| tree | ac7fc87f39f98b905fa8c388b498749f28b18413 /openssl/src/ocsp.rs | |
| parent | Merge pull request #757 from bvinc/master (diff) | |
| download | rust-openssl-0bae121e1268565eb29e90e68b8c5e98ab1fe979.tar.xz rust-openssl-0bae121e1268565eb29e90e68b8c5e98ab1fe979.zip | |
Added a macro that wraps foreign type, and impl Send and Sync for both,
the borrowed type and the owned one.
Replaced all invocation of `foreign_type` by `foreign_type_and_impl_send_sync`.
Diffstat (limited to 'openssl/src/ocsp.rs')
| -rw-r--r-- | openssl/src/ocsp.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openssl/src/ocsp.rs b/openssl/src/ocsp.rs index 1968bcf6..65436a4c 100644 --- a/openssl/src/ocsp.rs +++ b/openssl/src/ocsp.rs @@ -136,7 +136,7 @@ impl<'a> Status<'a> { } } -foreign_type! { +foreign_type_and_impl_send_sync! { type CType = ffi::OCSP_BASICRESP; fn drop = ffi::OCSP_BASICRESP_free; @@ -203,7 +203,7 @@ impl OcspBasicResponseRef { } } -foreign_type! { +foreign_type_and_impl_send_sync! { type CType = ffi::OCSP_CERTID; fn drop = ffi::OCSP_CERTID_free; @@ -228,7 +228,7 @@ impl OcspCertId { } } -foreign_type! { +foreign_type_and_impl_send_sync! { type CType = ffi::OCSP_RESPONSE; fn drop = ffi::OCSP_RESPONSE_free; @@ -273,7 +273,7 @@ impl OcspResponseRef { } } -foreign_type! { +foreign_type_and_impl_send_sync! { type CType = ffi::OCSP_REQUEST; fn drop = ffi::OCSP_REQUEST_free; @@ -305,7 +305,7 @@ impl OcspRequestRef { } } -foreign_type! { +foreign_type_and_impl_send_sync! { type CType = ffi::OCSP_ONEREQ; fn drop = ffi::OCSP_ONEREQ_free; |