#![forbid(unsafe_code)]
#![warn(missing_docs)]
#[cfg(not(any(feature = "ring", feature = "aws-lc-rs")))]
compile_error!("weirdnet-tls needs the `ring` or the `aws-lc-rs` feature");
pub mod acme;
pub mod cert;
pub mod challenge;
mod error;
pub mod renew;
pub mod resolver;
pub mod store;
#[cfg(feature = "testing")]
pub mod testing;
pub use acme::{Acme, AcmeConfig, ChallengeKind, Directory};
pub use cert::{CertInfo, CertPair};
pub use challenge::{DnsChallenge, DnsRecord, HookDns, Http01Board, ManualDns};
pub use error::{Error, Result};
pub use instant_acme;
pub use renew::{Outcome, State, Status};
pub use resolver::{Resolver, Source};
pub use rustls;
pub use store::{CertStore, FileStore, MemoryStore};
pub const ACME_TLS_ALPN: &[u8] = b"acme-tls/1";
pub fn crypto_provider() -> std::sync::Arc<rustls::crypto::CryptoProvider> {
#[cfg(feature = "aws-lc-rs")]
let p = rustls::crypto::aws_lc_rs::default_provider();
#[cfg(all(feature = "ring", not(feature = "aws-lc-rs")))]
let p = rustls::crypto::ring::default_provider();
std::sync::Arc::new(p)
}