Skip to content

Commit

Permalink
add methods to get default UI
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEnbyperor committed May 30, 2021
1 parent b151859 commit 6a34b60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openssl-sys/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ extern "C" {
ui_method: *mut UI_METHOD,
callback_data: *mut c_void,
) -> c_int;

pub fn UI_set_default_method(const UI_METHOD *meth);
pub fn UI_get_default_method() -> *const UI_METHOD;
pub fn UI_get_method(ui: *mut UI) -> *const UI_METHOD;
pub fn UI_set_method(ui: *mut UI, meth: *const UI_METHOD) -> *const UI_METHOD;

pub fn UI_OpenSSL() -> *mut UI_METHOD;
pub fn UI_null(void) -> *const UI_METHOD;
}

type UI = c_int;
Expand Down

0 comments on commit 6a34b60

Please sign in to comment.