Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3244020
D6252.id21749.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.id21749.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
Fri, Nov 15, 10:28 AM (2 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2494092
Default Alt Text
D6252.id21749.diff (1 KB)
Attached To
Mode
D6252: [services] Tunnelbroker - Expose `isConfigParameterSet` function to the Rust
Attached
Detach File
Event Timeline
Log In to Comment