diff --git a/certval/Cargo.toml b/certval/Cargo.toml index 303286bf..2a27a167 100644 --- a/certval/Cargo.toml +++ b/certval/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "certval" -version = "0.1.3" +version = "0.1.4" description = """ Pure Rust implementation of X.509 Public Key Infrastructure Certificate validation as described in [RFC 5280] and as augmented by [RFC 5937], including support for certification path building and revocation status determination. diff --git a/certval/src/environment/pki_environment.rs b/certval/src/environment/pki_environment.rs index 890352ee..0fde8839 100644 --- a/certval/src/environment/pki_environment.rs +++ b/certval/src/environment/pki_environment.rs @@ -75,31 +75,31 @@ pub struct PkiEnvironment { //-------------------------------------------------------------------------- /// List of trait objects that provide access to trust anchors #[cfg(feature = "std")] - trust_anchor_sources: Vec>, + trust_anchor_sources: Vec>, #[cfg(not(feature = "std"))] trust_anchor_sources: Vec>, /// List of trait objects that provide access to certificates #[cfg(feature = "std")] - certificate_sources: Vec>, + certificate_sources: Vec>, #[cfg(not(feature = "std"))] certificate_sources: Vec>, /// List of trait objects that provide access to CRLs #[cfg(feature = "std")] - crl_sources: Vec>, + crl_sources: Vec>, #[cfg(not(feature = "std"))] crl_sources: Vec>, /// List of trait objects that provide access to cached revocation status determinations #[cfg(feature = "std")] - revocation_cache: Vec>, + revocation_cache: Vec>, #[cfg(not(feature = "std"))] revocation_cache: Vec>, /// List of trait objects that provide access to blocklist and last modified info #[cfg(feature = "std")] - check_remote: Vec>, + check_remote: Vec>, #[cfg(not(feature = "std"))] check_remote: Vec>, @@ -284,7 +284,7 @@ impl PkiEnvironment { /// add_trust_anchor_source adds a [`TrustAnchorSource`] object to the list used by get_trust_anchor. #[cfg(feature = "std")] - pub fn add_trust_anchor_source(&mut self, c: Box<(dyn TrustAnchorSource + Sync)>) { + pub fn add_trust_anchor_source(&mut self, c: Box<(dyn TrustAnchorSource + Send + Sync)>) { self.trust_anchor_sources.push(c); } @@ -371,7 +371,7 @@ impl PkiEnvironment { /// add_certificate_source adds a [`CertificateSource`] object to the list. #[cfg(feature = "std")] - pub fn add_certificate_source(&mut self, c: Box<(dyn CertificateSource + Sync)>) { + pub fn add_certificate_source(&mut self, c: Box<(dyn CertificateSource + Send + Sync)>) { self.certificate_sources.push(c); } @@ -388,7 +388,7 @@ impl PkiEnvironment { /// add_crl_source adds a [`CrlSource`] object to the list. #[cfg(feature = "std")] - pub fn add_crl_source(&mut self, c: Box<(dyn CrlSource + Sync)>) { + pub fn add_crl_source(&mut self, c: Box<(dyn CrlSource + Send + Sync)>) { self.crl_sources.push(c); } @@ -435,7 +435,7 @@ impl PkiEnvironment { /// add_revocation_cache adds a [`RevocationStatusCache`] object to the list. #[cfg(feature = "std")] - pub fn add_revocation_cache(&mut self, c: Box<(dyn RevocationStatusCache + Sync)>) { + pub fn add_revocation_cache(&mut self, c: Box<(dyn RevocationStatusCache + Send + Sync)>) { self.revocation_cache.push(c); } @@ -516,7 +516,7 @@ impl PkiEnvironment { /// add_check_remote adds a [`CheckRemoteResource`] object to the list. #[cfg(feature = "std")] - pub fn add_check_remote(&mut self, c: Box<(dyn CheckRemoteResource + Sync)>) { + pub fn add_check_remote(&mut self, c: Box<(dyn CheckRemoteResource + Send + Sync)>) { self.check_remote.push(c); } @@ -590,4 +590,4 @@ pub fn populate_5280_pki_environment(pe: &mut PkiEnvironment) { pe.add_verify_signature_message_callback(verify_signature_message_pqcrypto); #[cfg(feature = "pqc")] pe.add_verify_signature_message_callback(verify_signature_message_composite_pqcrypto); -} +} \ No newline at end of file