1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use libc::{c_char, c_int, c_uint, c_void, size_t};
pub use libgpg_error_sys::gpg_error_t as gcry_error_t;
pub enum gcry_thread_cbs {}
pub enum gcry_context {}
pub type gcry_ctx_t = *mut gcry_context;
pub enum gcry_sexp {}
pub type gcry_sexp_t = *mut gcry_sexp;
pub enum gcry_mpi {}
pub type gcry_mpi_t = *mut gcry_mpi;
pub enum gcry_mpi_point {}
pub type gcry_mpi_point_t = *mut gcry_mpi_point;
pub enum gcry_cipher_handle {}
pub type gcry_cipher_hd_t = *mut gcry_cipher_handle;
pub enum gcry_md_handle {}
pub type gcry_md_hd_t = *mut gcry_md_handle;
pub enum gcry_mac_handle {}
pub type gcry_mac_hd_t = *mut gcry_mac_handle;
pub type gcry_prime_check_func_t = Option<extern "C" fn(*mut c_void, c_int, gcry_mpi_t) -> c_int>;
pub type gcry_handler_progress_t = Option<
extern "C" fn(*mut c_void, *const c_char, c_int, c_int, c_int),
>;
pub type gcry_handler_alloc_t = Option<extern "C" fn(size_t) -> *mut c_void>;
pub type gcry_handler_secure_check_t = Option<extern "C" fn(*const c_void) -> c_int>;
pub type gcry_handler_realloc_t = Option<extern "C" fn(*mut c_void, size_t) -> *mut c_void>;
pub type gcry_handler_free_t = Option<extern "C" fn(*mut c_void)>;
pub type gcry_handler_no_mem_t = Option<extern "C" fn(*mut c_void, size_t, c_uint) -> c_int>;
pub type gcry_handler_error_t = Option<extern "C" fn(*mut c_void, c_int, *const c_char)>;