File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ use once_cell::sync::Lazy;
10
10
11
11
use crate :: backend:: hashes:: Hash ;
12
12
use crate :: error:: CryptographyResult ;
13
- use crate :: x509;
14
13
use crate :: x509:: certificate:: Certificate ;
15
14
16
15
pub ( crate ) static ALGORITHM_PARAMETERS_TO_HASH : Lazy <
@@ -93,7 +92,7 @@ pub(crate) fn certid_new<'p>(
93
92
) ?;
94
93
95
94
Ok ( CertID {
96
- hash_algorithm : x509 :: ocsp :: HASH_NAME_TO_ALGORITHM_IDENTIFIERS [ hash_algorithm
95
+ hash_algorithm : HASH_NAME_TO_ALGORITHM_IDENTIFIERS [ hash_algorithm
97
96
. getattr ( pyo3:: intern!( py, "name" ) ) ?
98
97
. extract :: < & str > ( ) ?]
99
98
. clone ( ) ,
@@ -111,7 +110,7 @@ pub(crate) fn certid_new_from_hash<'p>(
111
110
hash_algorithm : & ' p pyo3:: PyAny ,
112
111
) -> CryptographyResult < CertID < ' p > > {
113
112
Ok ( CertID {
114
- hash_algorithm : x509 :: ocsp :: HASH_NAME_TO_ALGORITHM_IDENTIFIERS [ hash_algorithm
113
+ hash_algorithm : HASH_NAME_TO_ALGORITHM_IDENTIFIERS [ hash_algorithm
115
114
. getattr ( pyo3:: intern!( py, "name" ) ) ?
116
115
. extract :: < & str > ( ) ?]
117
116
. clone ( ) ,
You can’t perform that action at this time.
0 commit comments