mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Merge remote-tracking branch 'tor-github/pr/406'
This commit is contained in:
commit
34cd1fc523
3 changed files with 28 additions and 27 deletions
3
src/rust/external/external.rs
vendored
3
src/rust/external/external.rs
vendored
|
@ -32,7 +32,6 @@ extern "C" {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return true if Tor was built to use NSS.
|
/// Return true if Tor was built to use NSS.
|
||||||
pub fn c_tor_is_using_nss() -> bool
|
pub fn c_tor_is_using_nss() -> bool {
|
||||||
{
|
|
||||||
0 != unsafe { tor_is_using_nss() }
|
0 != unsafe { tor_is_using_nss() }
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,7 +153,8 @@ fn have_linkauth_v1() -> bool {
|
||||||
// C_RUST_COUPLED: protover.c `protover_get_supported_protocols`
|
// C_RUST_COUPLED: protover.c `protover_get_supported_protocols`
|
||||||
pub(crate) fn get_supported_protocols_cstr() -> &'static CStr {
|
pub(crate) fn get_supported_protocols_cstr() -> &'static CStr {
|
||||||
if !have_linkauth_v1() {
|
if !have_linkauth_v1() {
|
||||||
cstr!("Cons=1-2 \
|
cstr!(
|
||||||
|
"Cons=1-2 \
|
||||||
Desc=1-2 \
|
Desc=1-2 \
|
||||||
DirCache=1-2 \
|
DirCache=1-2 \
|
||||||
HSDir=1-2 \
|
HSDir=1-2 \
|
||||||
|
@ -165,7 +166,8 @@ pub(crate) fn get_supported_protocols_cstr() -> &'static CStr {
|
||||||
Relay=1-2"
|
Relay=1-2"
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
cstr!("Cons=1-2 \
|
cstr!(
|
||||||
|
"Cons=1-2 \
|
||||||
Desc=1-2 \
|
Desc=1-2 \
|
||||||
DirCache=1-2 \
|
DirCache=1-2 \
|
||||||
HSDir=1-2 \
|
HSDir=1-2 \
|
||||||
|
|
Loading…
Add table
Reference in a new issue