(
config: &Config,
logs_rx: Arc<tokio::sync::Mutex<mpsc::Receiver<LogEntry>>>,
)
| 143 | } |
| 144 | |
| 145 | pub async fn run_setup( |
| 146 | config: &Config, |
| 147 | logs_rx: Arc<tokio::sync::Mutex<mpsc::Receiver<LogEntry>>>, |
| 148 | ) -> Result<TlsConfig, GatewayError> { |
| 149 | let setup_server = GatewaySetupServer::new(logs_rx, config.cert_dir.clone()); |
| 150 | let tls_config = setup_server.await_setup(config).await?; |
| 151 | Ok(tls_config) |
| 152 | } |
| 153 | |
| 154 | pub struct GatewaySetupServer { |
| 155 | key_pair: Arc<Mutex<Option<defguard_certs::RcGenKeyPair>>>, |
no test coverage detected