]> git.ipfire.org Git - thirdparty/systemd.git/commit
creds-util: initialize default PCR mask in encrypt_credential_and_warn()
authorLennart Poettering <lennart@poettering.net>
Mon, 10 Jun 2024 12:58:52 +0000 (14:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 2 Nov 2025 20:14:35 +0000 (21:14 +0100)
commit3e9ff7c0d8912b0a8ea01bb7e3355e4026ffa266
treefb99aabab09ffdf554805671e4d01800cd9d3826
parentffe958b98ffb9bceceac63db6381bb51329c1abf
creds-util: initialize default PCR mask in encrypt_credential_and_warn()

If UINT32_MAX is passed in the PCR masks pick some reasonable defaults
in encrypt_credential_and_warn().

These defaults copy what "systemd-creds encrypt" uses. By adding these
defaults to the internal functions any user of them can take benefit of
them.
src/shared/creds-util.c