[pbs-devel] [PATCH proxmox-backup 3/3] api2: make cipher-suites updatable
Hannes Laimer
h.laimer at proxmox.com
Thu Dec 16 17:31:09 CET 2021
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
src/api2/node/config.rs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/api2/node/config.rs b/src/api2/node/config.rs
index 0b45f34c..c6bdd3df 100644
--- a/src/api2/node/config.rs
+++ b/src/api2/node/config.rs
@@ -54,6 +54,8 @@ pub enum DeletableProperty {
acmedomain4,
/// Delete the http-proxy property.
http_proxy,
+ /// Delete the cipher-suites property.
+ cipher_suites,
}
#[api(
@@ -110,6 +112,7 @@ pub fn update_node_config(
DeletableProperty::acmedomain3 => { config.acmedomain3 = None; },
DeletableProperty::acmedomain4 => { config.acmedomain4 = None; },
DeletableProperty::http_proxy => { config.http_proxy = None; },
+ DeletableProperty::cipher_suites => { config.cipher_suites = None; },
}
}
}
@@ -121,6 +124,7 @@ pub fn update_node_config(
if update.acmedomain3.is_some() { config.acmedomain3 = update.acmedomain3; }
if update.acmedomain4.is_some() { config.acmedomain4 = update.acmedomain4; }
if update.http_proxy.is_some() { config.http_proxy = update.http_proxy; }
+ if update.cipher_suites.is_some() { config.cipher_suites = update.cipher_suites; }
crate::config::node::save_config(&config)?;
--
2.30.2
More information about the pbs-devel
mailing list