Page MenuHomePhabricator

D6252.id20873.diff
No OneTemporary

D6252.id20873.diff

diff --git a/services/tunnelbroker/src/cxx_bridge.rs b/services/tunnelbroker/src/cxx_bridge.rs
--- a/services/tunnelbroker/src/cxx_bridge.rs
+++ b/services/tunnelbroker/src/cxx_bridge.rs
@@ -53,6 +53,7 @@
include!("tunnelbroker/src/libcpp/Tunnelbroker.h");
pub fn initialize();
pub fn getConfigParameter(parameter: &str) -> Result<String>;
+ pub fn isConfigParameterSet(parameter: &str) -> Result<bool>;
pub fn isSandbox() -> Result<bool>;
pub fn sessionSignatureHandler(deviceID: &str) -> SessionSignatureResult;
pub fn getSavedNonceToSign(deviceID: &str) -> Result<String>;
diff --git a/services/tunnelbroker/src/libcpp/Tunnelbroker.h b/services/tunnelbroker/src/libcpp/Tunnelbroker.h
--- a/services/tunnelbroker/src/libcpp/Tunnelbroker.h
+++ b/services/tunnelbroker/src/libcpp/Tunnelbroker.h
@@ -5,6 +5,7 @@
void initialize();
rust::String getConfigParameter(rust::Str parameter);
+bool isConfigParameterSet(rust::Str parameter);
bool isSandbox();
SessionSignatureResult sessionSignatureHandler(rust::Str deviceID);
rust::String getSavedNonceToSign(rust::Str deviceID);
diff --git a/services/tunnelbroker/src/libcpp/Tunnelbroker.cpp b/services/tunnelbroker/src/libcpp/Tunnelbroker.cpp
--- a/services/tunnelbroker/src/libcpp/Tunnelbroker.cpp
+++ b/services/tunnelbroker/src/libcpp/Tunnelbroker.cpp
@@ -46,6 +46,11 @@
std::string{parameter})};
}
+bool isConfigParameterSet(rust::Str parameter) {
+ return comm::network::config::ConfigManager::getInstance().isParameterSet(
+ std::string{parameter});
+}
+
bool isSandbox() {
return comm::network::tools::isSandbox();
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 9:23 AM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2494092
Default Alt Text
D6252.id20873.diff (1 KB)

Event Timeline