1
0
Fork 0
mirror of https://github.com/p11-glue/p11-kit.git synced 2026-12-03 15:04:36 +00:00
Provides a way to load and enumerate PKCS#11 modules.
  • C 93.1%
  • Shell 2.9%
  • Meson 1.5%
  • Makefile 1.3%
  • M4 0.7%
  • Other 0.4%
Find a file
Naveed 4628bc35cf utf8: reject surrogates and out of range code points in UCS-2/UCS-4
utf8_for_convert(), behind p11_utf8_for_ucs2be() and
p11_utf8_for_ucs4be(), encoded every code unit it read without the
checks utf8_to_uchar() applies. A BMPString containing a surrogate,
or a UniversalString with a value in D800-DFFF or above U+10FFFF,
came out as bytes such as ed a0 80 or f4 90 80 80 that
p11_utf8_validate() rejects.

p11_x509_parse_directory_string() hands this to the CKA_LABEL the
trust builder derives from the subject, and to the subject hash
computed for the openssl-directory and pem-directory-hash formats,
where an invalid UTF8String is already refused.

Reject the same code points in utf8_for_convert().

Signed-off-by: Naveed <naveed@bugqore.com>
2026-11-30 16:13:42 +09:00
.github ci: run ShellCheck on the shell-based tests 2026-11-20 11:42:49 +09:00
bash-completion meson: do not warn about missing bash-completion if disabled 2026-10-18 20:45:01 +09:00
build ci: Fix coverage reporting 2026-05-21 15:35:44 +02:00
ci ci: Update CI image to Fedora 44 2026-05-21 17:53:28 +02:00
common ci: run ShellCheck on the shell-based tests 2026-11-20 11:42:49 +09:00
doc generate-keypair: add PQC key type support 2026-09-08 12:43:58 +02:00
fuzz fuzz: build persist fuzzer with AutoMake 2026-07-10 11:36:06 +02:00
p11-kit ci: run ShellCheck on the shell-based tests 2026-11-20 11:42:49 +09:00
po Update Norwegian bokmål translation 2026-11-03 16:29:28 +01:00
subprojects subprojects/pkcs11-json: Update git submodule 2026-11-12 15:17:42 +01:00
trust utf8: reject surrogates and out of range code points in UCS-2/UCS-4 2026-11-30 16:13:42 +09:00
zsh-completion Add zsh-completions 2025-03-04 10:47:28 +01:00
.dir-locals.el .dir-locals.el: Update indentation settings for C and shell-script 2023-09-27 00:08:57 +09:00
.gitignore .gitignore: Ignore more files 2025-09-10 12:19:56 +09:00
.gitmodules pkcs11-json: Make use of Meson subprojects feature 2023-08-24 19:42:31 +09:00
.packit.yaml packit: drop synced_files 2021-03-10 15:22:22 +01:00
AUTHORS Initial implementation of p11-unity 2011-01-21 14:48:43 -06:00
autogen.sh make autogen.sh a bit more portable 2021-05-26 04:42:40 +02:00
automaint.sh Build in srcdir != builddir fashion by default 2014-01-14 11:28:43 +01:00
ChangeLog build: Fix typo spotted by codespell 2018-12-29 08:09:50 +01:00
configure.ac Release 0.26.6 2026-11-12 15:17:42 +01:00
CONTRIBUTING.md CONTRIBUTING.md: Mention contribution rules and coding style 2019-12-03 10:55:16 +01:00
COPYING Reimplement and remove apache licensed bits of code. 2011-07-27 11:24:55 +02:00
Makefile.am autotools: Distribute zsh-completion subdir 2025-09-10 09:40:46 +09:00
meson.build Release 0.26.6 2026-11-12 15:17:42 +01:00
meson_options.txt meson: allow setting systemduserunitdir to break dependency loop 2026-10-18 20:44:32 +09:00
meson_post_install_test.sh tests: Run tests using SoftHSM after installation 2023-10-31 08:27:31 +09:00
NEWS Release 0.26.6 2026-11-12 15:17:42 +01:00
README build: Simplify README inclusion 2018-05-25 16:16:23 +02:00
README.md Fix the test badge in README 2024-03-21 08:49:38 +01:00
SECURITY.md Expand SECURITY.md policies 2026-09-08 12:57:45 +02:00

p11-kit

test Coverage Status CII Best Practices

p11-kit aims to solve problems with coordinating the use of PKCS #11 by different components or libraries living in the same process, by providing a way to load and enumerate PKCS #11 modules, as well as a standard configuration setup for installing PKCS #11 modules in such a way that they're discoverable.

Documentation

Building

To build and install p11-kit, you can use the following commands:

$ meson setup _build
$ meson compile -C _build
$ meson test -C _build
# meson install -C _build

If you install it locally for testing purposes, you may want to specify -Dsystemd=disabled -Dbash_completion=disabled at the invocation of meson _build, to avoid installing files to the system locations.

Releases

Releases are made available via the primary github site. They are signed with OpenPGP key of one of the maintainers: Daiki Ueno, Zoltan Fridrich.