Implement SSH Phase 13.2: Complete SSH_MSG_GLOBAL_REQUEST handling
Some checks failed
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled

- Add SshSecurityConfig parameter to port_forward.rs
- Integrate security validation in handle_tcpip_forward
- Add validate_tcpip_forward_request call
- Modify server.rs to pass security_config to handle_global_request
- Complete SSH_MSG_GLOBAL_REQUEST processing logic
- Support tcpip-forward request with security validation
- All compilation tests passed successfully

Phase 13.1-13.2 completed: Enterprise security configuration + Global request handling
This commit is contained in:
Warren
2026-06-15 18:15:03 +08:00
parent a771a30e66
commit 66d5c35b16
4 changed files with 56 additions and 42 deletions

View File

@@ -376,10 +376,10 @@ fn handle_ssh_service_loop(
info!("Sent SSH_MSG_REQUEST_FAILURE (TCP forwarding disabled)");
continue;
}
drop(security); // 释放锁
// Phase 13: 调用PortForwardManager处理
let (success, response) = port_forward_manager.handle_global_request(&packet.payload)?;
// Phase 13.2: 调用PortForwardManager处理传递security_config
let (success, response) = port_forward_manager.handle_global_request(&packet.payload, &security)?;
drop(security); // 释放锁
if success {
if let Some(response_data) = response {