mirror of
https://git.proxmox.com/git/proxmox
synced 2025-10-04 21:13:26 +00:00
rest-server: generic certificate path types
to not require a PathBuf on the caller side Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
2f2f5cfcd8
commit
6873926dea
@ -48,8 +48,12 @@ impl TlsAcceptorBuilder {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn certificate_paths_pem(mut self, key: PathBuf, cert: PathBuf) -> Self {
|
pub fn certificate_paths_pem(
|
||||||
self.tls = Some(Tls::FilesPem(key, cert));
|
mut self,
|
||||||
|
key: impl Into<PathBuf>,
|
||||||
|
cert: impl Into<PathBuf>,
|
||||||
|
) -> Self {
|
||||||
|
self.tls = Some(Tls::FilesPem(key.into(), cert.into()));
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user