]> git.ipfire.org Git - thirdparty/systemd.git/commit
openssl-util: pass the UI callback for interactive PIN prompts
authorKai Lüke <kai@amutable.com>
Thu, 19 Feb 2026 07:01:06 +0000 (16:01 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 27 Feb 2026 21:57:05 +0000 (21:57 +0000)
commitcb27d9a8d39b28023a8d5d0a2182da54ba79ca5a
treeaa7b6b23b89cbdb048a09959fea9251c3807e1fb
parenta323ab9b3343df33be0ca5e5dd2c0ababae4d869
openssl-util: pass the UI callback for interactive PIN prompts

Observed with the tpm2 provider and the tpm2tss engine was that the
auth process failed because the provider/engine could not ask for the
PIN through the callback, resulting in:
  "Failed to load private key from ...: Input/output error"
Apparently the default UI method is not enough and the key setup
functions expect an explicit method.
Pass the existing UI method through as callback for the key setup.

(cherry picked from commit bad16f324acc2a4624dca18a6586306698da7d0a)
(cherry picked from commit 6242200238b76f82838d76142daa5bdee57444f3)
(cherry picked from commit 6957f06dce0456fb7a4d8d25762318d89b473146)
src/shared/openssl-util.c