Skip to content

Commit

Permalink
Rename re-export of rustls-pki-types
Browse files Browse the repository at this point in the history
This is for consistence with rustls.
  • Loading branch information
ctz committed Jan 27, 2025
1 parent 02c153c commit ec1bd01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub use {
verify_cert::VerifiedPath,
};

pub use pki_types as types;
pub use pki_types;

#[cfg(feature = "alloc")]
pub use crl::{OwnedCertRevocationList, OwnedRevokedCert};
Expand Down Expand Up @@ -122,7 +122,7 @@ pub mod aws_lc_rs {
/// An array of all the verification algorithms exported by this crate.
///
/// This will be empty if the crate is built without the `ring` and `aws-lc-rs` features.
pub static ALL_VERIFICATION_ALGS: &[&dyn types::SignatureVerificationAlgorithm] = &[
pub static ALL_VERIFICATION_ALGS: &[&dyn pki_types::SignatureVerificationAlgorithm] = &[
#[cfg(feature = "ring")]
ring::ECDSA_P256_SHA256,
#[cfg(feature = "ring")]
Expand Down
5 changes: 3 additions & 2 deletions tests/better_tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ use std::fs::File;

use base64::{engine::general_purpose, Engine as _};
use bzip2::read::BzDecoder;
use pki_types::{ServerName, UnixTime};
use serde::Deserialize;

use webpki::types::{CertificateDer, SignatureVerificationAlgorithm, TrustAnchor};
use webpki::pki_types::{
CertificateDer, ServerName, SignatureVerificationAlgorithm, TrustAnchor, UnixTime,
};
use webpki::{anchor_from_trusted_cert, KeyUsage};

// All of the BetterTLS testcases use P256 keys.
Expand Down

0 comments on commit ec1bd01

Please sign in to comment.