proxmox/proxmox-rest-server
Max Carrara 57b4c4624b rest-server: Refactor AcceptBuilder, provide support for optional TLS
The new public function `accept_tls_optional()` is added, which
accepts both plain TCP streams and TCP streams running TLS. Plain TCP
streams are sent along via a separate channel in order to clearly
distinguish between "secure" and "insecure" connections.

Furthermore, instead of `AcceptBuilder` itself holding a reference to
an `SslAcceptor`, its public functions now take the acceptor as an
argument. The public functions' names are changed to distinguish
between their functionality in a more explicit manner:

  * `accept()` --> `accept_tls()`
  *        NEW --> `accept_tls_optional()`

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-11-27 14:28:15 +01:00
..
debian bump proxmox-rest-server to 0.4.2-1 2023-07-24 10:54:18 +02:00
examples rest-server: update example to new ApiConfig 2023-03-02 16:14:04 +01:00
src rest-server: Refactor AcceptBuilder, provide support for optional TLS 2023-11-27 14:28:15 +01:00
Cargo.toml bump proxmox-rest-server to 0.4.2-1 2023-07-24 10:54:18 +02:00