Implement SSH Phase 13.2: Complete SSH_MSG_GLOBAL_REQUEST handling
- 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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user