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
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
/* automatically generated by rust-bindgen 0.59.1 */

#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![allow(clippy::unreadable_literal)]
#![allow(clippy::upper_case_acronyms)]

pub const SSH_CRYPT: u32 = 2;
pub const SSH_MAC: u32 = 3;
pub const SSH_COMP: u32 = 4;
pub const SSH_LANG: u32 = 5;
pub const SSH_AUTH_METHOD_UNKNOWN: u32 = 0;
pub const SSH_AUTH_METHOD_NONE: u32 = 1;
pub const SSH_AUTH_METHOD_PASSWORD: u32 = 2;
pub const SSH_AUTH_METHOD_PUBLICKEY: u32 = 4;
pub const SSH_AUTH_METHOD_HOSTBASED: u32 = 8;
pub const SSH_AUTH_METHOD_INTERACTIVE: u32 = 16;
pub const SSH_AUTH_METHOD_GSSAPI_MIC: u32 = 32;
pub const SSH_CLOSED: u32 = 1;
pub const SSH_READ_PENDING: u32 = 2;
pub const SSH_CLOSED_ERROR: u32 = 4;
pub const SSH_WRITE_PENDING: u32 = 8;
pub const SSH_ADDRSTRLEN: u32 = 46;
pub const SSH_OK: u32 = 0;
pub const SSH_ERROR: i32 = -1;
pub const SSH_AGAIN: i32 = -2;
pub const SSH_EOF: i32 = -127;
pub const SSH_LOG_NONE: u32 = 0;
pub const SSH_LOG_WARN: u32 = 1;
pub const SSH_LOG_INFO: u32 = 2;
pub const SSH_LOG_DEBUG: u32 = 3;
pub const SSH_LOG_TRACE: u32 = 4;
pub const SSH_SOCKET_FLOW_WRITEWILLBLOCK: u32 = 1;
pub const SSH_SOCKET_FLOW_WRITEWONTBLOCK: u32 = 2;
pub const SSH_SOCKET_EXCEPTION_EOF: u32 = 1;
pub const SSH_SOCKET_EXCEPTION_ERROR: u32 = 2;
pub const SSH_SOCKET_CONNECTED_OK: u32 = 1;
pub const SSH_SOCKET_CONNECTED_ERROR: u32 = 2;
pub const SSH_SOCKET_CONNECTED_TIMEOUT: u32 = 3;
pub const SSH_PACKET_USED: u32 = 1;
pub const SSH_PACKET_NOT_USED: u32 = 2;
pub const SSH_FXP_INIT: u32 = 1;
pub const SSH_FXP_VERSION: u32 = 2;
pub const SSH_FXP_OPEN: u32 = 3;
pub const SSH_FXP_CLOSE: u32 = 4;
pub const SSH_FXP_READ: u32 = 5;
pub const SSH_FXP_WRITE: u32 = 6;
pub const SSH_FXP_LSTAT: u32 = 7;
pub const SSH_FXP_FSTAT: u32 = 8;
pub const SSH_FXP_SETSTAT: u32 = 9;
pub const SSH_FXP_FSETSTAT: u32 = 10;
pub const SSH_FXP_OPENDIR: u32 = 11;
pub const SSH_FXP_READDIR: u32 = 12;
pub const SSH_FXP_REMOVE: u32 = 13;
pub const SSH_FXP_MKDIR: u32 = 14;
pub const SSH_FXP_RMDIR: u32 = 15;
pub const SSH_FXP_REALPATH: u32 = 16;
pub const SSH_FXP_STAT: u32 = 17;
pub const SSH_FXP_RENAME: u32 = 18;
pub const SSH_FXP_READLINK: u32 = 19;
pub const SSH_FXP_SYMLINK: u32 = 20;
pub const SSH_FXP_STATUS: u32 = 101;
pub const SSH_FXP_HANDLE: u32 = 102;
pub const SSH_FXP_DATA: u32 = 103;
pub const SSH_FXP_NAME: u32 = 104;
pub const SSH_FXP_ATTRS: u32 = 105;
pub const SSH_FXP_EXTENDED: u32 = 200;
pub const SSH_FXP_EXTENDED_REPLY: u32 = 201;
pub const SSH_FILEXFER_ATTR_SIZE: u32 = 1;
pub const SSH_FILEXFER_ATTR_PERMISSIONS: u32 = 4;
pub const SSH_FILEXFER_ATTR_ACCESSTIME: u32 = 8;
pub const SSH_FILEXFER_ATTR_ACMODTIME: u32 = 8;
pub const SSH_FILEXFER_ATTR_CREATETIME: u32 = 16;
pub const SSH_FILEXFER_ATTR_MODIFYTIME: u32 = 32;
pub const SSH_FILEXFER_ATTR_ACL: u32 = 64;
pub const SSH_FILEXFER_ATTR_OWNERGROUP: u32 = 128;
pub const SSH_FILEXFER_ATTR_SUBSECOND_TIMES: u32 = 256;
pub const SSH_FILEXFER_ATTR_EXTENDED: u32 = 2147483648;
pub const SSH_FILEXFER_ATTR_UIDGID: u32 = 2;
pub const SSH_FILEXFER_TYPE_REGULAR: u32 = 1;
pub const SSH_FILEXFER_TYPE_DIRECTORY: u32 = 2;
pub const SSH_FILEXFER_TYPE_SYMLINK: u32 = 3;
pub const SSH_FILEXFER_TYPE_SPECIAL: u32 = 4;
pub const SSH_FILEXFER_TYPE_UNKNOWN: u32 = 5;
pub const SSH_FX_OK: u32 = 0;
pub const SSH_FX_EOF: u32 = 1;
pub const SSH_FX_NO_SUCH_FILE: u32 = 2;
pub const SSH_FX_PERMISSION_DENIED: u32 = 3;
pub const SSH_FX_FAILURE: u32 = 4;
pub const SSH_FX_BAD_MESSAGE: u32 = 5;
pub const SSH_FX_NO_CONNECTION: u32 = 6;
pub const SSH_FX_CONNECTION_LOST: u32 = 7;
pub const SSH_FX_OP_UNSUPPORTED: u32 = 8;
pub const SSH_FX_INVALID_HANDLE: u32 = 9;
pub const SSH_FX_NO_SUCH_PATH: u32 = 10;
pub const SSH_FX_FILE_ALREADY_EXISTS: u32 = 11;
pub const SSH_FX_WRITE_PROTECT: u32 = 12;
pub const SSH_FX_NO_MEDIA: u32 = 13;
pub const SSH_FXF_READ: u32 = 1;
pub const SSH_FXF_WRITE: u32 = 2;
pub const SSH_FXF_APPEND: u32 = 4;
pub const SSH_FXF_CREAT: u32 = 8;
pub const SSH_FXF_TRUNC: u32 = 16;
pub const SSH_FXF_EXCL: u32 = 32;
pub const SSH_FXF_TEXT: u32 = 64;
pub const SSH_S_IFMT: u32 = 61440;
pub const SSH_S_IFSOCK: u32 = 49152;
pub const SSH_S_IFLNK: u32 = 40960;
pub const SSH_S_IFREG: u32 = 32768;
pub const SSH_S_IFBLK: u32 = 24576;
pub const SSH_S_IFDIR: u32 = 16384;
pub const SSH_S_IFCHR: u32 = 8192;
pub const SSH_S_IFIFO: u32 = 4096;
pub const SSH_FXF_RENAME_OVERWRITE: u32 = 1;
pub const SSH_FXF_RENAME_ATOMIC: u32 = 2;
pub const SSH_FXF_RENAME_NATIVE: u32 = 4;
pub const SSH_FXE_STATVFS_ST_RDONLY: u32 = 1;
pub const SSH_FXE_STATVFS_ST_NOSUID: u32 = 2;
pub const SSH2_MSG_DISCONNECT: u32 = 1;
pub const SSH2_MSG_IGNORE: u32 = 2;
pub const SSH2_MSG_UNIMPLEMENTED: u32 = 3;
pub const SSH2_MSG_DEBUG: u32 = 4;
pub const SSH2_MSG_SERVICE_REQUEST: u32 = 5;
pub const SSH2_MSG_SERVICE_ACCEPT: u32 = 6;
pub const SSH2_MSG_EXT_INFO: u32 = 7;
pub const SSH2_MSG_KEXINIT: u32 = 20;
pub const SSH2_MSG_NEWKEYS: u32 = 21;
pub const SSH2_MSG_KEXDH_INIT: u32 = 30;
pub const SSH2_MSG_KEXDH_REPLY: u32 = 31;
pub const SSH2_MSG_KEX_ECDH_INIT: u32 = 30;
pub const SSH2_MSG_KEX_ECDH_REPLY: u32 = 31;
pub const SSH2_MSG_ECMQV_INIT: u32 = 30;
pub const SSH2_MSG_ECMQV_REPLY: u32 = 31;
pub const SSH2_MSG_KEX_DH_GEX_REQUEST_OLD: u32 = 30;
pub const SSH2_MSG_KEX_DH_GEX_GROUP: u32 = 31;
pub const SSH2_MSG_KEX_DH_GEX_INIT: u32 = 32;
pub const SSH2_MSG_KEX_DH_GEX_REPLY: u32 = 33;
pub const SSH2_MSG_KEX_DH_GEX_REQUEST: u32 = 34;
pub const SSH2_MSG_USERAUTH_REQUEST: u32 = 50;
pub const SSH2_MSG_USERAUTH_FAILURE: u32 = 51;
pub const SSH2_MSG_USERAUTH_SUCCESS: u32 = 52;
pub const SSH2_MSG_USERAUTH_BANNER: u32 = 53;
pub const SSH2_MSG_USERAUTH_PK_OK: u32 = 60;
pub const SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ: u32 = 60;
pub const SSH2_MSG_USERAUTH_INFO_REQUEST: u32 = 60;
pub const SSH2_MSG_USERAUTH_GSSAPI_RESPONSE: u32 = 60;
pub const SSH2_MSG_USERAUTH_INFO_RESPONSE: u32 = 61;
pub const SSH2_MSG_USERAUTH_GSSAPI_TOKEN: u32 = 61;
pub const SSH2_MSG_USERAUTH_GSSAPI_EXCHANGE_COMPLETE: u32 = 63;
pub const SSH2_MSG_USERAUTH_GSSAPI_ERROR: u32 = 64;
pub const SSH2_MSG_USERAUTH_GSSAPI_ERRTOK: u32 = 65;
pub const SSH2_MSG_USERAUTH_GSSAPI_MIC: u32 = 66;
pub const SSH2_MSG_GLOBAL_REQUEST: u32 = 80;
pub const SSH2_MSG_REQUEST_SUCCESS: u32 = 81;
pub const SSH2_MSG_REQUEST_FAILURE: u32 = 82;
pub const SSH2_MSG_CHANNEL_OPEN: u32 = 90;
pub const SSH2_MSG_CHANNEL_OPEN_CONFIRMATION: u32 = 91;
pub const SSH2_MSG_CHANNEL_OPEN_FAILURE: u32 = 92;
pub const SSH2_MSG_CHANNEL_WINDOW_ADJUST: u32 = 93;
pub const SSH2_MSG_CHANNEL_DATA: u32 = 94;
pub const SSH2_MSG_CHANNEL_EXTENDED_DATA: u32 = 95;
pub const SSH2_MSG_CHANNEL_EOF: u32 = 96;
pub const SSH2_MSG_CHANNEL_CLOSE: u32 = 97;
pub const SSH2_MSG_CHANNEL_REQUEST: u32 = 98;
pub const SSH2_MSG_CHANNEL_SUCCESS: u32 = 99;
pub const SSH2_MSG_CHANNEL_FAILURE: u32 = 100;
pub const SSH2_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT: u32 = 1;
pub const SSH2_DISCONNECT_PROTOCOL_ERROR: u32 = 2;
pub const SSH2_DISCONNECT_KEY_EXCHANGE_FAILED: u32 = 3;
pub const SSH2_DISCONNECT_HOST_AUTHENTICATION_FAILED: u32 = 4;
pub const SSH2_DISCONNECT_RESERVED: u32 = 4;
pub const SSH2_DISCONNECT_MAC_ERROR: u32 = 5;
pub const SSH2_DISCONNECT_COMPRESSION_ERROR: u32 = 6;
pub const SSH2_DISCONNECT_SERVICE_NOT_AVAILABLE: u32 = 7;
pub const SSH2_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED: u32 = 8;
pub const SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE: u32 = 9;
pub const SSH2_DISCONNECT_CONNECTION_LOST: u32 = 10;
pub const SSH2_DISCONNECT_BY_APPLICATION: u32 = 11;
pub const SSH2_DISCONNECT_TOO_MANY_CONNECTIONS: u32 = 12;
pub const SSH2_DISCONNECT_AUTH_CANCELLED_BY_USER: u32 = 13;
pub const SSH2_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE: u32 = 14;
pub const SSH2_DISCONNECT_ILLEGAL_USER_NAME: u32 = 15;
pub const SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED: u32 = 1;
pub const SSH2_OPEN_CONNECT_FAILED: u32 = 2;
pub const SSH2_OPEN_UNKNOWN_CHANNEL_TYPE: u32 = 3;
pub const SSH2_OPEN_RESOURCE_SHORTAGE: u32 = 4;
pub const SSH2_EXTENDED_DATA_STDERR: u32 = 1;
pub type va_list = __builtin_va_list;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __time_t = ::std::os::raw::c_long;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __ssize_t = ::std::os::raw::c_long;
pub type gid_t = __gid_t;
pub type uid_t = __uid_t;
pub type mode_t = __mode_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
    pub tv_sec: __time_t,
    pub tv_usec: __suseconds_t,
}
pub type __fd_mask = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fd_set {
    pub __fds_bits: [__fd_mask; 16usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_counter_struct {
    pub in_bytes: u64,
    pub out_bytes: u64,
    pub in_packets: u64,
    pub out_packets: u64,
}
pub type ssh_counter = *mut ssh_counter_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_agent_struct {
    _unused: [u8; 0],
}
pub type ssh_agent = *mut ssh_agent_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_buffer_struct {
    _unused: [u8; 0],
}
pub type ssh_buffer = *mut ssh_buffer_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_channel_struct {
    _unused: [u8; 0],
}
pub type ssh_channel = *mut ssh_channel_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_message_struct {
    _unused: [u8; 0],
}
pub type ssh_message = *mut ssh_message_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_pcap_file_struct {
    _unused: [u8; 0],
}
pub type ssh_pcap_file = *mut ssh_pcap_file_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_key_struct {
    _unused: [u8; 0],
}
pub type ssh_key = *mut ssh_key_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_scp_struct {
    _unused: [u8; 0],
}
pub type ssh_scp = *mut ssh_scp_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_session_struct {
    _unused: [u8; 0],
}
pub type ssh_session = *mut ssh_session_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_string_struct {
    _unused: [u8; 0],
}
pub type ssh_string = *mut ssh_string_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_event_struct {
    _unused: [u8; 0],
}
pub type ssh_event = *mut ssh_event_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_connector_struct {
    _unused: [u8; 0],
}
pub type ssh_connector = *mut ssh_connector_struct;
pub type ssh_gssapi_creds = *mut ::std::os::raw::c_void;
pub type socket_t = ::std::os::raw::c_int;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_kex_types_e {
    SSH_KEX = 0,
    SSH_HOSTKEYS = 1,
    SSH_CRYPT_C_S = 2,
    SSH_CRYPT_S_C = 3,
    SSH_MAC_C_S = 4,
    SSH_MAC_S_C = 5,
    SSH_COMP_C_S = 6,
    SSH_COMP_S_C = 7,
    SSH_LANG_C_S = 8,
    SSH_LANG_S_C = 9,
}
pub const ssh_auth_e_SSH_AUTH_SUCCESS: ssh_auth_e = 0;
pub const ssh_auth_e_SSH_AUTH_DENIED: ssh_auth_e = 1;
pub const ssh_auth_e_SSH_AUTH_PARTIAL: ssh_auth_e = 2;
pub const ssh_auth_e_SSH_AUTH_INFO: ssh_auth_e = 3;
pub const ssh_auth_e_SSH_AUTH_AGAIN: ssh_auth_e = 4;
pub const ssh_auth_e_SSH_AUTH_ERROR: ssh_auth_e = -1;
pub type ssh_auth_e = ::std::os::raw::c_int;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_requests_e {
    SSH_REQUEST_AUTH = 1,
    SSH_REQUEST_CHANNEL_OPEN = 2,
    SSH_REQUEST_CHANNEL = 3,
    SSH_REQUEST_SERVICE = 4,
    SSH_REQUEST_GLOBAL = 5,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_channel_type_e {
    SSH_CHANNEL_UNKNOWN = 0,
    SSH_CHANNEL_SESSION = 1,
    SSH_CHANNEL_DIRECT_TCPIP = 2,
    SSH_CHANNEL_FORWARDED_TCPIP = 3,
    SSH_CHANNEL_X11 = 4,
    SSH_CHANNEL_AUTH_AGENT = 5,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_channel_requests_e {
    SSH_CHANNEL_REQUEST_UNKNOWN = 0,
    SSH_CHANNEL_REQUEST_PTY = 1,
    SSH_CHANNEL_REQUEST_EXEC = 2,
    SSH_CHANNEL_REQUEST_SHELL = 3,
    SSH_CHANNEL_REQUEST_ENV = 4,
    SSH_CHANNEL_REQUEST_SUBSYSTEM = 5,
    SSH_CHANNEL_REQUEST_WINDOW_CHANGE = 6,
    SSH_CHANNEL_REQUEST_X11 = 7,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_global_requests_e {
    SSH_GLOBAL_REQUEST_UNKNOWN = 0,
    SSH_GLOBAL_REQUEST_TCPIP_FORWARD = 1,
    SSH_GLOBAL_REQUEST_CANCEL_TCPIP_FORWARD = 2,
    SSH_GLOBAL_REQUEST_KEEPALIVE = 3,
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_publickey_state_e {
    SSH_PUBLICKEY_STATE_ERROR = -1,
    SSH_PUBLICKEY_STATE_NONE = 0,
    SSH_PUBLICKEY_STATE_VALID = 1,
    SSH_PUBLICKEY_STATE_WRONG = 2,
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_server_known_e {
    SSH_SERVER_ERROR = -1,
    SSH_SERVER_NOT_KNOWN = 0,
    SSH_SERVER_KNOWN_OK = 1,
    SSH_SERVER_KNOWN_CHANGED = 2,
    SSH_SERVER_FOUND_OTHER = 3,
    SSH_SERVER_FILE_NOT_FOUND = 4,
}
pub const ssh_known_hosts_e_SSH_KNOWN_HOSTS_ERROR: ssh_known_hosts_e = -2;
pub const ssh_known_hosts_e_SSH_KNOWN_HOSTS_NOT_FOUND: ssh_known_hosts_e = -1;
pub const ssh_known_hosts_e_SSH_KNOWN_HOSTS_UNKNOWN: ssh_known_hosts_e = 0;
pub const ssh_known_hosts_e_SSH_KNOWN_HOSTS_OK: ssh_known_hosts_e = 1;
pub const ssh_known_hosts_e_SSH_KNOWN_HOSTS_CHANGED: ssh_known_hosts_e = 2;
pub const ssh_known_hosts_e_SSH_KNOWN_HOSTS_OTHER: ssh_known_hosts_e = 3;
pub type ssh_known_hosts_e = ::std::os::raw::c_int;
pub const ssh_error_types_e_SSH_NO_ERROR: ssh_error_types_e = 0;
pub const ssh_error_types_e_SSH_REQUEST_DENIED: ssh_error_types_e = 1;
pub const ssh_error_types_e_SSH_FATAL: ssh_error_types_e = 2;
pub const ssh_error_types_e_SSH_EINTR: ssh_error_types_e = 3;
pub type ssh_error_types_e = ::std::os::raw::c_uint;
pub const ssh_keytypes_e_SSH_KEYTYPE_UNKNOWN: ssh_keytypes_e = 0;
pub const ssh_keytypes_e_SSH_KEYTYPE_DSS: ssh_keytypes_e = 1;
pub const ssh_keytypes_e_SSH_KEYTYPE_RSA: ssh_keytypes_e = 2;
pub const ssh_keytypes_e_SSH_KEYTYPE_RSA1: ssh_keytypes_e = 3;
pub const ssh_keytypes_e_SSH_KEYTYPE_ECDSA: ssh_keytypes_e = 4;
pub const ssh_keytypes_e_SSH_KEYTYPE_ED25519: ssh_keytypes_e = 5;
pub const ssh_keytypes_e_SSH_KEYTYPE_DSS_CERT01: ssh_keytypes_e = 6;
pub const ssh_keytypes_e_SSH_KEYTYPE_RSA_CERT01: ssh_keytypes_e = 7;
pub const ssh_keytypes_e_SSH_KEYTYPE_ECDSA_P256: ssh_keytypes_e = 8;
pub const ssh_keytypes_e_SSH_KEYTYPE_ECDSA_P384: ssh_keytypes_e = 9;
pub const ssh_keytypes_e_SSH_KEYTYPE_ECDSA_P521: ssh_keytypes_e = 10;
pub const ssh_keytypes_e_SSH_KEYTYPE_ECDSA_P256_CERT01: ssh_keytypes_e = 11;
pub const ssh_keytypes_e_SSH_KEYTYPE_ECDSA_P384_CERT01: ssh_keytypes_e = 12;
pub const ssh_keytypes_e_SSH_KEYTYPE_ECDSA_P521_CERT01: ssh_keytypes_e = 13;
pub const ssh_keytypes_e_SSH_KEYTYPE_ED25519_CERT01: ssh_keytypes_e = 14;
pub const ssh_keytypes_e_SSH_KEYTYPE_SK_ECDSA: ssh_keytypes_e = 15;
pub const ssh_keytypes_e_SSH_KEYTYPE_SK_ECDSA_CERT01: ssh_keytypes_e = 16;
pub const ssh_keytypes_e_SSH_KEYTYPE_SK_ED25519: ssh_keytypes_e = 17;
pub const ssh_keytypes_e_SSH_KEYTYPE_SK_ED25519_CERT01: ssh_keytypes_e = 18;
pub type ssh_keytypes_e = ::std::os::raw::c_uint;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_keycmp_e {
    SSH_KEY_CMP_PUBLIC = 0,
    SSH_KEY_CMP_PRIVATE = 1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_knownhosts_entry {
    pub hostname: *mut ::std::os::raw::c_char,
    pub unparsed: *mut ::std::os::raw::c_char,
    pub publickey: ssh_key,
    pub comment: *mut ::std::os::raw::c_char,
}
pub const SSH_LOG_NOLOG: _bindgen_ty_10 = _bindgen_ty_10::SSH_LOG_NOLOG;
pub const SSH_LOG_WARNING: _bindgen_ty_10 = _bindgen_ty_10::SSH_LOG_WARNING;
pub const SSH_LOG_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::SSH_LOG_PROTOCOL;
pub const SSH_LOG_PACKET: _bindgen_ty_10 = _bindgen_ty_10::SSH_LOG_PACKET;
pub const SSH_LOG_FUNCTIONS: _bindgen_ty_10 = _bindgen_ty_10::SSH_LOG_FUNCTIONS;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_10 {
    SSH_LOG_NOLOG = 0,
    SSH_LOG_WARNING = 1,
    SSH_LOG_PROTOCOL = 2,
    SSH_LOG_PACKET = 3,
    SSH_LOG_FUNCTIONS = 4,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_options_e {
    SSH_OPTIONS_HOST = 0,
    SSH_OPTIONS_PORT = 1,
    SSH_OPTIONS_PORT_STR = 2,
    SSH_OPTIONS_FD = 3,
    SSH_OPTIONS_USER = 4,
    SSH_OPTIONS_SSH_DIR = 5,
    SSH_OPTIONS_IDENTITY = 6,
    SSH_OPTIONS_ADD_IDENTITY = 7,
    SSH_OPTIONS_KNOWNHOSTS = 8,
    SSH_OPTIONS_TIMEOUT = 9,
    SSH_OPTIONS_TIMEOUT_USEC = 10,
    SSH_OPTIONS_SSH1 = 11,
    SSH_OPTIONS_SSH2 = 12,
    SSH_OPTIONS_LOG_VERBOSITY = 13,
    SSH_OPTIONS_LOG_VERBOSITY_STR = 14,
    SSH_OPTIONS_CIPHERS_C_S = 15,
    SSH_OPTIONS_CIPHERS_S_C = 16,
    SSH_OPTIONS_COMPRESSION_C_S = 17,
    SSH_OPTIONS_COMPRESSION_S_C = 18,
    SSH_OPTIONS_PROXYCOMMAND = 19,
    SSH_OPTIONS_BINDADDR = 20,
    SSH_OPTIONS_STRICTHOSTKEYCHECK = 21,
    SSH_OPTIONS_COMPRESSION = 22,
    SSH_OPTIONS_COMPRESSION_LEVEL = 23,
    SSH_OPTIONS_KEY_EXCHANGE = 24,
    SSH_OPTIONS_HOSTKEYS = 25,
    SSH_OPTIONS_GSSAPI_SERVER_IDENTITY = 26,
    SSH_OPTIONS_GSSAPI_CLIENT_IDENTITY = 27,
    SSH_OPTIONS_GSSAPI_DELEGATE_CREDENTIALS = 28,
    SSH_OPTIONS_HMAC_C_S = 29,
    SSH_OPTIONS_HMAC_S_C = 30,
    SSH_OPTIONS_PASSWORD_AUTH = 31,
    SSH_OPTIONS_PUBKEY_AUTH = 32,
    SSH_OPTIONS_KBDINT_AUTH = 33,
    SSH_OPTIONS_GSSAPI_AUTH = 34,
    SSH_OPTIONS_GLOBAL_KNOWNHOSTS = 35,
    SSH_OPTIONS_NODELAY = 36,
    SSH_OPTIONS_PUBLICKEY_ACCEPTED_TYPES = 37,
    SSH_OPTIONS_PROCESS_CONFIG = 38,
    SSH_OPTIONS_REKEY_DATA = 39,
    SSH_OPTIONS_REKEY_TIME = 40,
    SSH_OPTIONS_IDENTITY_AGENT = 41,
}
pub const SSH_SCP_WRITE: _bindgen_ty_11 = _bindgen_ty_11::SSH_SCP_WRITE;
pub const SSH_SCP_READ: _bindgen_ty_11 = _bindgen_ty_11::SSH_SCP_READ;
pub const SSH_SCP_RECURSIVE: _bindgen_ty_11 = _bindgen_ty_11::SSH_SCP_RECURSIVE;
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _bindgen_ty_11 {
    SSH_SCP_WRITE = 0,
    SSH_SCP_READ = 1,
    SSH_SCP_RECURSIVE = 16,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_scp_request_types {
    SSH_SCP_REQUEST_NEWDIR = 1,
    SSH_SCP_REQUEST_NEWFILE = 2,
    SSH_SCP_REQUEST_EOF = 3,
    SSH_SCP_REQUEST_ENDDIR = 4,
    SSH_SCP_REQUEST_WARNING = 5,
}
impl ssh_connector_flags_e {
    pub const SSH_CONNECTOR_STDINOUT: ssh_connector_flags_e =
        ssh_connector_flags_e::SSH_CONNECTOR_STDOUT;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_connector_flags_e {
    SSH_CONNECTOR_STDOUT = 1,
    SSH_CONNECTOR_STDERR = 2,
    SSH_CONNECTOR_BOTH = 3,
}
extern "C" {
    pub fn ssh_blocking_flush(
        session: ssh_session,
        timeout: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_accept_x11(
        channel: ssh_channel,
        timeout_ms: ::std::os::raw::c_int,
    ) -> ssh_channel;
}
extern "C" {
    pub fn ssh_channel_change_pty_size(
        channel: ssh_channel,
        cols: ::std::os::raw::c_int,
        rows: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_close(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_free(channel: ssh_channel);
}
extern "C" {
    pub fn ssh_channel_get_exit_status(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_get_session(channel: ssh_channel) -> ssh_session;
}
extern "C" {
    pub fn ssh_channel_is_closed(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_is_eof(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_is_open(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_new(session: ssh_session) -> ssh_channel;
}
extern "C" {
    pub fn ssh_channel_open_auth_agent(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_open_forward(
        channel: ssh_channel,
        remotehost: *const ::std::os::raw::c_char,
        remoteport: ::std::os::raw::c_int,
        sourcehost: *const ::std::os::raw::c_char,
        localport: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_open_forward_unix(
        channel: ssh_channel,
        remotepath: *const ::std::os::raw::c_char,
        sourcehost: *const ::std::os::raw::c_char,
        localport: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_open_session(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_open_x11(
        channel: ssh_channel,
        orig_addr: *const ::std::os::raw::c_char,
        orig_port: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_poll(
        channel: ssh_channel,
        is_stderr: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_poll_timeout(
        channel: ssh_channel,
        timeout: ::std::os::raw::c_int,
        is_stderr: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_read(
        channel: ssh_channel,
        dest: *mut ::std::os::raw::c_void,
        count: u32,
        is_stderr: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_read_timeout(
        channel: ssh_channel,
        dest: *mut ::std::os::raw::c_void,
        count: u32,
        is_stderr: ::std::os::raw::c_int,
        timeout_ms: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_read_nonblocking(
        channel: ssh_channel,
        dest: *mut ::std::os::raw::c_void,
        count: u32,
        is_stderr: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_env(
        channel: ssh_channel,
        name: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_exec(
        channel: ssh_channel,
        cmd: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_pty(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_pty_size(
        channel: ssh_channel,
        term: *const ::std::os::raw::c_char,
        cols: ::std::os::raw::c_int,
        rows: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_shell(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_send_signal(
        channel: ssh_channel,
        signum: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_send_break(
        channel: ssh_channel,
        length: u32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_sftp(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_subsystem(
        channel: ssh_channel,
        subsystem: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_x11(
        channel: ssh_channel,
        single_connection: ::std::os::raw::c_int,
        protocol: *const ::std::os::raw::c_char,
        cookie: *const ::std::os::raw::c_char,
        screen_number: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_auth_agent(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_send_eof(channel: ssh_channel) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_select(
        readchans: *mut ssh_channel,
        writechans: *mut ssh_channel,
        exceptchans: *mut ssh_channel,
        timeout: *mut timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_set_blocking(channel: ssh_channel, blocking: ::std::os::raw::c_int);
}
extern "C" {
    pub fn ssh_channel_set_counter(channel: ssh_channel, counter: ssh_counter);
}
extern "C" {
    pub fn ssh_channel_write(
        channel: ssh_channel,
        data: *const ::std::os::raw::c_void,
        len: u32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_write_stderr(
        channel: ssh_channel,
        data: *const ::std::os::raw::c_void,
        len: u32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_window_size(channel: ssh_channel) -> u32;
}
extern "C" {
    pub fn ssh_basename(path: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_clean_pubkey_hash(hash: *mut *mut ::std::os::raw::c_uchar);
}
extern "C" {
    pub fn ssh_connect(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_connector_new(session: ssh_session) -> ssh_connector;
}
extern "C" {
    pub fn ssh_connector_free(connector: ssh_connector);
}
extern "C" {
    pub fn ssh_connector_set_in_channel(
        connector: ssh_connector,
        channel: ssh_channel,
        flags: ssh_connector_flags_e,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_connector_set_out_channel(
        connector: ssh_connector,
        channel: ssh_channel,
        flags: ssh_connector_flags_e,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_connector_set_in_fd(connector: ssh_connector, fd: socket_t);
}
extern "C" {
    pub fn ssh_connector_set_out_fd(connector: ssh_connector, fd: socket_t);
}
extern "C" {
    pub fn ssh_copyright() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_disconnect(session: ssh_session);
}
extern "C" {
    pub fn ssh_dirname(path: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_finalize() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_accept_forward(
        session: ssh_session,
        timeout_ms: ::std::os::raw::c_int,
        destination_port: *mut ::std::os::raw::c_int,
    ) -> ssh_channel;
}
extern "C" {
    pub fn ssh_channel_cancel_forward(
        session: ssh_session,
        address: *const ::std::os::raw::c_char,
        port: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_listen_forward(
        session: ssh_session,
        address: *const ::std::os::raw::c_char,
        port: ::std::os::raw::c_int,
        bound_port: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_free(session: ssh_session);
}
extern "C" {
    pub fn ssh_get_disconnect_message(session: ssh_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_get_error(error: *mut ::std::os::raw::c_void) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_get_error_code(error: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_get_fd(session: ssh_session) -> socket_t;
}
extern "C" {
    pub fn ssh_get_hexa(
        what: *const ::std::os::raw::c_uchar,
        len: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_get_issue_banner(session: ssh_session) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_get_openssh_version(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_get_server_publickey(
        session: ssh_session,
        key: *mut ssh_key,
    ) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_publickey_hash_type {
    SSH_PUBLICKEY_HASH_SHA1 = 0,
    SSH_PUBLICKEY_HASH_MD5 = 1,
    SSH_PUBLICKEY_HASH_SHA256 = 2,
}
extern "C" {
    pub fn ssh_get_publickey_hash(
        key: ssh_key,
        type_: ssh_publickey_hash_type,
        hash: *mut *mut ::std::os::raw::c_uchar,
        hlen: *mut usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_get_pubkey_hash(
        session: ssh_session,
        hash: *mut *mut ::std::os::raw::c_uchar,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_forward_accept(
        session: ssh_session,
        timeout_ms: ::std::os::raw::c_int,
    ) -> ssh_channel;
}
extern "C" {
    pub fn ssh_forward_cancel(
        session: ssh_session,
        address: *const ::std::os::raw::c_char,
        port: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_forward_listen(
        session: ssh_session,
        address: *const ::std::os::raw::c_char,
        port: ::std::os::raw::c_int,
        bound_port: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_get_publickey(session: ssh_session, key: *mut ssh_key) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_write_knownhost(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_dump_knownhost(session: ssh_session) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_is_server_known(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_print_hexa(
        descr: *const ::std::os::raw::c_char,
        what: *const ::std::os::raw::c_uchar,
        len: usize,
    );
}
extern "C" {
    pub fn ssh_get_random(
        where_: *mut ::std::os::raw::c_void,
        len: ::std::os::raw::c_int,
        strong: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_get_version(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_get_status(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_get_poll_flags(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_init() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_is_blocking(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_is_connected(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_knownhosts_entry_free(entry: *mut ssh_knownhosts_entry);
}
extern "C" {
    pub fn ssh_known_hosts_parse_line(
        host: *const ::std::os::raw::c_char,
        line: *const ::std::os::raw::c_char,
        entry: *mut *mut ssh_knownhosts_entry,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_session_has_known_hosts_entry(session: ssh_session) -> ssh_known_hosts_e;
}
extern "C" {
    pub fn ssh_session_export_known_hosts_entry(
        session: ssh_session,
        pentry_string: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_session_update_known_hosts(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_session_get_known_hosts_entry(
        session: ssh_session,
        pentry: *mut *mut ssh_knownhosts_entry,
    ) -> ssh_known_hosts_e;
}
extern "C" {
    pub fn ssh_session_is_known_server(session: ssh_session) -> ssh_known_hosts_e;
}
extern "C" {
    pub fn ssh_set_log_level(level: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_get_log_level() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_get_log_userdata() -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn ssh_set_log_userdata(data: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_vlog(
        verbosity: ::std::os::raw::c_int,
        function: *const ::std::os::raw::c_char,
        format: *const ::std::os::raw::c_char,
        va: *mut va_list,
    );
}
extern "C" {
    pub fn ssh_log(
        session: ssh_session,
        prioriry: ::std::os::raw::c_int,
        format: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    pub fn ssh_message_channel_request_open_reply_accept(msg: ssh_message) -> ssh_channel;
}
extern "C" {
    pub fn ssh_message_channel_request_open_reply_accept_channel(
        msg: ssh_message,
        chan: ssh_channel,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_channel_request_reply_success(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_free(msg: ssh_message);
}
extern "C" {
    pub fn ssh_message_get(session: ssh_session) -> ssh_message;
}
extern "C" {
    pub fn ssh_message_subtype(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_type(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_mkdir(
        pathname: *const ::std::os::raw::c_char,
        mode: mode_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_new() -> ssh_session;
}
extern "C" {
    pub fn ssh_options_copy(src: ssh_session, dest: *mut ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_options_getopt(
        session: ssh_session,
        argcptr: *mut ::std::os::raw::c_int,
        argv: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_options_parse_config(
        session: ssh_session,
        filename: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_options_set(
        session: ssh_session,
        type_: ssh_options_e,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_options_get(
        session: ssh_session,
        type_: ssh_options_e,
        value: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_options_get_port(
        session: ssh_session,
        port_target: *mut ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pcap_file_close(pcap: ssh_pcap_file) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pcap_file_free(pcap: ssh_pcap_file);
}
extern "C" {
    pub fn ssh_pcap_file_new() -> ssh_pcap_file;
}
extern "C" {
    pub fn ssh_pcap_file_open(
        pcap: ssh_pcap_file,
        filename: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
pub type ssh_auth_callback = ::std::option::Option<
    unsafe extern "C" fn(
        prompt: *const ::std::os::raw::c_char,
        buf: *mut ::std::os::raw::c_char,
        len: usize,
        echo: ::std::os::raw::c_int,
        verify: ::std::os::raw::c_int,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    pub fn ssh_key_new() -> ssh_key;
}
extern "C" {
    pub fn ssh_key_free(key: ssh_key);
}
extern "C" {
    pub fn ssh_key_type(key: ssh_key) -> ssh_keytypes_e;
}
extern "C" {
    pub fn ssh_key_type_to_char(type_: ssh_keytypes_e) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_key_type_from_name(name: *const ::std::os::raw::c_char) -> ssh_keytypes_e;
}
extern "C" {
    pub fn ssh_key_is_public(k: ssh_key) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_key_is_private(k: ssh_key) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_key_cmp(k1: ssh_key, k2: ssh_key, what: ssh_keycmp_e) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_generate(
        type_: ssh_keytypes_e,
        parameter: ::std::os::raw::c_int,
        pkey: *mut ssh_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_import_privkey_base64(
        b64_key: *const ::std::os::raw::c_char,
        passphrase: *const ::std::os::raw::c_char,
        auth_fn: ssh_auth_callback,
        auth_data: *mut ::std::os::raw::c_void,
        pkey: *mut ssh_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_export_privkey_base64(
        privkey: ssh_key,
        passphrase: *const ::std::os::raw::c_char,
        auth_fn: ssh_auth_callback,
        auth_data: *mut ::std::os::raw::c_void,
        b64_key: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_import_privkey_file(
        filename: *const ::std::os::raw::c_char,
        passphrase: *const ::std::os::raw::c_char,
        auth_fn: ssh_auth_callback,
        auth_data: *mut ::std::os::raw::c_void,
        pkey: *mut ssh_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_export_privkey_file(
        privkey: ssh_key,
        passphrase: *const ::std::os::raw::c_char,
        auth_fn: ssh_auth_callback,
        auth_data: *mut ::std::os::raw::c_void,
        filename: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_copy_cert_to_privkey(
        cert_key: ssh_key,
        privkey: ssh_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_import_pubkey_base64(
        b64_key: *const ::std::os::raw::c_char,
        type_: ssh_keytypes_e,
        pkey: *mut ssh_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_import_pubkey_file(
        filename: *const ::std::os::raw::c_char,
        pkey: *mut ssh_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_import_cert_base64(
        b64_cert: *const ::std::os::raw::c_char,
        type_: ssh_keytypes_e,
        pkey: *mut ssh_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_import_cert_file(
        filename: *const ::std::os::raw::c_char,
        pkey: *mut ssh_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_export_privkey_to_pubkey(
        privkey: ssh_key,
        pkey: *mut ssh_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_export_pubkey_base64(
        key: ssh_key,
        b64_key: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_export_pubkey_file(
        key: ssh_key,
        filename: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_pki_key_ecdsa_name(key: ssh_key) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_get_fingerprint_hash(
        type_: ssh_publickey_hash_type,
        hash: *mut ::std::os::raw::c_uchar,
        len: usize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_print_hash(
        type_: ssh_publickey_hash_type,
        hash: *mut ::std::os::raw::c_uchar,
        len: usize,
    );
}
extern "C" {
    pub fn ssh_send_ignore(
        session: ssh_session,
        data: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_send_debug(
        session: ssh_session,
        message: *const ::std::os::raw::c_char,
        always_display: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_gssapi_set_creds(session: ssh_session, creds: ssh_gssapi_creds);
}
extern "C" {
    pub fn ssh_scp_accept_request(scp: ssh_scp) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_scp_close(scp: ssh_scp) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_scp_deny_request(
        scp: ssh_scp,
        reason: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_scp_free(scp: ssh_scp);
}
extern "C" {
    pub fn ssh_scp_init(scp: ssh_scp) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_scp_leave_directory(scp: ssh_scp) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_scp_new(
        session: ssh_session,
        mode: ::std::os::raw::c_int,
        location: *const ::std::os::raw::c_char,
    ) -> ssh_scp;
}
extern "C" {
    pub fn ssh_scp_pull_request(scp: ssh_scp) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_scp_push_directory(
        scp: ssh_scp,
        dirname: *const ::std::os::raw::c_char,
        mode: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_scp_push_file(
        scp: ssh_scp,
        filename: *const ::std::os::raw::c_char,
        size: usize,
        perms: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_scp_push_file64(
        scp: ssh_scp,
        filename: *const ::std::os::raw::c_char,
        size: u64,
        perms: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_scp_read(
        scp: ssh_scp,
        buffer: *mut ::std::os::raw::c_void,
        size: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_scp_request_get_filename(scp: ssh_scp) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_scp_request_get_permissions(scp: ssh_scp) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_scp_request_get_size(scp: ssh_scp) -> usize;
}
extern "C" {
    pub fn ssh_scp_request_get_size64(scp: ssh_scp) -> u64;
}
extern "C" {
    pub fn ssh_scp_request_get_warning(scp: ssh_scp) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_scp_write(
        scp: ssh_scp,
        buffer: *const ::std::os::raw::c_void,
        len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_select(
        channels: *mut ssh_channel,
        outchannels: *mut ssh_channel,
        maxfd: socket_t,
        readfds: *mut fd_set,
        timeout: *mut timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_service_request(
        session: ssh_session,
        service: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_set_agent_channel(
        session: ssh_session,
        channel: ssh_channel,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_set_agent_socket(session: ssh_session, fd: socket_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_set_blocking(session: ssh_session, blocking: ::std::os::raw::c_int);
}
extern "C" {
    pub fn ssh_set_counters(session: ssh_session, scounter: ssh_counter, rcounter: ssh_counter);
}
extern "C" {
    pub fn ssh_set_fd_except(session: ssh_session);
}
extern "C" {
    pub fn ssh_set_fd_toread(session: ssh_session);
}
extern "C" {
    pub fn ssh_set_fd_towrite(session: ssh_session);
}
extern "C" {
    pub fn ssh_silent_disconnect(session: ssh_session);
}
extern "C" {
    pub fn ssh_set_pcap_file(
        session: ssh_session,
        pcapfile: ssh_pcap_file,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_none(
        session: ssh_session,
        username: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_list(
        session: ssh_session,
        username: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_try_publickey(
        session: ssh_session,
        username: *const ::std::os::raw::c_char,
        pubkey: ssh_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_publickey(
        session: ssh_session,
        username: *const ::std::os::raw::c_char,
        privkey: ssh_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_agent(
        session: ssh_session,
        username: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_publickey_auto_get_current_identity(
        session: ssh_session,
        value: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_publickey_auto(
        session: ssh_session,
        username: *const ::std::os::raw::c_char,
        passphrase: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_password(
        session: ssh_session,
        username: *const ::std::os::raw::c_char,
        password: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_kbdint(
        session: ssh_session,
        user: *const ::std::os::raw::c_char,
        submethods: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_kbdint_getinstruction(
        session: ssh_session,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_userauth_kbdint_getname(session: ssh_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_userauth_kbdint_getnprompts(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_kbdint_getprompt(
        session: ssh_session,
        i: ::std::os::raw::c_uint,
        echo: *mut ::std::os::raw::c_char,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_userauth_kbdint_getnanswers(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_kbdint_getanswer(
        session: ssh_session,
        i: ::std::os::raw::c_uint,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_userauth_kbdint_setanswer(
        session: ssh_session,
        i: ::std::os::raw::c_uint,
        answer: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_gssapi(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_version(req_version: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_string_burn(str_: ssh_string);
}
extern "C" {
    pub fn ssh_string_copy(str_: ssh_string) -> ssh_string;
}
extern "C" {
    pub fn ssh_string_data(str_: ssh_string) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn ssh_string_fill(
        str_: ssh_string,
        data: *const ::std::os::raw::c_void,
        len: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_string_free(str_: ssh_string);
}
extern "C" {
    pub fn ssh_string_from_char(what: *const ::std::os::raw::c_char) -> ssh_string;
}
extern "C" {
    pub fn ssh_string_len(str_: ssh_string) -> usize;
}
extern "C" {
    pub fn ssh_string_new(size: usize) -> ssh_string;
}
extern "C" {
    pub fn ssh_string_get_char(str_: ssh_string) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_string_to_char(str_: ssh_string) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_string_free_char(s: *mut ::std::os::raw::c_char);
}
extern "C" {
    pub fn ssh_getpass(
        prompt: *const ::std::os::raw::c_char,
        buf: *mut ::std::os::raw::c_char,
        len: usize,
        echo: ::std::os::raw::c_int,
        verify: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
pub type ssh_event_callback = ::std::option::Option<
    unsafe extern "C" fn(
        fd: socket_t,
        revents: ::std::os::raw::c_int,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    pub fn ssh_event_new() -> ssh_event;
}
extern "C" {
    pub fn ssh_event_add_fd(
        event: ssh_event,
        fd: socket_t,
        events: ::std::os::raw::c_short,
        cb: ssh_event_callback,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_event_add_session(event: ssh_event, session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_event_add_connector(
        event: ssh_event,
        connector: ssh_connector,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_event_dopoll(
        event: ssh_event,
        timeout: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_event_remove_fd(event: ssh_event, fd: socket_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_event_remove_session(
        event: ssh_event,
        session: ssh_session,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_event_remove_connector(
        event: ssh_event,
        connector: ssh_connector,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_event_free(event: ssh_event);
}
extern "C" {
    pub fn ssh_get_clientbanner(session: ssh_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_get_serverbanner(session: ssh_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_get_kex_algo(session: ssh_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_get_cipher_in(session: ssh_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_get_cipher_out(session: ssh_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_get_hmac_in(session: ssh_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_get_hmac_out(session: ssh_session) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_buffer_new() -> ssh_buffer;
}
extern "C" {
    pub fn ssh_buffer_free(buffer: ssh_buffer);
}
extern "C" {
    pub fn ssh_buffer_reinit(buffer: ssh_buffer) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_buffer_add_data(
        buffer: ssh_buffer,
        data: *const ::std::os::raw::c_void,
        len: u32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_buffer_get_data(
        buffer: ssh_buffer,
        data: *mut ::std::os::raw::c_void,
        requestedlen: u32,
    ) -> u32;
}
extern "C" {
    pub fn ssh_buffer_get(buffer: ssh_buffer) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn ssh_buffer_get_len(buffer: ssh_buffer) -> u32;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_private_key_struct {
    _unused: [u8; 0],
}
pub type ssh_private_key = *mut ssh_private_key_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_public_key_struct {
    _unused: [u8; 0],
}
pub type ssh_public_key = *mut ssh_public_key_struct;
extern "C" {
    pub fn ssh_auth_list(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_offer_pubkey(
        session: ssh_session,
        username: *const ::std::os::raw::c_char,
        type_: ::std::os::raw::c_int,
        publickey: ssh_string,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_pubkey(
        session: ssh_session,
        username: *const ::std::os::raw::c_char,
        publickey: ssh_string,
        privatekey: ssh_private_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_agent_pubkey(
        session: ssh_session,
        username: *const ::std::os::raw::c_char,
        publickey: ssh_public_key,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_autopubkey(
        session: ssh_session,
        passphrase: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_userauth_privatekey_file(
        session: ssh_session,
        username: *const ::std::os::raw::c_char,
        filename: *const ::std::os::raw::c_char,
        passphrase: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_publickey_to_file(
        session: ssh_session,
        file: *const ::std::os::raw::c_char,
        pubkey: ssh_string,
        type_: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_try_publickey_from_file(
        session: ssh_session,
        keyfile: *const ::std::os::raw::c_char,
        publickey: *mut ssh_string,
        type_: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_privatekey_type(privatekey: ssh_private_key) -> ssh_keytypes_e;
}
extern "C" {
    pub fn ssh_get_pubkey(session: ssh_session) -> ssh_string;
}
extern "C" {
    pub fn ssh_message_retrieve(session: ssh_session, packettype: u32) -> ssh_message;
}
extern "C" {
    pub fn ssh_message_auth_publickey(msg: ssh_message) -> ssh_public_key;
}
pub type ssh_callback_int = ::std::option::Option<
    unsafe extern "C" fn(code: ::std::os::raw::c_int, user: *mut ::std::os::raw::c_void),
>;
pub type ssh_callback_data = ::std::option::Option<
    unsafe extern "C" fn(
        data: *const ::std::os::raw::c_void,
        len: usize,
        user: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_callback_int_int = ::std::option::Option<
    unsafe extern "C" fn(
        code: ::std::os::raw::c_int,
        errno_code: ::std::os::raw::c_int,
        user: *mut ::std::os::raw::c_void,
    ),
>;
pub type ssh_message_callback = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: ssh_session,
        message: ssh_message,
        user: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_channel_callback_int = ::std::option::Option<
    unsafe extern "C" fn(
        channel: ssh_channel,
        code: ::std::os::raw::c_int,
        user: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_channel_callback_data = ::std::option::Option<
    unsafe extern "C" fn(
        channel: ssh_channel,
        code: ::std::os::raw::c_int,
        data: *mut ::std::os::raw::c_void,
        len: usize,
        user: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_log_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        priority: ::std::os::raw::c_int,
        message: *const ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ),
>;
pub type ssh_logging_callback = ::std::option::Option<
    unsafe extern "C" fn(
        priority: ::std::os::raw::c_int,
        function: *const ::std::os::raw::c_char,
        buffer: *const ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ),
>;
pub type ssh_status_callback = ::std::option::Option<
    unsafe extern "C" fn(session: ssh_session, status: f32, userdata: *mut ::std::os::raw::c_void),
>;
pub type ssh_global_request_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        message: ssh_message,
        userdata: *mut ::std::os::raw::c_void,
    ),
>;
pub type ssh_channel_open_request_x11_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        originator_address: *const ::std::os::raw::c_char,
        originator_port: ::std::os::raw::c_int,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ssh_channel,
>;
pub type ssh_channel_open_request_auth_agent_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ssh_channel,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_callbacks_struct {
    pub size: usize,
    pub userdata: *mut ::std::os::raw::c_void,
    pub auth_function: ssh_auth_callback,
    pub log_function: ssh_log_callback,
    pub connect_status_function: ::std::option::Option<
        unsafe extern "C" fn(userdata: *mut ::std::os::raw::c_void, status: f32),
    >,
    pub global_request_function: ssh_global_request_callback,
    pub channel_open_request_x11_function: ssh_channel_open_request_x11_callback,
    pub channel_open_request_auth_agent_function: ssh_channel_open_request_auth_agent_callback,
}
pub type ssh_callbacks = *mut ssh_callbacks_struct;
pub type ssh_auth_password_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        user: *const ::std::os::raw::c_char,
        password: *const ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_auth_none_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        user: *const ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_auth_gssapi_mic_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        user: *const ::std::os::raw::c_char,
        principal: *const ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_auth_pubkey_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        user: *const ::std::os::raw::c_char,
        pubkey: *mut ssh_key_struct,
        signature_state: ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_service_request_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        service: *const ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_channel_open_request_session_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ssh_channel,
>;
pub type ssh_gssapi_select_oid_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        user: *const ::std::os::raw::c_char,
        n_oid: ::std::os::raw::c_int,
        oids: *mut ssh_string,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ssh_string,
>;
pub type ssh_gssapi_accept_sec_ctx_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        input_token: ssh_string,
        output_token: *mut ssh_string,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_gssapi_verify_mic_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        mic: ssh_string,
        mic_buffer: *mut ::std::os::raw::c_void,
        mic_buffer_size: usize,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_server_callbacks_struct {
    pub size: usize,
    pub userdata: *mut ::std::os::raw::c_void,
    pub auth_password_function: ssh_auth_password_callback,
    pub auth_none_function: ssh_auth_none_callback,
    pub auth_gssapi_mic_function: ssh_auth_gssapi_mic_callback,
    pub auth_pubkey_function: ssh_auth_pubkey_callback,
    pub service_request_function: ssh_service_request_callback,
    pub channel_open_request_session_function: ssh_channel_open_request_session_callback,
    pub gssapi_select_oid_function: ssh_gssapi_select_oid_callback,
    pub gssapi_accept_sec_ctx_function: ssh_gssapi_accept_sec_ctx_callback,
    pub gssapi_verify_mic_function: ssh_gssapi_verify_mic_callback,
}
pub type ssh_server_callbacks = *mut ssh_server_callbacks_struct;
extern "C" {
    pub fn ssh_set_server_callbacks(
        session: ssh_session,
        cb: ssh_server_callbacks,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_socket_callbacks_struct {
    pub userdata: *mut ::std::os::raw::c_void,
    pub data: ssh_callback_data,
    pub controlflow: ssh_callback_int,
    pub exception: ssh_callback_int_int,
    pub connected: ssh_callback_int_int,
}
pub type ssh_socket_callbacks = *mut ssh_socket_callbacks_struct;
pub type ssh_packet_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        type_: u8,
        packet: ssh_buffer,
        user: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_packet_callbacks_struct {
    pub start: u8,
    pub n_callbacks: u8,
    pub callbacks: *mut ssh_packet_callback,
    pub user: *mut ::std::os::raw::c_void,
}
pub type ssh_packet_callbacks = *mut ssh_packet_callbacks_struct;
extern "C" {
    pub fn ssh_set_callbacks(session: ssh_session, cb: ssh_callbacks) -> ::std::os::raw::c_int;
}
pub type ssh_channel_data_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        data: *mut ::std::os::raw::c_void,
        len: u32,
        is_stderr: ::std::os::raw::c_int,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_channel_eof_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        userdata: *mut ::std::os::raw::c_void,
    ),
>;
pub type ssh_channel_close_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        userdata: *mut ::std::os::raw::c_void,
    ),
>;
pub type ssh_channel_signal_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        signal: *const ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ),
>;
pub type ssh_channel_exit_status_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        exit_status: ::std::os::raw::c_int,
        userdata: *mut ::std::os::raw::c_void,
    ),
>;
pub type ssh_channel_exit_signal_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        signal: *const ::std::os::raw::c_char,
        core: ::std::os::raw::c_int,
        errmsg: *const ::std::os::raw::c_char,
        lang: *const ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ),
>;
pub type ssh_channel_pty_request_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        term: *const ::std::os::raw::c_char,
        width: ::std::os::raw::c_int,
        height: ::std::os::raw::c_int,
        pxwidth: ::std::os::raw::c_int,
        pwheight: ::std::os::raw::c_int,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_channel_shell_request_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_channel_auth_agent_req_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        userdata: *mut ::std::os::raw::c_void,
    ),
>;
pub type ssh_channel_x11_req_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        single_connection: ::std::os::raw::c_int,
        auth_protocol: *const ::std::os::raw::c_char,
        auth_cookie: *const ::std::os::raw::c_char,
        screen_number: u32,
        userdata: *mut ::std::os::raw::c_void,
    ),
>;
pub type ssh_channel_pty_window_change_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        width: ::std::os::raw::c_int,
        height: ::std::os::raw::c_int,
        pxwidth: ::std::os::raw::c_int,
        pwheight: ::std::os::raw::c_int,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_channel_exec_request_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        command: *const ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_channel_env_request_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        env_name: *const ::std::os::raw::c_char,
        env_value: *const ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_channel_subsystem_request_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        subsystem: *const ::std::os::raw::c_char,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type ssh_channel_write_wontblock_callback = ::std::option::Option<
    unsafe extern "C" fn(
        session: ssh_session,
        channel: ssh_channel,
        bytes: usize,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_channel_callbacks_struct {
    pub size: usize,
    pub userdata: *mut ::std::os::raw::c_void,
    pub channel_data_function: ssh_channel_data_callback,
    pub channel_eof_function: ssh_channel_eof_callback,
    pub channel_close_function: ssh_channel_close_callback,
    pub channel_signal_function: ssh_channel_signal_callback,
    pub channel_exit_status_function: ssh_channel_exit_status_callback,
    pub channel_exit_signal_function: ssh_channel_exit_signal_callback,
    pub channel_pty_request_function: ssh_channel_pty_request_callback,
    pub channel_shell_request_function: ssh_channel_shell_request_callback,
    pub channel_auth_agent_req_function: ssh_channel_auth_agent_req_callback,
    pub channel_x11_req_function: ssh_channel_x11_req_callback,
    pub channel_pty_window_change_function: ssh_channel_pty_window_change_callback,
    pub channel_exec_request_function: ssh_channel_exec_request_callback,
    pub channel_env_request_function: ssh_channel_env_request_callback,
    pub channel_subsystem_request_function: ssh_channel_subsystem_request_callback,
    pub channel_write_wontblock_function: ssh_channel_write_wontblock_callback,
}
pub type ssh_channel_callbacks = *mut ssh_channel_callbacks_struct;
extern "C" {
    pub fn ssh_set_channel_callbacks(
        channel: ssh_channel,
        cb: ssh_channel_callbacks,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_add_channel_callbacks(
        channel: ssh_channel,
        cb: ssh_channel_callbacks,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_remove_channel_callbacks(
        channel: ssh_channel,
        cb: ssh_channel_callbacks,
    ) -> ::std::os::raw::c_int;
}
pub type ssh_thread_callback = ::std::option::Option<
    unsafe extern "C" fn(lock: *mut *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
pub type ssh_thread_id_callback =
    ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_ulong>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_threads_callbacks_struct {
    pub type_: *const ::std::os::raw::c_char,
    pub mutex_init: ssh_thread_callback,
    pub mutex_destroy: ssh_thread_callback,
    pub mutex_lock: ssh_thread_callback,
    pub mutex_unlock: ssh_thread_callback,
    pub thread_id: ssh_thread_id_callback,
}
extern "C" {
    pub fn ssh_threads_set_callbacks(
        cb: *mut ssh_threads_callbacks_struct,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_threads_get_default() -> *mut ssh_threads_callbacks_struct;
}
extern "C" {
    pub fn ssh_threads_get_pthread() -> *mut ssh_threads_callbacks_struct;
}
extern "C" {
    pub fn ssh_threads_get_noop() -> *mut ssh_threads_callbacks_struct;
}
extern "C" {
    pub fn ssh_set_log_callback(cb: ssh_logging_callback) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_get_log_callback() -> ssh_logging_callback;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ssh_bind_options_e {
    SSH_BIND_OPTIONS_BINDADDR = 0,
    SSH_BIND_OPTIONS_BINDPORT = 1,
    SSH_BIND_OPTIONS_BINDPORT_STR = 2,
    SSH_BIND_OPTIONS_HOSTKEY = 3,
    SSH_BIND_OPTIONS_DSAKEY = 4,
    SSH_BIND_OPTIONS_RSAKEY = 5,
    SSH_BIND_OPTIONS_BANNER = 6,
    SSH_BIND_OPTIONS_LOG_VERBOSITY = 7,
    SSH_BIND_OPTIONS_LOG_VERBOSITY_STR = 8,
    SSH_BIND_OPTIONS_ECDSAKEY = 9,
    SSH_BIND_OPTIONS_IMPORT_KEY = 10,
    SSH_BIND_OPTIONS_KEY_EXCHANGE = 11,
    SSH_BIND_OPTIONS_CIPHERS_C_S = 12,
    SSH_BIND_OPTIONS_CIPHERS_S_C = 13,
    SSH_BIND_OPTIONS_HMAC_C_S = 14,
    SSH_BIND_OPTIONS_HMAC_S_C = 15,
    SSH_BIND_OPTIONS_CONFIG_DIR = 16,
    SSH_BIND_OPTIONS_PUBKEY_ACCEPTED_KEY_TYPES = 17,
    SSH_BIND_OPTIONS_HOSTKEY_ALGORITHMS = 18,
    SSH_BIND_OPTIONS_PROCESS_CONFIG = 19,
    SSH_BIND_OPTIONS_MODULI = 20,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_bind_struct {
    _unused: [u8; 0],
}
pub type ssh_bind = *mut ssh_bind_struct;
pub type ssh_bind_incoming_connection_callback = ::std::option::Option<
    unsafe extern "C" fn(sshbind: ssh_bind, userdata: *mut ::std::os::raw::c_void),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ssh_bind_callbacks_struct {
    pub size: usize,
    pub incoming_connection: ssh_bind_incoming_connection_callback,
}
pub type ssh_bind_callbacks = *mut ssh_bind_callbacks_struct;
extern "C" {
    pub fn ssh_bind_new() -> ssh_bind;
}
extern "C" {
    pub fn ssh_bind_options_set(
        sshbind: ssh_bind,
        type_: ssh_bind_options_e,
        value: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_bind_options_parse_config(
        sshbind: ssh_bind,
        filename: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_bind_listen(ssh_bind_o: ssh_bind) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_bind_set_callbacks(
        sshbind: ssh_bind,
        callbacks: ssh_bind_callbacks,
        userdata: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_bind_set_blocking(ssh_bind_o: ssh_bind, blocking: ::std::os::raw::c_int);
}
extern "C" {
    pub fn ssh_bind_get_fd(ssh_bind_o: ssh_bind) -> socket_t;
}
extern "C" {
    pub fn ssh_bind_set_fd(ssh_bind_o: ssh_bind, fd: socket_t);
}
extern "C" {
    pub fn ssh_bind_fd_toaccept(ssh_bind_o: ssh_bind);
}
extern "C" {
    pub fn ssh_bind_accept(ssh_bind_o: ssh_bind, session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_bind_accept_fd(
        ssh_bind_o: ssh_bind,
        session: ssh_session,
        fd: socket_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_gssapi_get_creds(session: ssh_session) -> ssh_gssapi_creds;
}
extern "C" {
    pub fn ssh_handle_key_exchange(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_server_init_kex(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_bind_free(ssh_bind_o: ssh_bind);
}
extern "C" {
    pub fn ssh_set_auth_methods(session: ssh_session, auth_methods: ::std::os::raw::c_int);
}
extern "C" {
    pub fn ssh_message_reply_default(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_auth_user(msg: ssh_message) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_auth_password(msg: ssh_message) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_auth_pubkey(msg: ssh_message) -> ssh_key;
}
extern "C" {
    pub fn ssh_message_auth_kbdint_is_response(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_auth_publickey_state(msg: ssh_message) -> ssh_publickey_state_e;
}
extern "C" {
    pub fn ssh_message_auth_reply_success(
        msg: ssh_message,
        partial: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_auth_reply_pk_ok(
        msg: ssh_message,
        algo: ssh_string,
        pubkey: ssh_string,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_auth_reply_pk_ok_simple(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_auth_set_methods(
        msg: ssh_message,
        methods: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_auth_interactive_request(
        msg: ssh_message,
        name: *const ::std::os::raw::c_char,
        instruction: *const ::std::os::raw::c_char,
        num_prompts: ::std::os::raw::c_uint,
        prompts: *mut *const ::std::os::raw::c_char,
        echo: *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_service_reply_success(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_service_service(msg: ssh_message) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_global_request_reply_success(
        msg: ssh_message,
        bound_port: u16,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_set_message_callback(
        session: ssh_session,
        ssh_bind_message_callback: ::std::option::Option<
            unsafe extern "C" fn(
                session: ssh_session,
                msg: ssh_message,
                data: *mut ::std::os::raw::c_void,
            ) -> ::std::os::raw::c_int,
        >,
        data: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn ssh_execute_message_callbacks(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_channel_request_open_originator(
        msg: ssh_message,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_channel_request_open_originator_port(
        msg: ssh_message,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_channel_request_open_destination(
        msg: ssh_message,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_channel_request_open_destination_port(
        msg: ssh_message,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_channel_request_channel(msg: ssh_message) -> ssh_channel;
}
extern "C" {
    pub fn ssh_message_channel_request_pty_term(msg: ssh_message) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_channel_request_pty_width(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_channel_request_pty_height(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_channel_request_pty_pxwidth(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_channel_request_pty_pxheight(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_channel_request_env_name(msg: ssh_message) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_channel_request_env_value(msg: ssh_message)
        -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_channel_request_command(msg: ssh_message) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_channel_request_subsystem(msg: ssh_message)
        -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_channel_request_x11_single_connection(
        msg: ssh_message,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_channel_request_x11_auth_protocol(
        msg: ssh_message,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_channel_request_x11_auth_cookie(
        msg: ssh_message,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_channel_request_x11_screen_number(msg: ssh_message)
        -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_message_global_request_address(msg: ssh_message) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn ssh_message_global_request_port(msg: ssh_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_open_reverse_forward(
        channel: ssh_channel,
        remotehost: *const ::std::os::raw::c_char,
        remoteport: ::std::os::raw::c_int,
        sourcehost: *const ::std::os::raw::c_char,
        localport: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_send_exit_status(
        channel: ssh_channel,
        exit_status: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_channel_request_send_exit_signal(
        channel: ssh_channel,
        signum: *const ::std::os::raw::c_char,
        core: ::std::os::raw::c_int,
        errmsg: *const ::std::os::raw::c_char,
        lang: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_send_keepalive(session: ssh_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn ssh_accept(session: ssh_session) -> ::std::os::raw::c_int;
}
pub type sftp_attributes = *mut sftp_attributes_struct;
pub type sftp_client_message = *mut sftp_client_message_struct;
pub type sftp_dir = *mut sftp_dir_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sftp_ext_struct {
    _unused: [u8; 0],
}
pub type sftp_ext = *mut sftp_ext_struct;
pub type sftp_file = *mut sftp_file_struct;
pub type sftp_message = *mut sftp_message_struct;
pub type sftp_packet = *mut sftp_packet_struct;
pub type sftp_request_queue = *mut sftp_request_queue_struct;
pub type sftp_session = *mut sftp_session_struct;
pub type sftp_status_message = *mut sftp_status_message_struct;
pub type sftp_statvfs_t = *mut sftp_statvfs_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sftp_session_struct {
    pub session: ssh_session,
    pub channel: ssh_channel,
    pub server_version: ::std::os::raw::c_int,
    pub client_version: ::std::os::raw::c_int,
    pub version: ::std::os::raw::c_int,
    pub queue: sftp_request_queue,
    pub id_counter: u32,
    pub errnum: ::std::os::raw::c_int,
    pub handles: *mut *mut ::std::os::raw::c_void,
    pub ext: sftp_ext,
    pub read_packet: sftp_packet,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sftp_packet_struct {
    pub sftp: sftp_session,
    pub type_: u8,
    pub payload: ssh_buffer,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sftp_file_struct {
    pub sftp: sftp_session,
    pub name: *mut ::std::os::raw::c_char,
    pub offset: u64,
    pub handle: ssh_string,
    pub eof: ::std::os::raw::c_int,
    pub nonblocking: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sftp_dir_struct {
    pub sftp: sftp_session,
    pub name: *mut ::std::os::raw::c_char,
    pub handle: ssh_string,
    pub buffer: ssh_buffer,
    pub count: u32,
    pub eof: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sftp_message_struct {
    pub sftp: sftp_session,
    pub packet_type: u8,
    pub payload: ssh_buffer,
    pub id: u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sftp_client_message_struct {
    pub sftp: sftp_session,
    pub type_: u8,
    pub id: u32,
    pub filename: *mut ::std::os::raw::c_char,
    pub flags: u32,
    pub attr: sftp_attributes,
    pub handle: ssh_string,
    pub offset: u64,
    pub len: u32,
    pub attr_num: ::std::os::raw::c_int,
    pub attrbuf: ssh_buffer,
    pub data: ssh_string,
    pub complete_message: ssh_buffer,
    pub str_data: *mut ::std::os::raw::c_char,
    pub submessage: *mut ::std::os::raw::c_char,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sftp_request_queue_struct {
    pub next: sftp_request_queue,
    pub message: sftp_message,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sftp_status_message_struct {
    pub id: u32,
    pub status: u32,
    pub error_unused: ssh_string,
    pub lang_unused: ssh_string,
    pub errormsg: *mut ::std::os::raw::c_char,
    pub langmsg: *mut ::std::os::raw::c_char,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sftp_attributes_struct {
    pub name: *mut ::std::os::raw::c_char,
    pub longname: *mut ::std::os::raw::c_char,
    pub flags: u32,
    pub type_: u8,
    pub size: u64,
    pub uid: u32,
    pub gid: u32,
    pub owner: *mut ::std::os::raw::c_char,
    pub group: *mut ::std::os::raw::c_char,
    pub permissions: u32,
    pub atime64: u64,
    pub atime: u32,
    pub atime_nseconds: u32,
    pub createtime: u64,
    pub createtime_nseconds: u32,
    pub mtime64: u64,
    pub mtime: u32,
    pub mtime_nseconds: u32,
    pub acl: ssh_string,
    pub extended_count: u32,
    pub extended_type: ssh_string,
    pub extended_data: ssh_string,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sftp_statvfs_struct {
    pub f_bsize: u64,
    pub f_frsize: u64,
    pub f_blocks: u64,
    pub f_bfree: u64,
    pub f_bavail: u64,
    pub f_files: u64,
    pub f_ffree: u64,
    pub f_favail: u64,
    pub f_fsid: u64,
    pub f_flag: u64,
    pub f_namemax: u64,
}
extern "C" {
    pub fn sftp_new(session: ssh_session) -> sftp_session;
}
extern "C" {
    pub fn sftp_new_channel(session: ssh_session, channel: ssh_channel) -> sftp_session;
}
extern "C" {
    pub fn sftp_free(sftp: sftp_session);
}
extern "C" {
    pub fn sftp_init(sftp: sftp_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_get_error(sftp: sftp_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_extensions_get_count(sftp: sftp_session) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn sftp_extensions_get_name(
        sftp: sftp_session,
        indexn: ::std::os::raw::c_uint,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn sftp_extensions_get_data(
        sftp: sftp_session,
        indexn: ::std::os::raw::c_uint,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn sftp_extension_supported(
        sftp: sftp_session,
        name: *const ::std::os::raw::c_char,
        data: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_opendir(session: sftp_session, path: *const ::std::os::raw::c_char) -> sftp_dir;
}
extern "C" {
    pub fn sftp_readdir(session: sftp_session, dir: sftp_dir) -> sftp_attributes;
}
extern "C" {
    pub fn sftp_dir_eof(dir: sftp_dir) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_stat(session: sftp_session, path: *const ::std::os::raw::c_char)
        -> sftp_attributes;
}
extern "C" {
    pub fn sftp_lstat(
        session: sftp_session,
        path: *const ::std::os::raw::c_char,
    ) -> sftp_attributes;
}
extern "C" {
    pub fn sftp_fstat(file: sftp_file) -> sftp_attributes;
}
extern "C" {
    pub fn sftp_attributes_free(file: sftp_attributes);
}
extern "C" {
    pub fn sftp_closedir(dir: sftp_dir) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_close(file: sftp_file) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_open(
        session: sftp_session,
        file: *const ::std::os::raw::c_char,
        accesstype: ::std::os::raw::c_int,
        mode: mode_t,
    ) -> sftp_file;
}
extern "C" {
    pub fn sftp_file_set_nonblocking(handle: sftp_file);
}
extern "C" {
    pub fn sftp_file_set_blocking(handle: sftp_file);
}
extern "C" {
    pub fn sftp_read(file: sftp_file, buf: *mut ::std::os::raw::c_void, count: usize) -> isize;
}
extern "C" {
    pub fn sftp_async_read_begin(file: sftp_file, len: u32) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_async_read(
        file: sftp_file,
        data: *mut ::std::os::raw::c_void,
        len: u32,
        id: u32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_write(file: sftp_file, buf: *const ::std::os::raw::c_void, count: usize) -> isize;
}
extern "C" {
    pub fn sftp_seek(file: sftp_file, new_offset: u32) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_seek64(file: sftp_file, new_offset: u64) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_tell(file: sftp_file) -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn sftp_tell64(file: sftp_file) -> u64;
}
extern "C" {
    pub fn sftp_rewind(file: sftp_file);
}
extern "C" {
    pub fn sftp_unlink(
        sftp: sftp_session,
        file: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_rmdir(
        sftp: sftp_session,
        directory: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_mkdir(
        sftp: sftp_session,
        directory: *const ::std::os::raw::c_char,
        mode: mode_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_rename(
        sftp: sftp_session,
        original: *const ::std::os::raw::c_char,
        newname: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_setstat(
        sftp: sftp_session,
        file: *const ::std::os::raw::c_char,
        attr: sftp_attributes,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_chown(
        sftp: sftp_session,
        file: *const ::std::os::raw::c_char,
        owner: uid_t,
        group: gid_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_chmod(
        sftp: sftp_session,
        file: *const ::std::os::raw::c_char,
        mode: mode_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_utimes(
        sftp: sftp_session,
        file: *const ::std::os::raw::c_char,
        times: *const timeval,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_symlink(
        sftp: sftp_session,
        target: *const ::std::os::raw::c_char,
        dest: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_readlink(
        sftp: sftp_session,
        path: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn sftp_statvfs(sftp: sftp_session, path: *const ::std::os::raw::c_char) -> sftp_statvfs_t;
}
extern "C" {
    pub fn sftp_fstatvfs(file: sftp_file) -> sftp_statvfs_t;
}
extern "C" {
    pub fn sftp_statvfs_free(statvfs_o: sftp_statvfs_t);
}
extern "C" {
    pub fn sftp_fsync(file: sftp_file) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_canonicalize_path(
        sftp: sftp_session,
        path: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn sftp_server_version(sftp: sftp_session) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_get_client_message(sftp: sftp_session) -> sftp_client_message;
}
extern "C" {
    pub fn sftp_client_message_free(msg: sftp_client_message);
}
extern "C" {
    pub fn sftp_client_message_get_type(msg: sftp_client_message) -> u8;
}
extern "C" {
    pub fn sftp_client_message_get_filename(
        msg: sftp_client_message,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn sftp_client_message_set_filename(
        msg: sftp_client_message,
        newname: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    pub fn sftp_client_message_get_data(msg: sftp_client_message) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn sftp_client_message_get_flags(msg: sftp_client_message) -> u32;
}
extern "C" {
    pub fn sftp_client_message_get_submessage(
        msg: sftp_client_message,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn sftp_send_client_message(
        sftp: sftp_session,
        msg: sftp_client_message,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_reply_name(
        msg: sftp_client_message,
        name: *const ::std::os::raw::c_char,
        attr: sftp_attributes,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_reply_handle(msg: sftp_client_message, handle: ssh_string)
        -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_handle_alloc(sftp: sftp_session, info: *mut ::std::os::raw::c_void) -> ssh_string;
}
extern "C" {
    pub fn sftp_reply_attr(
        msg: sftp_client_message,
        attr: sftp_attributes,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_handle(sftp: sftp_session, handle: ssh_string) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn sftp_reply_status(
        msg: sftp_client_message,
        status: u32,
        message: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_reply_names_add(
        msg: sftp_client_message,
        file: *const ::std::os::raw::c_char,
        longname: *const ::std::os::raw::c_char,
        attr: sftp_attributes,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_reply_names(msg: sftp_client_message) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_reply_data(
        msg: sftp_client_message,
        data: *const ::std::os::raw::c_void,
        len: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn sftp_handle_remove(sftp: sftp_session, handle: *mut ::std::os::raw::c_void);
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
    pub gp_offset: ::std::os::raw::c_uint,
    pub fp_offset: ::std::os::raw::c_uint,
    pub overflow_arg_area: *mut ::std::os::raw::c_void,
    pub reg_save_area: *mut ::std::os::raw::c_void,
}