Commit aee7741
committed
Return empty result on unknown object class
Update `prepare_search` to return `Ok(None)` instead of
`Err(CKR_ATTRIBUTE_VALUE_INVALID)` when an unknown or unsupported `CKA_CLASS`
is encountered. This ensures that searches for unsupported object types simply
return an empty result set rather than failing with an error.
Signed-off-by: Simo Sorce <simo@redhat.com>1 parent 6395597 commit aee7741
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
664 | 666 | | |
665 | 667 | | |
666 | 668 | | |
| |||
678 | 680 | | |
679 | 681 | | |
680 | 682 | | |
681 | | - | |
| 683 | + | |
682 | 684 | | |
683 | 685 | | |
684 | 686 | | |
| |||
738 | 740 | | |
739 | 741 | | |
740 | 742 | | |
741 | | - | |
| 743 | + | |
742 | 744 | | |
743 | 745 | | |
744 | 746 | | |
| |||
767 | 769 | | |
768 | 770 | | |
769 | 771 | | |
770 | | - | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
771 | 776 | | |
772 | 777 | | |
773 | 778 | | |
| |||
0 commit comments