summaryrefslogtreecommitdiff
path: root/crates/tor-proto/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-proto/src')
-rw-r--r--crates/tor-proto/src/circuit.rs6
-rw-r--r--crates/tor-proto/src/crypto/handshake.rs2
-rw-r--r--crates/tor-proto/src/crypto/handshake/hs_ntor.rs2
-rw-r--r--crates/tor-proto/src/stream.rs6
4 files changed, 8 insertions, 8 deletions
diff --git a/crates/tor-proto/src/circuit.rs b/crates/tor-proto/src/circuit.rs
index 0868bac23..b71eb451e 100644
--- a/crates/tor-proto/src/circuit.rs
+++ b/crates/tor-proto/src/circuit.rs
@@ -41,7 +41,7 @@
pub(crate) mod celltypes;
pub(crate) mod halfcirc;
mod halfstream;
-#[cfg(feature = "onion-common")]
+#[cfg(feature = "hs-common")]
pub mod handshake;
mod path;
pub(crate) mod reactor;
@@ -317,7 +317,7 @@ impl ClientCirc {
///
/// Only onion services (and eventually) exit relays should call this
/// method.
- #[cfg(feature = "onion-service")]
+ #[cfg(feature = "hs-service")]
#[allow(clippy::missing_panics_doc, unused_variables)] // TODO hs remove
pub fn allow_stream_requests(
&self,
@@ -386,7 +386,7 @@ impl ClientCirc {
// TODO hs: let's try to enforce the "you can't extend a circuit again once
// it has been extended this way" property. We could do that with internal
// state, or some kind of a type state pattern.
- #[cfg(feature = "onion-common")]
+ #[cfg(feature = "hs-common")]
#[allow(clippy::missing_panics_doc, unused_variables)]
pub async fn extend_virtual(
&self,
diff --git a/crates/tor-proto/src/crypto/handshake.rs b/crates/tor-proto/src/crypto/handshake.rs
index e6322ac49..5fb4924d1 100644
--- a/crates/tor-proto/src/crypto/handshake.rs
+++ b/crates/tor-proto/src/crypto/handshake.rs
@@ -11,7 +11,7 @@
//! Currently, this module implements only the "ntor" handshake used
//! for circuits on today's Tor.
pub(crate) mod fast;
-#[cfg(feature = "onion-common")]
+#[cfg(feature = "hs-common")]
pub mod hs_ntor;
pub(crate) mod ntor;
#[cfg(feature = "ntor_v3")]
diff --git a/crates/tor-proto/src/crypto/handshake/hs_ntor.rs b/crates/tor-proto/src/crypto/handshake/hs_ntor.rs
index 9dcdc6103..92e849afe 100644
--- a/crates/tor-proto/src/crypto/handshake/hs_ntor.rs
+++ b/crates/tor-proto/src/crypto/handshake/hs_ntor.rs
@@ -15,7 +15,7 @@
//! This module is a work in progress, and is not actually used anywhere yet
//! or tested: please expect the API to change.
//!
-//! This module is available only when the `onion-common` feature is enabled.
+//! This module is available only when the `hs-common` feature is enabled.
//
// TODO hs: go through this code carefully and make sure that its APIs and
// behavior are still what we want.
diff --git a/crates/tor-proto/src/stream.rs b/crates/tor-proto/src/stream.rs
index f4f3ab55c..c6d6b2f03 100644
--- a/crates/tor-proto/src/stream.rs
+++ b/crates/tor-proto/src/stream.rs
@@ -11,7 +11,7 @@
mod cmdcheck;
mod data;
-#[cfg(feature = "onion-service")]
+#[cfg(feature = "hs-service")]
mod incoming;
mod params;
mod raw;
@@ -19,8 +19,8 @@ mod resolve;
pub(crate) use cmdcheck::{AnyCmdChecker, CmdChecker, StreamStatus};
pub use data::{DataReader, DataStream, DataWriter};
-#[cfg(feature = "onion-service")]
-#[cfg_attr(docsrs, doc(cfg(feature = "onion-service")))]
+#[cfg(feature = "hs-service")]
+#[cfg_attr(docsrs, doc(cfg(feature = "hs-service")))]
pub use incoming::{IncomingStream, IncomingStreamRequest};
pub use params::StreamParameters;
pub use raw::StreamReader;