cryptenroll: allow to use a public key on a token
authorVladimir Stoiakin <VStoiakin@lavabit.com>
Mon, 2 Oct 2023 13:37:26 +0000 (16:37 +0300)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Feb 2024 18:00:51 +0000 (03:00 +0900)
commit85686b37b098b5de4707776ad89598727bf7453f
tree11df28e9cebef20211c593abe7a010c79b43907a
parente104d77da26a347870fb5a26ceae70fe25b87e6f
cryptenroll: allow to use a public key on a token

This patch allows systemd-cryptenroll to enroll directly with a public key if a certificate is missing on a token.

Fixes: #30675
12 files changed:
man/systemd-cryptenroll.xml
src/basic/memory-util.c
src/basic/memory-util.h
src/cryptenroll/cryptenroll-pkcs11.c
src/home/homectl-pkcs11.c
src/home/homectl-pkcs11.h
src/shared/openssl-util.c
src/shared/openssl-util.h
src/shared/pkcs11-util.c
src/shared/pkcs11-util.h
test/TEST-24-CRYPTSETUP/test.sh
test/units/testsuite-24.sh