Skip to content

pkcs11-tool: list_objects not passing in object class template? #2627

@dlegaultbbry

Description

@dlegaultbbry

Problem Description

Is there a reason pkcs11-tool list_objects doesn't pass in a template with the object class directly rather than getting all objects and then checking if the class matches? Seems like this is what the API intended all along.

https://github.com/OpenSC/OpenSC/blob/master/src/tools/pkcs11-tool.c#L4613

Related to this, it seems impossible to list a reduced item set matching other criteria. Would it be desirable to take input parameters such as label, id, type, etc. and assemble a proper template to pass for the search and allow listing objects matching the sub-criteria?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions