Merge pull request #794 from sfackler/x509-send-sync
Impl Send + Sync for x509 stuff
This commit is contained in:
commit
4c47aca508
|
|
@ -95,7 +95,7 @@ openssl_110: &OPENSSL_110
|
||||||
VERSION: 1.1.0g
|
VERSION: 1.1.0g
|
||||||
openssl_102: &OPENSSL_102
|
openssl_102: &OPENSSL_102
|
||||||
LIBRARY: openssl
|
LIBRARY: openssl
|
||||||
VERSION: 1.0.2m
|
VERSION: 1.0.2n
|
||||||
openssl_101: &OPENSSL_101
|
openssl_101: &OPENSSL_101
|
||||||
LIBRARY: openssl
|
LIBRARY: openssl
|
||||||
VERSION: 1.0.1u
|
VERSION: 1.0.1u
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@ environment:
|
||||||
- TARGET: x86_64-pc-windows-gnu
|
- TARGET: x86_64-pc-windows-gnu
|
||||||
BITS: 64
|
BITS: 64
|
||||||
MSYS2: 1
|
MSYS2: 1
|
||||||
OPENSSL_VERSION: 1_0_2m
|
OPENSSL_VERSION: 1_0_2n
|
||||||
- TARGET: i686-pc-windows-msvc
|
- TARGET: i686-pc-windows-msvc
|
||||||
BITS: 32
|
BITS: 32
|
||||||
OPENSSL_VERSION: 1_0_2m
|
OPENSSL_VERSION: 1_0_2n
|
||||||
OPENSSL_DIR: C:\OpenSSL
|
OPENSSL_DIR: C:\OpenSSL
|
||||||
- TARGET: x86_64-pc-windows-msvc
|
- TARGET: x86_64-pc-windows-msvc
|
||||||
VCPKG_DEFAULT_TRIPLET: x64-windows
|
VCPKG_DEFAULT_TRIPLET: x64-windows
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ pub const X509_FILETYPE_PEM: X509FileType = X509FileType(ffi::X509_FILETYPE_PEM)
|
||||||
pub const X509_FILETYPE_ASN1: X509FileType = X509FileType(ffi::X509_FILETYPE_ASN1);
|
pub const X509_FILETYPE_ASN1: X509FileType = X509FileType(ffi::X509_FILETYPE_ASN1);
|
||||||
pub const X509_FILETYPE_DEFAULT: X509FileType = X509FileType(ffi::X509_FILETYPE_DEFAULT);
|
pub const X509_FILETYPE_DEFAULT: X509FileType = X509FileType(ffi::X509_FILETYPE_DEFAULT);
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type_and_impl_send_sync! {
|
||||||
type CType = ffi::X509_STORE_CTX;
|
type CType = ffi::X509_STORE_CTX;
|
||||||
fn drop = ffi::X509_STORE_CTX_free;
|
fn drop = ffi::X509_STORE_CTX_free;
|
||||||
|
|
||||||
|
|
@ -447,7 +447,7 @@ impl X509Builder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type_and_impl_send_sync! {
|
||||||
type CType = ffi::X509;
|
type CType = ffi::X509;
|
||||||
fn drop = ffi::X509_free;
|
fn drop = ffi::X509_free;
|
||||||
|
|
||||||
|
|
@ -638,7 +638,7 @@ impl<'a> X509v3Context<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type_and_impl_send_sync! {
|
||||||
type CType = ffi::X509_EXTENSION;
|
type CType = ffi::X509_EXTENSION;
|
||||||
fn drop = ffi::X509_EXTENSION_free;
|
fn drop = ffi::X509_EXTENSION_free;
|
||||||
|
|
||||||
|
|
@ -749,7 +749,7 @@ impl X509NameBuilder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type_and_impl_send_sync! {
|
||||||
type CType = ffi::X509_NAME;
|
type CType = ffi::X509_NAME;
|
||||||
fn drop = ffi::X509_NAME_free;
|
fn drop = ffi::X509_NAME_free;
|
||||||
|
|
||||||
|
|
@ -812,7 +812,7 @@ impl<'a> Iterator for X509NameEntries<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type_and_impl_send_sync! {
|
||||||
type CType = ffi::X509_NAME_ENTRY;
|
type CType = ffi::X509_NAME_ENTRY;
|
||||||
fn drop = ffi::X509_NAME_ENTRY_free;
|
fn drop = ffi::X509_NAME_ENTRY_free;
|
||||||
|
|
||||||
|
|
@ -906,7 +906,7 @@ impl X509ReqBuilder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type_and_impl_send_sync! {
|
||||||
type CType = ffi::X509_REQ;
|
type CType = ffi::X509_REQ;
|
||||||
fn drop = ffi::X509_REQ_free;
|
fn drop = ffi::X509_REQ_free;
|
||||||
|
|
||||||
|
|
@ -1076,7 +1076,7 @@ impl X509VerifyError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type_and_impl_send_sync! {
|
||||||
type CType = ffi::GENERAL_NAME;
|
type CType = ffi::GENERAL_NAME;
|
||||||
fn drop = ffi::GENERAL_NAME_free;
|
fn drop = ffi::GENERAL_NAME_free;
|
||||||
|
|
||||||
|
|
@ -1122,7 +1122,7 @@ impl Stackable for GeneralName {
|
||||||
type StackType = ffi::stack_st_GENERAL_NAME;
|
type StackType = ffi::stack_st_GENERAL_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreign_type! {
|
foreign_type_and_impl_send_sync! {
|
||||||
type CType = ffi::X509_ALGOR;
|
type CType = ffi::X509_ALGOR;
|
||||||
fn drop = ffi::X509_ALGOR_free;
|
fn drop = ffi::X509_ALGOR_free;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue