Skip to content

Upgrade cryptoki to resolve panic (fixes #19)#35

Merged
ximon18 merged 2 commits intomainfrom
19-providing-a-non-pkcs11-module-so-file-as-lib-path-causes-panic
Feb 16, 2026
Merged

Upgrade cryptoki to resolve panic (fixes #19)#35
ximon18 merged 2 commits intomainfrom
19-providing-a-non-pkcs11-module-so-file-as-lib-path-causes-panic

Conversation

@ximon18
Copy link
Member

@ximon18 ximon18 commented Feb 16, 2026

This PR causes the following error message:

thread 'main' (3608984) panicked at /home/ximon/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cryptoki-sys-0.4.0/src/bindings/x86_64-unknown-linux-gnu.rs:6159:14:
Expected function, got error.: DlSym { desc: "/usr/lib64/libyubikey.so.0: undefined symbol: C_GetFunctionList" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted                    (core dumped) target/release/kmip2pkcs11 --config etc/config.toml

To instead become:

$ target/release/kmip2pkcs11 --config etc/config.toml
[INFO] Loading and initializing PKCS#11 library /usr/lib64/libyubikey.so.0
[ERROR] PKCS#11 related fatal error: Relay PKCS#11 Rust abstraction layer error: Missing PKCS#11 symbol: C_GetFunctionList
Error: ExitError(())

Fixes #19.

@ximon18 ximon18 requested a review from bal-e February 16, 2026 13:41
@ximon18 ximon18 linked an issue Feb 16, 2026 that may be closed by this pull request
Copy link
Contributor

@bal-e bal-e left a comment

Choose a reason for hiding this comment

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

Looks good!

@ximon18 ximon18 merged commit 5b7d55d into main Feb 16, 2026
9 checks passed
@ximon18 ximon18 deleted the 19-providing-a-non-pkcs11-module-so-file-as-lib-path-causes-panic branch February 16, 2026 13:45
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.

Providing a non-PKCS#11 module .so file as lib-path causes panic.

2 participants