@@ -20,20 +20,15 @@ use crate::{
2020 public:: { Encapsulation , KeyData } ,
2121 reader:: { Base64Reader , Reader } ,
2222 writer:: { base64_len, Writer } ,
23- Algorithm , Error , Result , Signature ,
23+ Algorithm , Error , Fingerprint , HashAlg , Result , Signature ,
2424} ;
2525use alloc:: {
2626 borrow:: ToOwned ,
2727 string:: { String , ToString } ,
2828 vec:: Vec ,
2929} ;
3030use core:: str:: FromStr ;
31-
32- #[ cfg( feature = "fingerprint" ) ]
33- use {
34- crate :: { Fingerprint , HashAlg } ,
35- signature:: Verifier ,
36- } ;
31+ use signature:: Verifier ;
3732
3833#[ cfg( feature = "serde" ) ]
3934use serde:: { de, ser, Deserialize , Serialize } ;
@@ -372,8 +367,8 @@ impl Certificate {
372367 ///
373368 /// See [`Certificate::validate_at`] documentation for important notes on
374369 /// how to properly validate certificates!
375- #[ cfg( all ( feature = "fingerprint" , feature = " std") ) ]
376- #[ cfg_attr( docsrs, doc( cfg( all ( feature = "fingerprint" , feature = " std") ) ) ) ]
370+ #[ cfg( feature = "std" ) ]
371+ #[ cfg_attr( docsrs, doc( cfg( feature = "std" ) ) ) ]
377372 pub fn validate < ' a , I > ( & self , ca_fingerprints : I ) -> Result < ( ) >
378373 where
379374 I : IntoIterator < Item = & ' a Fingerprint > ,
@@ -409,8 +404,6 @@ impl Certificate {
409404 /// ## Returns
410405 /// - `Ok` if the certificate validated successfully
411406 /// - `Error::CertificateValidation` if the certificate failed to validate
412- #[ cfg( feature = "fingerprint" ) ]
413- #[ cfg_attr( docsrs, doc( cfg( feature = "fingerprint" ) ) ) ]
414407 pub fn validate_at < ' a , I > ( & self , unix_timestamp : u64 , ca_fingerprints : I ) -> Result < ( ) >
415408 where
416409 I : IntoIterator < Item = & ' a Fingerprint > ,
@@ -454,7 +447,6 @@ impl Certificate {
454447 ///
455448 /// It is public only for testing purposes, and deliberately hidden from
456449 /// the documentation for that reason.
457- #[ cfg( feature = "fingerprint" ) ]
458450 #[ doc( hidden) ]
459451 pub fn verify_signature ( & self ) -> Result < ( ) > {
460452 let mut tbs_certificate = Vec :: new ( ) ;
0 commit comments