#![no_std]
#![warn(
clippy::alloc_instead_of_core,
clippy::use_self,
clippy::std_instead_of_core
)]
#![deny(missing_docs, clippy::as_conversions)]
#![cfg_attr(webpki_docsrs, feature(doc_cfg))]
#[cfg(any(feature = "std", test))]
extern crate std;
#[cfg(any(test, feature = "alloc"))]
#[cfg_attr(test, macro_use)]
extern crate alloc;
#[macro_use]
mod der;
#[cfg(test)]
mod aws_lc_rs_algs;
mod cert;
mod end_entity;
mod error;
#[cfg(test)]
mod ring_algs;
mod rpk_entity;
pub mod sct;
mod signed_data;
mod subject_name;
mod time;
mod trust_anchor;
mod crl;
mod verify_cert;
mod x509;
#[cfg(test)]
pub(crate) mod test_utils;
pub use {
cert::Cert,
crl::{
BorrowedCertRevocationList, BorrowedRevokedCert, CertRevocationList, CrlsRequired,
ExpirationPolicy, RevocationCheckDepth, RevocationOptions, RevocationOptionsBuilder,
RevocationReason, UnknownStatusPolicy,
},
der::DerIterator,
end_entity::EndEntityCert,
error::{
DerTypeId, Error, InvalidNameContext, UnsupportedSignatureAlgorithmContext,
UnsupportedSignatureAlgorithmForPublicKeyContext,
},
rpk_entity::RawPublicKeyEntity,
trust_anchor::anchor_from_trusted_cert,
verify_cert::{
ExtendedKeyUsage, ExtendedKeyUsageValidator, IntermediateIterator, KeyPurposeId,
KeyPurposeIdIter, RequiredEkuNotFoundContext, VerifiedPath,
},
};
#[cfg(feature = "alloc")]
pub use trust_anchor::spki_for_anchor;
#[cfg(feature = "alloc")]
pub use crl::{OwnedCertRevocationList, OwnedRevokedCert};
fn public_values_eq(a: untrusted::Input<'_>, b: untrusted::Input<'_>) -> bool {
a.as_slice_less_safe() == b.as_slice_less_safe()
}