@@ -526,7 +526,7 @@ pub enum Attribute {
526
526
/// Length in bytes of the value
527
527
ValueLen ( Ulong ) ,
528
528
/// Vendor defined value
529
- VendorDefined ( ( CK_ATTRIBUTE_TYPE , Vec < u8 > ) ) ,
529
+ VendorDefined ( ( AttributeType , Vec < u8 > ) ) ,
530
530
/// Determines if a key supports verifying
531
531
Verify ( bool ) ,
532
532
/// Determines if a key supports verifying where the data can be recovered from the signature
@@ -596,7 +596,7 @@ impl Attribute {
596
596
Attribute :: Url ( _) => AttributeType :: Url ,
597
597
Attribute :: Value ( _) => AttributeType :: Value ,
598
598
Attribute :: ValueLen ( _) => AttributeType :: ValueLen ,
599
- Attribute :: VendorDefined ( ( num, _) ) => AttributeType :: VendorDefined ( * num) ,
599
+ Attribute :: VendorDefined ( ( num, _) ) => * num,
600
600
Attribute :: Verify ( _) => AttributeType :: Verify ,
601
601
Attribute :: VerifyRecover ( _) => AttributeType :: VerifyRecover ,
602
602
Attribute :: Wrap ( _) => AttributeType :: Wrap ,
@@ -942,7 +942,7 @@ impl TryFrom<CK_ATTRIBUTE> for Attribute {
942
942
}
943
943
}
944
944
}
945
- AttributeType :: VendorDefined ( t) => Ok ( Attribute :: VendorDefined ( ( t , val. to_vec ( ) ) ) ) ,
945
+ AttributeType :: VendorDefined ( t) => Ok ( Attribute :: VendorDefined ( ( AttributeType :: VendorDefined ( t ) , val. to_vec ( ) ) ) ) ,
946
946
}
947
947
}
948
948
}
0 commit comments