|
1 | 1 | /* automatically generated by rust-bindgen 0.70.1, minified by cargo-minify */ |
2 | 2 |
|
3 | 3 | pub type pam_handle_t = u8; |
4 | | -pub type _bindgen_ty_1 = libc::c_uint; |
5 | | -pub type _bindgen_ty_2 = libc::c_uint; |
6 | | -pub type _bindgen_ty_3 = libc::c_int; |
7 | | -pub type _bindgen_ty_4 = libc::c_uint; |
| 4 | +pub type _bindgen_ty_1 = std::ffi::c_uint; |
| 5 | +pub type _bindgen_ty_2 = std::ffi::c_uint; |
| 6 | +pub type _bindgen_ty_3 = std::ffi::c_int; |
| 7 | +pub type _bindgen_ty_4 = std::ffi::c_uint; |
8 | 8 | #[repr(C)] |
9 | 9 | #[derive(Debug, Copy, Clone)] |
10 | 10 | pub struct pam_message { |
11 | | - pub msg_style: libc::c_int, |
12 | | - pub msg: *mut libc::c_char, |
| 11 | + pub msg_style: std::ffi::c_int, |
| 12 | + pub msg: *mut std::ffi::c_char, |
13 | 13 | } |
14 | 14 | #[repr(C)] |
15 | 15 | #[derive(Debug, Copy, Clone)] |
16 | 16 | pub struct pam_response { |
17 | | - pub resp: *mut libc::c_char, |
18 | | - pub resp_retcode: libc::c_int, |
| 17 | + pub resp: *mut std::ffi::c_char, |
| 18 | + pub resp_retcode: std::ffi::c_int, |
19 | 19 | } |
20 | 20 | #[repr(C)] |
21 | 21 | #[derive(Debug, Copy, Clone)] |
22 | 22 | pub struct pam_conv { |
23 | 23 | pub conv: ::std::option::Option< |
24 | 24 | unsafe extern "C" fn( |
25 | | - arg1: libc::c_int, |
| 25 | + arg1: std::ffi::c_int, |
26 | 26 | arg2: *mut *const pam_message, |
27 | 27 | arg3: *mut *mut pam_response, |
28 | | - arg4: *mut libc::c_void, |
29 | | - ) -> libc::c_int, |
| 28 | + arg4: *mut std::ffi::c_void, |
| 29 | + ) -> std::ffi::c_int, |
30 | 30 | >, |
31 | | - pub appdata_ptr: *mut libc::c_void, |
| 31 | + pub appdata_ptr: *mut std::ffi::c_void, |
32 | 32 | } |
33 | 33 | pub const PAM_SUCCESS: _bindgen_ty_1 = 0; |
34 | 34 | pub const PAM_OPEN_ERR: _bindgen_ty_1 = 1; |
@@ -73,54 +73,54 @@ pub const PAM_USER: _bindgen_ty_4 = 2; |
73 | 73 | pub const PAM_TTY: _bindgen_ty_4 = 3; |
74 | 74 | pub const PAM_RUSER: _bindgen_ty_4 = 8; |
75 | 75 | extern "C" { |
76 | | - pub fn pam_acct_mgmt(_pamh: *mut pam_handle_t, _flags: libc::c_int) -> libc::c_int; |
| 76 | + pub fn pam_acct_mgmt(_pamh: *mut pam_handle_t, _flags: std::ffi::c_int) -> std::ffi::c_int; |
77 | 77 | } |
78 | 78 | extern "C" { |
79 | | - pub fn pam_authenticate(_pamh: *mut pam_handle_t, _flags: libc::c_int) -> libc::c_int; |
| 79 | + pub fn pam_authenticate(_pamh: *mut pam_handle_t, _flags: std::ffi::c_int) -> std::ffi::c_int; |
80 | 80 | } |
81 | 81 | extern "C" { |
82 | | - pub fn pam_chauthtok(_pamh: *mut pam_handle_t, _flags: libc::c_int) -> libc::c_int; |
| 82 | + pub fn pam_chauthtok(_pamh: *mut pam_handle_t, _flags: std::ffi::c_int) -> std::ffi::c_int; |
83 | 83 | } |
84 | 84 | extern "C" { |
85 | | - pub fn pam_close_session(_pamh: *mut pam_handle_t, _flags: libc::c_int) -> libc::c_int; |
| 85 | + pub fn pam_close_session(_pamh: *mut pam_handle_t, _flags: std::ffi::c_int) -> std::ffi::c_int; |
86 | 86 | } |
87 | 87 | extern "C" { |
88 | | - pub fn pam_end(_pamh: *mut pam_handle_t, _status: libc::c_int) -> libc::c_int; |
| 88 | + pub fn pam_end(_pamh: *mut pam_handle_t, _status: std::ffi::c_int) -> std::ffi::c_int; |
89 | 89 | } |
90 | 90 | extern "C" { |
91 | 91 | pub fn pam_get_item( |
92 | 92 | _pamh: *const pam_handle_t, |
93 | | - _item_type: libc::c_int, |
94 | | - _item: *mut *const libc::c_void, |
95 | | - ) -> libc::c_int; |
| 93 | + _item_type: std::ffi::c_int, |
| 94 | + _item: *mut *const std::ffi::c_void, |
| 95 | + ) -> std::ffi::c_int; |
96 | 96 | } |
97 | 97 | extern "C" { |
98 | | - pub fn pam_getenvlist(_pamh: *mut pam_handle_t) -> *mut *mut libc::c_char; |
| 98 | + pub fn pam_getenvlist(_pamh: *mut pam_handle_t) -> *mut *mut std::ffi::c_char; |
99 | 99 | } |
100 | 100 | extern "C" { |
101 | | - pub fn pam_open_session(_pamh: *mut pam_handle_t, _flags: libc::c_int) -> libc::c_int; |
| 101 | + pub fn pam_open_session(_pamh: *mut pam_handle_t, _flags: std::ffi::c_int) -> std::ffi::c_int; |
102 | 102 | } |
103 | 103 | extern "C" { |
104 | 104 | pub fn pam_set_item( |
105 | 105 | _pamh: *mut pam_handle_t, |
106 | | - _item_type: libc::c_int, |
107 | | - _item: *const libc::c_void, |
108 | | - ) -> libc::c_int; |
| 106 | + _item_type: std::ffi::c_int, |
| 107 | + _item: *const std::ffi::c_void, |
| 108 | + ) -> std::ffi::c_int; |
109 | 109 | } |
110 | 110 | extern "C" { |
111 | | - pub fn pam_setcred(_pamh: *mut pam_handle_t, _flags: libc::c_int) -> libc::c_int; |
| 111 | + pub fn pam_setcred(_pamh: *mut pam_handle_t, _flags: std::ffi::c_int) -> std::ffi::c_int; |
112 | 112 | } |
113 | 113 | extern "C" { |
114 | 114 | pub fn pam_start( |
115 | | - _service: *const libc::c_char, |
116 | | - _user: *const libc::c_char, |
| 115 | + _service: *const std::ffi::c_char, |
| 116 | + _user: *const std::ffi::c_char, |
117 | 117 | _pam_conv: *const pam_conv, |
118 | 118 | _pamh: *mut *mut pam_handle_t, |
119 | | - ) -> libc::c_int; |
| 119 | + ) -> std::ffi::c_int; |
120 | 120 | } |
121 | 121 | extern "C" { |
122 | 122 | pub fn pam_strerror( |
123 | 123 | _pamh: *const pam_handle_t, |
124 | | - _error_number: libc::c_int, |
125 | | - ) -> *const libc::c_char; |
| 124 | + _error_number: std::ffi::c_int, |
| 125 | + ) -> *const std::ffi::c_char; |
126 | 126 | } |
0 commit comments