@@ -526,7 +526,7 @@ pub enum Attribute {
526526 /// Length in bytes of the value
527527 ValueLen ( Ulong ) ,
528528 /// Vendor defined value
529- VendorDefined ( ( CK_ATTRIBUTE_TYPE , Vec < u8 > ) ) ,
529+ VendorDefined ( ( AttributeType , Vec < u8 > ) ) ,
530530 /// Determines if a key supports verifying
531531 Verify ( bool ) ,
532532 /// Determines if a key supports verifying where the data can be recovered from the signature
@@ -596,7 +596,7 @@ impl Attribute {
596596 Attribute :: Url ( _) => AttributeType :: Url ,
597597 Attribute :: Value ( _) => AttributeType :: Value ,
598598 Attribute :: ValueLen ( _) => AttributeType :: ValueLen ,
599- Attribute :: VendorDefined ( ( num, _) ) => AttributeType :: VendorDefined ( * num) ,
599+ Attribute :: VendorDefined ( ( num, _) ) => * num,
600600 Attribute :: Verify ( _) => AttributeType :: Verify ,
601601 Attribute :: VerifyRecover ( _) => AttributeType :: VerifyRecover ,
602602 Attribute :: Wrap ( _) => AttributeType :: Wrap ,
@@ -942,7 +942,7 @@ impl TryFrom<CK_ATTRIBUTE> for Attribute {
942942 }
943943 }
944944 }
945- AttributeType :: VendorDefined ( t) => Ok ( Attribute :: VendorDefined ( ( t , val. to_vec ( ) ) ) ) ,
945+ AttributeType :: VendorDefined ( t) => Ok ( Attribute :: VendorDefined ( ( AttributeType :: VendorDefined ( t ) , val. to_vec ( ) ) ) ) ,
946946 }
947947 }
948948}
0 commit comments