Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --provider option to p11-kit commands #611

Merged
merged 5 commits into from
Jan 2, 2024

Conversation

ueno
Copy link
Member

@ueno ueno commented Dec 15, 2023

Fixes: #573

@coveralls
Copy link

coveralls commented Dec 15, 2023

Coverage Status

coverage: 69.426% (-0.05%) from 69.473%
when pulling ef42b99 on ueno:wip/dueno/module
into 81715a2 on p11-glue:master.

p11-kit/list-mechanisms.c Fixed Show fixed Hide fixed
@ueno ueno force-pushed the wip/dueno/module branch 3 times, most recently from e15ef90 to 7ca8016 Compare December 28, 2023 06:33
@ueno ueno marked this pull request as ready for review December 28, 2023 06:33
@ueno ueno force-pushed the wip/dueno/module branch 3 times, most recently from 49fb56e to a0804a1 Compare December 31, 2023 06:50
As the interface provided by tool.h is sorely for command-line option
parsing, options.h would be a better name.  This also allows
consumers (the p11-kit and trust commands) to factor out shared
utilities under the name of p11-kit/tool.[ch] or trust/tool.[ch].

Signed-off-by: Daiki Ueno <ueno@gnu.org>
This moves the common module loading and iteration logic to
p11-kit/tool.c to avoid code duplication.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Copy link
Contributor

@ZoltanFridrich ZoltanFridrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good. Haven't spot any mistakes.

doc/manual/p11-kit.xml Outdated Show resolved Hide resolved
Signed-off-by: Daiki Ueno <ueno@gnu.org>
This adds --provider option to p11-kit subcommands which loads PKCS#11
modules.  The option would be useful for testing a specific module
without installing it on the system.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
@ueno
Copy link
Member Author

ueno commented Jan 2, 2024

Thanks for the review.

@ueno ueno merged commit 304db35 into p11-glue:master Jan 2, 2024
14 checks passed
@ZoltanFridrich ZoltanFridrich added this to the 0.25.4 milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some p11-kit commands should provide --provider option to operate on a specific module
3 participants