Skip to content

Commit

Permalink
remove non public structs from UI
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEnbyperor committed May 30, 2021
1 parent 2ad0c2c commit b151859
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions openssl-sys/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ extern "C" {
) -> c_int;
}

type UI = c_int;
type UI_STRING = c_int;

#[repr(C)]
pub struct UI_METHOD {
name: *const c_char,
Expand All @@ -66,23 +69,6 @@ pub struct UI_METHOD {
const UI_FLAG_REDOABLE: c_int = 0x0001;
const UI_FLAG_PRINT_ERRORS: c_int = 0x0100;

#[repr(C)]
pub struct UI {
meth: *const UI_METHOD,
strings: *mut c_void,
user_data: *mut c_void,
ex_data: CRYPTO_EX_DATA,
flags: c_int,
}

#[repr(C)]
pub struct UI_STRING {
string_type: UI_string_types,
out_string: *const c_char,
input_flags: c_int,
result_buf: *mut c_char,
}

#[repr(C)]
pub enum UI_string_types {
UIT_NONE = 0,
Expand Down

0 comments on commit b151859

Please sign in to comment.