diff options
Diffstat (limited to 'src/rust/external/external.rs')
-rw-r--r-- | src/rust/external/external.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rust/external/external.rs b/src/rust/external/external.rs index 874c7c3153..d342fe096e 100644 --- a/src/rust/external/external.rs +++ b/src/rust/external/external.rs @@ -26,3 +26,13 @@ pub fn c_tor_version_as_new_as(platform: &str, cutoff: &str) -> bool { result == 1 } + +extern "C" { + fn tor_is_using_nss() -> c_int; +} + +/// Return true if Tor was built to use NSS. +pub fn c_tor_is_using_nss() -> bool +{ + 0 != unsafe { tor_is_using_nss() } +} |