Bug with pkcs11 plugin in SDK v04.03.00

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bug with pkcs11 plugin in SDK v04.03.00

Jump to solution
845 Views
bug_squasher_77
Contributor I

While testing new sdk (SE05x-MW-v04.03.00) pkcs11 plugin fails to retrieve stored objects.

I was met with "More than MAX_ID_LIST_SIZE objects requested". Even when a single key is used and referred via id, it gave this error.

bug_squasher_77_1-1675094244616.png

Due to problem being reproducible easily, I will share easiest way. 

Simple steps to reproduce, 
1. Write engine.conf for openssl
2. Request all objects or specific object  - here i will only give all objects command.
   

pkcs11-tool --module /usr/lib/libsss_pkcs11.so -O


3. You will face similar issue as above.

 

File:
sss/plugin/pkcs11/sss_pkcs11_pal_object.c @ 770

bug_squasher_77_0-1675094008666.png

I think the condition should be

MAX_ID_LIST_SIZE < ulMaxObjectCount
Labels (1)
0 Kudos
Reply
1 Solution
824 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @bug_squasher_77 ,

 

Thanks for the report! I have created a ticket to the MW team for this issue.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
825 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @bug_squasher_77 ,

 

Thanks for the report! I have created a ticket to the MW team for this issue.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply