summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-11-22 14:33:19 +0100
committerJustus Winter <justus@sequoia-pgp.org>2023-11-22 14:55:38 +0100
commit4e997895072f58524300f438423a114d390d3146 (patch)
tree035f40a750e2d3b25dce941fa936fdd806aaa250
parentb5aa499bb26ceacb31e24f32b08b00863d23e133 (diff)
net: Make dane::get_raw private.
- This is likely an oversight in the original commit, as it wasn't mentioned in the commit message. We don't have such an interface for wkd or hkp either.
-rw-r--r--net/src/dane.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/net/src/dane.rs b/net/src/dane.rs
index f98d00f8..ca400724 100644
--- a/net/src/dane.rs
+++ b/net/src/dane.rs
@@ -53,19 +53,7 @@ fn generate_fqdn(local: &str, domain: &str) -> Result<String> {
/// the found certificates only on validation success.
///
/// [DANE]: https://datatracker.ietf.org/doc/html/rfc7929
-///
-/// # Examples
-///
-/// ```no_run
-/// # use sequoia_net::{Result, dane};
-/// # use sequoia_openpgp::Cert;
-/// # async fn f() -> Result<()> {
-/// let email_address = "john@example.com";
-/// let certs = dane::get_raw(email_address).await?;
-/// # Ok(())
-/// # }
-/// ```
-pub async fn get_raw(email_address: impl AsRef<str>) -> Result<Vec<Vec<u8>>> {
+async fn get_raw(email_address: impl AsRef<str>) -> Result<Vec<Vec<u8>>> {
let email_address = EmailAddress::from(email_address)?;
let fqdn = generate_fqdn(&email_address.local_part, &email_address.domain)?;