|
1 |
| -/* automatically generated by rust-bindgen 0.59.1 */ |
| 1 | +/* automatically generated by rust-bindgen 0.65.1 */ |
2 | 2 |
|
3 | 3 | #![allow(non_snake_case)]
|
4 | 4 | #![allow(non_camel_case_types)]
|
@@ -187,16 +187,11 @@ pub const SSH2_OPEN_UNKNOWN_CHANNEL_TYPE: u32 = 3;
|
187 | 187 | pub const SSH2_OPEN_RESOURCE_SHORTAGE: u32 = 4;
|
188 | 188 | pub const SSH2_EXTENDED_DATA_STDERR: u32 = 1;
|
189 | 189 | pub type va_list = __builtin_va_list;
|
190 |
| -pub type __uint8_t = ::std::os::raw::c_uchar; |
191 |
| -pub type __uint16_t = ::std::os::raw::c_ushort; |
192 |
| -pub type __uint32_t = ::std::os::raw::c_uint; |
193 |
| -pub type __uint64_t = ::std::os::raw::c_ulong; |
194 | 190 | pub type __uid_t = ::std::os::raw::c_uint;
|
195 | 191 | pub type __gid_t = ::std::os::raw::c_uint;
|
196 | 192 | pub type __mode_t = ::std::os::raw::c_uint;
|
197 | 193 | pub type __time_t = ::std::os::raw::c_long;
|
198 | 194 | pub type __suseconds_t = ::std::os::raw::c_long;
|
199 |
| -pub type __ssize_t = ::std::os::raw::c_long; |
200 | 195 | pub type gid_t = __gid_t;
|
201 | 196 | pub type uid_t = __uid_t;
|
202 | 197 | pub type mode_t = __mode_t;
|
@@ -471,7 +466,8 @@ pub enum ssh_options_e {
|
471 | 466 | SSH_OPTIONS_PROCESS_CONFIG = 38,
|
472 | 467 | SSH_OPTIONS_REKEY_DATA = 39,
|
473 | 468 | SSH_OPTIONS_REKEY_TIME = 40,
|
474 |
| - SSH_OPTIONS_IDENTITY_AGENT = 41, |
| 469 | + SSH_OPTIONS_RSA_MIN_SIZE = 41, |
| 470 | + SSH_OPTIONS_IDENTITY_AGENT = 42, |
475 | 471 | }
|
476 | 472 | pub const SSH_SCP_WRITE: _bindgen_ty_11 = _bindgen_ty_11::SSH_SCP_WRITE;
|
477 | 473 | pub const SSH_SCP_READ: _bindgen_ty_11 = _bindgen_ty_11::SSH_SCP_READ;
|
@@ -677,14 +673,6 @@ extern "C" {
|
677 | 673 | extern "C" {
|
678 | 674 | pub fn ssh_channel_send_eof(channel: ssh_channel) -> ::std::os::raw::c_int;
|
679 | 675 | }
|
680 |
| -extern "C" { |
681 |
| - pub fn ssh_channel_select( |
682 |
| - readchans: *mut ssh_channel, |
683 |
| - writechans: *mut ssh_channel, |
684 |
| - exceptchans: *mut ssh_channel, |
685 |
| - timeout: *mut timeval, |
686 |
| - ) -> ::std::os::raw::c_int; |
687 |
| -} |
688 | 676 | extern "C" {
|
689 | 677 | pub fn ssh_channel_set_blocking(channel: ssh_channel, blocking: ::std::os::raw::c_int);
|
690 | 678 | }
|
@@ -755,6 +743,15 @@ extern "C" {
|
755 | 743 | extern "C" {
|
756 | 744 | pub fn ssh_finalize() -> ::std::os::raw::c_int;
|
757 | 745 | }
|
| 746 | +extern "C" { |
| 747 | + pub fn ssh_channel_open_forward_port( |
| 748 | + session: ssh_session, |
| 749 | + timeout_ms: ::std::os::raw::c_int, |
| 750 | + destination_port: *mut ::std::os::raw::c_int, |
| 751 | + originator: *mut *mut ::std::os::raw::c_char, |
| 752 | + originator_port: *mut ::std::os::raw::c_int, |
| 753 | + ) -> ssh_channel; |
| 754 | +} |
758 | 755 | extern "C" {
|
759 | 756 | pub fn ssh_channel_accept_forward(
|
760 | 757 | session: ssh_session,
|
@@ -871,6 +868,97 @@ extern "C" {
|
871 | 868 | len: usize,
|
872 | 869 | );
|
873 | 870 | }
|
| 871 | +extern "C" { |
| 872 | + pub fn ssh_channel_select( |
| 873 | + readchans: *mut ssh_channel, |
| 874 | + writechans: *mut ssh_channel, |
| 875 | + exceptchans: *mut ssh_channel, |
| 876 | + timeout: *mut timeval, |
| 877 | + ) -> ::std::os::raw::c_int; |
| 878 | +} |
| 879 | +extern "C" { |
| 880 | + pub fn ssh_scp_accept_request(scp: ssh_scp) -> ::std::os::raw::c_int; |
| 881 | +} |
| 882 | +extern "C" { |
| 883 | + pub fn ssh_scp_close(scp: ssh_scp) -> ::std::os::raw::c_int; |
| 884 | +} |
| 885 | +extern "C" { |
| 886 | + pub fn ssh_scp_deny_request( |
| 887 | + scp: ssh_scp, |
| 888 | + reason: *const ::std::os::raw::c_char, |
| 889 | + ) -> ::std::os::raw::c_int; |
| 890 | +} |
| 891 | +extern "C" { |
| 892 | + pub fn ssh_scp_free(scp: ssh_scp); |
| 893 | +} |
| 894 | +extern "C" { |
| 895 | + pub fn ssh_scp_init(scp: ssh_scp) -> ::std::os::raw::c_int; |
| 896 | +} |
| 897 | +extern "C" { |
| 898 | + pub fn ssh_scp_leave_directory(scp: ssh_scp) -> ::std::os::raw::c_int; |
| 899 | +} |
| 900 | +extern "C" { |
| 901 | + pub fn ssh_scp_new( |
| 902 | + session: ssh_session, |
| 903 | + mode: ::std::os::raw::c_int, |
| 904 | + location: *const ::std::os::raw::c_char, |
| 905 | + ) -> ssh_scp; |
| 906 | +} |
| 907 | +extern "C" { |
| 908 | + pub fn ssh_scp_pull_request(scp: ssh_scp) -> ::std::os::raw::c_int; |
| 909 | +} |
| 910 | +extern "C" { |
| 911 | + pub fn ssh_scp_push_directory( |
| 912 | + scp: ssh_scp, |
| 913 | + dirname: *const ::std::os::raw::c_char, |
| 914 | + mode: ::std::os::raw::c_int, |
| 915 | + ) -> ::std::os::raw::c_int; |
| 916 | +} |
| 917 | +extern "C" { |
| 918 | + pub fn ssh_scp_push_file( |
| 919 | + scp: ssh_scp, |
| 920 | + filename: *const ::std::os::raw::c_char, |
| 921 | + size: usize, |
| 922 | + perms: ::std::os::raw::c_int, |
| 923 | + ) -> ::std::os::raw::c_int; |
| 924 | +} |
| 925 | +extern "C" { |
| 926 | + pub fn ssh_scp_push_file64( |
| 927 | + scp: ssh_scp, |
| 928 | + filename: *const ::std::os::raw::c_char, |
| 929 | + size: u64, |
| 930 | + perms: ::std::os::raw::c_int, |
| 931 | + ) -> ::std::os::raw::c_int; |
| 932 | +} |
| 933 | +extern "C" { |
| 934 | + pub fn ssh_scp_read( |
| 935 | + scp: ssh_scp, |
| 936 | + buffer: *mut ::std::os::raw::c_void, |
| 937 | + size: usize, |
| 938 | + ) -> ::std::os::raw::c_int; |
| 939 | +} |
| 940 | +extern "C" { |
| 941 | + pub fn ssh_scp_request_get_filename(scp: ssh_scp) -> *const ::std::os::raw::c_char; |
| 942 | +} |
| 943 | +extern "C" { |
| 944 | + pub fn ssh_scp_request_get_permissions(scp: ssh_scp) -> ::std::os::raw::c_int; |
| 945 | +} |
| 946 | +extern "C" { |
| 947 | + pub fn ssh_scp_request_get_size(scp: ssh_scp) -> usize; |
| 948 | +} |
| 949 | +extern "C" { |
| 950 | + pub fn ssh_scp_request_get_size64(scp: ssh_scp) -> u64; |
| 951 | +} |
| 952 | +extern "C" { |
| 953 | + pub fn ssh_scp_request_get_warning(scp: ssh_scp) -> *const ::std::os::raw::c_char; |
| 954 | +} |
| 955 | +extern "C" { |
| 956 | + pub fn ssh_scp_write( |
| 957 | + scp: ssh_scp, |
| 958 | + buffer: *const ::std::os::raw::c_void, |
| 959 | + len: usize, |
| 960 | + ) -> ::std::os::raw::c_int; |
| 961 | +} |
874 | 962 | extern "C" {
|
875 | 963 | pub fn ssh_get_random(
|
876 | 964 | where_: *mut ::std::os::raw::c_void,
|
@@ -1073,6 +1161,9 @@ extern "C" {
|
1073 | 1161 | extern "C" {
|
1074 | 1162 | pub fn ssh_key_cmp(k1: ssh_key, k2: ssh_key, what: ssh_keycmp_e) -> ::std::os::raw::c_int;
|
1075 | 1163 | }
|
| 1164 | +extern "C" { |
| 1165 | + pub fn ssh_key_dup(key: ssh_key) -> ssh_key; |
| 1166 | +} |
1076 | 1167 | extern "C" {
|
1077 | 1168 | pub fn ssh_pki_generate(
|
1078 | 1169 | type_: ssh_keytypes_e,
|
@@ -1199,89 +1290,6 @@ extern "C" {
|
1199 | 1290 | extern "C" {
|
1200 | 1291 | pub fn ssh_gssapi_set_creds(session: ssh_session, creds: ssh_gssapi_creds);
|
1201 | 1292 | }
|
1202 |
| -extern "C" { |
1203 |
| - pub fn ssh_scp_accept_request(scp: ssh_scp) -> ::std::os::raw::c_int; |
1204 |
| -} |
1205 |
| -extern "C" { |
1206 |
| - pub fn ssh_scp_close(scp: ssh_scp) -> ::std::os::raw::c_int; |
1207 |
| -} |
1208 |
| -extern "C" { |
1209 |
| - pub fn ssh_scp_deny_request( |
1210 |
| - scp: ssh_scp, |
1211 |
| - reason: *const ::std::os::raw::c_char, |
1212 |
| - ) -> ::std::os::raw::c_int; |
1213 |
| -} |
1214 |
| -extern "C" { |
1215 |
| - pub fn ssh_scp_free(scp: ssh_scp); |
1216 |
| -} |
1217 |
| -extern "C" { |
1218 |
| - pub fn ssh_scp_init(scp: ssh_scp) -> ::std::os::raw::c_int; |
1219 |
| -} |
1220 |
| -extern "C" { |
1221 |
| - pub fn ssh_scp_leave_directory(scp: ssh_scp) -> ::std::os::raw::c_int; |
1222 |
| -} |
1223 |
| -extern "C" { |
1224 |
| - pub fn ssh_scp_new( |
1225 |
| - session: ssh_session, |
1226 |
| - mode: ::std::os::raw::c_int, |
1227 |
| - location: *const ::std::os::raw::c_char, |
1228 |
| - ) -> ssh_scp; |
1229 |
| -} |
1230 |
| -extern "C" { |
1231 |
| - pub fn ssh_scp_pull_request(scp: ssh_scp) -> ::std::os::raw::c_int; |
1232 |
| -} |
1233 |
| -extern "C" { |
1234 |
| - pub fn ssh_scp_push_directory( |
1235 |
| - scp: ssh_scp, |
1236 |
| - dirname: *const ::std::os::raw::c_char, |
1237 |
| - mode: ::std::os::raw::c_int, |
1238 |
| - ) -> ::std::os::raw::c_int; |
1239 |
| -} |
1240 |
| -extern "C" { |
1241 |
| - pub fn ssh_scp_push_file( |
1242 |
| - scp: ssh_scp, |
1243 |
| - filename: *const ::std::os::raw::c_char, |
1244 |
| - size: usize, |
1245 |
| - perms: ::std::os::raw::c_int, |
1246 |
| - ) -> ::std::os::raw::c_int; |
1247 |
| -} |
1248 |
| -extern "C" { |
1249 |
| - pub fn ssh_scp_push_file64( |
1250 |
| - scp: ssh_scp, |
1251 |
| - filename: *const ::std::os::raw::c_char, |
1252 |
| - size: u64, |
1253 |
| - perms: ::std::os::raw::c_int, |
1254 |
| - ) -> ::std::os::raw::c_int; |
1255 |
| -} |
1256 |
| -extern "C" { |
1257 |
| - pub fn ssh_scp_read( |
1258 |
| - scp: ssh_scp, |
1259 |
| - buffer: *mut ::std::os::raw::c_void, |
1260 |
| - size: usize, |
1261 |
| - ) -> ::std::os::raw::c_int; |
1262 |
| -} |
1263 |
| -extern "C" { |
1264 |
| - pub fn ssh_scp_request_get_filename(scp: ssh_scp) -> *const ::std::os::raw::c_char; |
1265 |
| -} |
1266 |
| -extern "C" { |
1267 |
| - pub fn ssh_scp_request_get_permissions(scp: ssh_scp) -> ::std::os::raw::c_int; |
1268 |
| -} |
1269 |
| -extern "C" { |
1270 |
| - pub fn ssh_scp_request_get_size(scp: ssh_scp) -> usize; |
1271 |
| -} |
1272 |
| -extern "C" { |
1273 |
| - pub fn ssh_scp_request_get_size64(scp: ssh_scp) -> u64; |
1274 |
| -} |
1275 |
| -extern "C" { |
1276 |
| - pub fn ssh_scp_request_get_warning(scp: ssh_scp) -> *const ::std::os::raw::c_char; |
1277 |
| -} |
1278 |
| -extern "C" { |
1279 |
| - pub fn ssh_scp_write( |
1280 |
| - scp: ssh_scp, |
1281 |
| - buffer: *const ::std::os::raw::c_void, |
1282 |
| - len: usize, |
1283 |
| - ) -> ::std::os::raw::c_int; |
1284 |
| -} |
1285 | 1293 | extern "C" {
|
1286 | 1294 | pub fn ssh_select(
|
1287 | 1295 | channels: *mut ssh_channel,
|
@@ -1577,6 +1585,12 @@ extern "C" {
|
1577 | 1585 | extern "C" {
|
1578 | 1586 | pub fn ssh_buffer_get_len(buffer: ssh_buffer) -> u32;
|
1579 | 1587 | }
|
| 1588 | +extern "C" { |
| 1589 | + pub fn ssh_session_set_disconnect_message( |
| 1590 | + session: ssh_session, |
| 1591 | + message: *const ::std::os::raw::c_char, |
| 1592 | + ) -> ::std::os::raw::c_int; |
| 1593 | +} |
1580 | 1594 | #[repr(C)]
|
1581 | 1595 | #[derive(Debug, Copy, Clone)]
|
1582 | 1596 | pub struct ssh_private_key_struct {
|
@@ -1665,7 +1679,7 @@ pub type ssh_callback_data = ::std::option::Option<
|
1665 | 1679 | data: *const ::std::os::raw::c_void,
|
1666 | 1680 | len: usize,
|
1667 | 1681 | user: *mut ::std::os::raw::c_void,
|
1668 |
| - ) -> ::std::os::raw::c_int, |
| 1682 | + ) -> usize, |
1669 | 1683 | >;
|
1670 | 1684 | pub type ssh_callback_int_int = ::std::option::Option<
|
1671 | 1685 | unsafe extern "C" fn(
|
@@ -2003,7 +2017,7 @@ pub type ssh_channel_write_wontblock_callback = ::std::option::Option<
|
2003 | 2017 | unsafe extern "C" fn(
|
2004 | 2018 | session: ssh_session,
|
2005 | 2019 | channel: ssh_channel,
|
2006 |
| - bytes: usize, |
| 2020 | + bytes: u32, |
2007 | 2021 | userdata: *mut ::std::os::raw::c_void,
|
2008 | 2022 | ) -> ::std::os::raw::c_int,
|
2009 | 2023 | >;
|
@@ -2106,6 +2120,7 @@ pub enum ssh_bind_options_e {
|
2106 | 2120 | SSH_BIND_OPTIONS_HOSTKEY_ALGORITHMS = 18,
|
2107 | 2121 | SSH_BIND_OPTIONS_PROCESS_CONFIG = 19,
|
2108 | 2122 | SSH_BIND_OPTIONS_MODULI = 20,
|
| 2123 | + SSH_BIND_OPTIONS_RSA_MIN_SIZE = 21, |
2109 | 2124 | }
|
2110 | 2125 | #[repr(C)]
|
2111 | 2126 | #[derive(Debug, Copy, Clone)]
|
@@ -2186,6 +2201,10 @@ extern "C" {
|
2186 | 2201 | extern "C" {
|
2187 | 2202 | pub fn ssh_set_auth_methods(session: ssh_session, auth_methods: ::std::os::raw::c_int);
|
2188 | 2203 | }
|
| 2204 | +extern "C" { |
| 2205 | + pub fn ssh_send_issue_banner(session: ssh_session, banner: ssh_string) |
| 2206 | + -> ::std::os::raw::c_int; |
| 2207 | +} |
2189 | 2208 | extern "C" {
|
2190 | 2209 | pub fn ssh_message_reply_default(msg: ssh_message) -> ::std::os::raw::c_int;
|
2191 | 2210 | }
|
|
0 commit comments