]> git.ipfire.org Git - thirdparty/systemd.git/commit
openssl-util: introduce openssl_extract_public_key() helper function
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 24 Nov 2025 01:30:07 +0000 (10:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 24 Nov 2025 13:49:55 +0000 (22:49 +0900)
commitda22ccf48ff3884f68b57cca13b483679ea233e5
tree21ac7d13f549eb0c1d11d56a672afb540dbcfac2
parent4f6ef13f43aed654cbadb2785afee1ce567d710d
openssl-util: introduce openssl_extract_public_key() helper function

This splits out common logic in keyutil and systemd-measure.

Note, previously d2i_PUBKEY_fp() was used, but now it is replaced with
d2i_PUBKEY(), as musl seems to not support reading from memstream.
src/keyutil/keyutil.c
src/measure/measure-tool.c
src/shared/openssl-util.c
src/shared/openssl-util.h