File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ use cryptography_x509_verification::policy::ExtensionPolicy;
7
7
name = "ExtensionPolicy"
8
8
) ]
9
9
pub ( crate ) struct PyExtensionPolicy {
10
- rust_policy : ExtensionPolicy < ' static , PyCryptoOps > ,
10
+ inner_policy : ExtensionPolicy < ' static , PyCryptoOps > ,
11
11
}
12
12
13
13
impl PyExtensionPolicy {
14
- pub ( super ) fn clone_rust_policy ( & self ) -> ExtensionPolicy < ' static , PyCryptoOps > {
15
- self . rust_policy . clone ( )
14
+ pub ( super ) fn clone_inner_policy ( & self ) -> ExtensionPolicy < ' static , PyCryptoOps > {
15
+ self . inner_policy . clone ( )
16
16
}
17
17
18
- fn new ( rust_policy : ExtensionPolicy < ' static , PyCryptoOps > ) -> Self {
19
- PyExtensionPolicy { rust_policy }
18
+ fn new ( inner_policy : ExtensionPolicy < ' static , PyCryptoOps > ) -> Self {
19
+ PyExtensionPolicy { inner_policy }
20
20
}
21
21
}
22
22
Original file line number Diff line number Diff line change @@ -193,10 +193,10 @@ impl PolicyBuilder {
193
193
self . max_chain_depth ,
194
194
self . ca_ext_policy
195
195
. as_ref ( )
196
- . map ( |p| p. get ( ) . clone_rust_policy ( ) ) ,
196
+ . map ( |p| p. get ( ) . clone_inner_policy ( ) ) ,
197
197
self . ee_ext_policy
198
198
. as_ref ( )
199
- . map ( |p| p. get ( ) . clone_rust_policy ( ) ) ,
199
+ . map ( |p| p. get ( ) . clone_inner_policy ( ) ) ,
200
200
)
201
201
} ) ;
202
202
@@ -249,10 +249,10 @@ impl PolicyBuilder {
249
249
self . max_chain_depth ,
250
250
self . ca_ext_policy
251
251
. as_ref ( )
252
- . map ( |p| p. get ( ) . clone_rust_policy ( ) ) ,
252
+ . map ( |p| p. get ( ) . clone_inner_policy ( ) ) ,
253
253
self . ee_ext_policy
254
254
. as_ref ( )
255
- . map ( |p| p. get ( ) . clone_rust_policy ( ) ) ,
255
+ . map ( |p| p. get ( ) . clone_inner_policy ( ) ) ,
256
256
) )
257
257
} ) ?;
258
258
You can’t perform that action at this time.
0 commit comments