diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-11-22 14:33:19 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-11-22 14:55:38 +0100 |
commit | 4e997895072f58524300f438423a114d390d3146 (patch) | |
tree | 035f40a750e2d3b25dce941fa936fdd806aaa250 | |
parent | b5aa499bb26ceacb31e24f32b08b00863d23e133 (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.rs | 14 |
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)?; |