mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: accept migration connections over TLS
Extend ReceiveListener with a TLS-backed listener variant for migration receivers. Store the TCP listener together with the server TLS configuration, wrap accepted sockets in TlsStream::new_server(), and preserver the existing listener cloning and fd polling behavior so receive-side migration code can treat TLS listeners like the existing TCP and UNIX cases. On-behalf-of: SAP sebastian.eydam@sap.com Signed-off-by: Sebastian Eydam <sebastian.eydam@cyberus-technology.de>
This commit is contained in:
committed by
Rob Bradford
parent
f3623e6403
commit
0ec2ae376b
@@ -273,7 +273,7 @@ impl WriteVolatile for TlsStream {
|
||||
|
||||
/// Carries a TLS server configuration. Intended to be turned into a [`TlsStream`]
|
||||
/// when paired with a [`TcpStream`].
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct TlsServerConfig {
|
||||
/// This config is shared between all server connections.
|
||||
config: Arc<ServerConfig>,
|
||||
|
||||
Reference in New Issue
Block a user