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 {
37403740
37413741 // we can get the UniqueId attribute
37423742 let attrs = session. get_attributes ( key, & [ AttributeType :: UniqueId ] ) ?;
3743- if is_softhsm ( ) {
3743+ if is_softhsm ( ) || is_softokn ( ) {
37443744 // SoftHSM does not support this attribute at all
3745+ // Softkn does not expose this attribute
37453746 assert_eq ! ( attrs. len( ) , 0 ) ;
37463747 } else {
37473748 assert ! ( matches!( attrs. first( ) , Some ( Attribute :: UniqueId ( _) ) ) ) ;
@@ -3751,8 +3752,9 @@ fn unique_id() -> TestResult {
37513752 let update_template = vec ! [ Attribute :: UniqueId ( vec![ 0x01 , 0x02 , 0x03 ] ) ] ;
37523753 let res = session. update_attributes ( key, & update_template) ;
37533754 assert ! ( res. is_err( ) ) ;
3754- if is_softhsm ( ) {
3755+ if is_softhsm ( ) || is_softokn ( ) {
37553756 // SoftHSM does not support this attribute at all
3757+ // Softtokn supports it internally, but does not expose it
37563758 assert ! ( matches!(
37573759 res,
37583760 Err ( Error :: Pkcs11 (
You can’t perform that action at this time.
0 commit comments