Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3248327
D6252.id20873.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6252.id20873.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6252: [services] Tunnelbroker - Expose `isConfigParameterSet` function to the Rust
Attached
Detach File
Event Timeline
Log In to Comment