We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44dcbe9 commit ad0810aCopy full SHA for ad0810a
cryptoki/tests/basic.rs
@@ -1117,6 +1117,20 @@ fn import_export() -> TestResult {
1117
panic!("Expected the Modulus attribute.");
1118
}
1119
1120
+ let mut attrs =
1121
+ session.get_attributes(is_it_the_public_key, &[AttributeType::AllowedMechanisms])?;
1122
+
1123
+ if is_softhsm() {
1124
+ let attr = attrs.remove(0);
1125
+ if let Attribute::AllowedMechanisms(v) = attr {
1126
+ assert_eq!(v, Vec::<MechanismType>::new());
1127
+ } else {
1128
+ panic!("Expected the AllowedMechanisms attribute.");
1129
+ }
1130
1131
+ assert_eq!(attrs, Vec::<Attribute>::new());
1132
1133
1134
// delete key
1135
session.destroy_object(is_it_the_public_key)?;
1136
0 commit comments