File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3740,8 +3740,9 @@ fn unique_id() -> TestResult {
3740
3740
3741
3741
// we can get the UniqueId attribute
3742
3742
let attrs = session. get_attributes ( key, & [ AttributeType :: UniqueId ] ) ?;
3743
- if is_softhsm ( ) {
3743
+ if is_softhsm ( ) || is_softokn ( ) {
3744
3744
// SoftHSM does not support this attribute at all
3745
+ // Softkn does not expose this attribute
3745
3746
assert_eq ! ( attrs. len( ) , 0 ) ;
3746
3747
} else {
3747
3748
assert ! ( matches!( attrs. first( ) , Some ( Attribute :: UniqueId ( _) ) ) ) ;
@@ -3751,8 +3752,9 @@ fn unique_id() -> TestResult {
3751
3752
let update_template = vec ! [ Attribute :: UniqueId ( vec![ 0x01 , 0x02 , 0x03 ] ) ] ;
3752
3753
let res = session. update_attributes ( key, & update_template) ;
3753
3754
assert ! ( res. is_err( ) ) ;
3754
- if is_softhsm ( ) {
3755
+ if is_softhsm ( ) || is_softokn ( ) {
3755
3756
// SoftHSM does not support this attribute at all
3757
+ // Softtokn supports it internally, but does not expose it
3756
3758
assert ! ( matches!(
3757
3759
res,
3758
3760
Err ( Error :: Pkcs11 (
You can’t perform that action at this time.
0 commit comments