diff options
| author | Daniel Albert <[email protected]> | 2016-01-12 17:46:08 +0000 |
|---|---|---|
| committer | Daniel Albert <[email protected]> | 2016-01-12 17:46:35 +0000 |
| commit | 6ae8298f2c2a77eb96bd12a6c795f53696a0fe03 (patch) | |
| tree | f6a7f7ea6c1c71508afdd18b159086139dad4cf9 /openssl-sys/src | |
| parent | Make the BigNum generation from a native pointer unsafe (diff) | |
| download | rust-openssl-6ae8298f2c2a77eb96bd12a6c795f53696a0fe03.tar.xz rust-openssl-6ae8298f2c2a77eb96bd12a6c795f53696a0fe03.zip | |
Make all ffi structs' fields public
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index b6d2225b..519b0001 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -65,9 +65,9 @@ unsafe impl Sync for BIO_METHOD {} #[repr(C)] pub struct RSA { - pad: c_int, - version: c_long, - meth: *const c_void, + pub pad: c_int, + pub version: c_long, + pub meth: *const c_void, pub engine: *mut c_void, pub n: *mut BIGNUM, @@ -79,17 +79,17 @@ pub struct RSA { pub dmq1: *mut BIGNUM, pub iqmp: *mut BIGNUM, - ex_data: *mut c_void, - references: c_int, - flags: c_int, + pub ex_data: *mut c_void, + pub references: c_int, + pub flags: c_int, - _method_mod_n: *mut c_void, - _method_mod_p: *mut c_void, - _method_mod_q: *mut c_void, + pub _method_mod_n: *mut c_void, + pub _method_mod_p: *mut c_void, + pub _method_mod_q: *mut c_void, - bignum_data: *mut c_char, - blinding: *mut c_void, - mt_blinding: *mut c_void, + pub bignum_data: *mut c_char, + pub blinding: *mut c_void, + pub mt_blinding: *mut c_void, } #[repr(C)] @@ -98,10 +98,10 @@ pub struct EVP_PKEY { pub save_type: c_int, pub references: c_int, pub ameth: *const c_void, - engine: *mut ENGINE, + pub engine: *mut ENGINE, pub pkey: *mut c_void, - save_parameters: c_int, - attributes: *mut c_void, + pub save_parameters: c_int, + pub attributes: *mut c_void, } #[repr(C)] |