File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -655,6 +655,22 @@ impl Session {
655
655
name. as_ptr ( ) as _ ,
656
656
)
657
657
} ,
658
+ SshOption :: HmacCS ( name) => unsafe {
659
+ let name = CString :: new ( name) ?;
660
+ sys:: ssh_options_set (
661
+ * * sess,
662
+ sys:: ssh_options_e:: SSH_OPTIONS_HMAC_C_S ,
663
+ name. as_ptr ( ) as _ ,
664
+ )
665
+ } ,
666
+ SshOption :: HmacSC ( name) => unsafe {
667
+ let name = CString :: new ( name) ?;
668
+ sys:: ssh_options_set (
669
+ * * sess,
670
+ sys:: ssh_options_e:: SSH_OPTIONS_HMAC_S_C ,
671
+ name. as_ptr ( ) as _ ,
672
+ )
673
+ } ,
658
674
SshOption :: ProcessConfig ( value) => unsafe {
659
675
let value: c_uint = value. into ( ) ;
660
676
sys:: ssh_options_set (
@@ -1345,6 +1361,10 @@ pub enum SshOption {
1345
1361
CiphersCS ( String ) ,
1346
1362
///Set the symmetric cipher server to client as a comma-separated list.
1347
1363
CiphersSC ( String ) ,
1364
+ /// Set the MAC algorithm client to server as a comma-separated list.
1365
+ HmacCS ( String ) ,
1366
+ /// Set the MAC algorithm server to client as a comma-separated list.
1367
+ HmacSC ( String ) ,
1348
1368
/// Set it to false to disable automatic processing of per-user and system-wide OpenSSH configuration files.
1349
1369
ProcessConfig ( bool ) ,
1350
1370
/// Set the global known hosts file name
You can’t perform that action at this time.
0 commit comments