File tree 3 files changed +18
-1
lines changed 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ crates_vendor(
17
17
)],
18
18
"cryptoki" : [crate .annotation (
19
19
patch_args = ["-p2" ],
20
- patches = ["@//third_party/rust/patches:cryptoki-vendor-defined-mechanism-type.patch" ],
20
+ patches = [
21
+ "@//third_party/rust/patches:cryptoki-vendor-defined-mechanism-type.patch" ,
22
+ "@//third_party/rust/patches:cryptoki-pr-116.patch" ,
23
+ ],
21
24
)],
22
25
"cryptoki-sys" : [crate .annotation (
23
26
additive_build_file_content = """
Original file line number Diff line number Diff line change @@ -1038,6 +1038,7 @@ def crate_repositories():
1038
1038
"-p2" ,
1039
1039
],
1040
1040
patches = [
1041
+ "@//third_party/rust/patches:cryptoki-pr-116.patch" ,
1041
1042
"@//third_party/rust/patches:cryptoki-vendor-defined-mechanism-type.patch" ,
1042
1043
],
1043
1044
sha256 = "7da58729f419780655e9b82f5c5e0c3eba3aab46ea48f610cc615b10d5baad53" ,
Original file line number Diff line number Diff line change
1
+ diff --git a/cryptoki/src/object.rs b/cryptoki/src/object.rs
2
+ index 17f6c6d..7c7b94d 100644
3
+ --- a/cryptoki/src/object.rs
4
+ +++ b/cryptoki/src/object.rs
5
+ @@ -343,7 +343,7 @@ impl TryFrom<CK_ATTRIBUTE_TYPE> for AttributeType {
6
+ CKA_APPLICATION => Ok(AttributeType::Application),
7
+ CKA_ATTR_TYPES => Ok(AttributeType::AttrTypes),
8
+ CKA_BASE => Ok(AttributeType::Base),
9
+ - CKA_CERTIFICATE_CATEGORY => Ok(AttributeType::CertificateType),
10
+ + CKA_CERTIFICATE_TYPE => Ok(AttributeType::CertificateType),
11
+ CKA_CHECK_VALUE => Ok(AttributeType::CheckValue),
12
+ CKA_CLASS => Ok(AttributeType::Class),
13
+ CKA_COEFFICIENT => Ok(AttributeType::Coefficient),
You can’t perform that action at this time.
0 commit comments