]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/creds/creds.c
creds-util: add an explicit 128bit ID for identifying "automatic" key determination
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Apr 2022 13:37:54 +0000 (15:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Apr 2022 15:49:16 +0000 (17:49 +0200)
commit571d829ee49147c588e53a1f107c29fd23968581
tree318a3e9bce65e03f68d632f30a04f0128b7d0647
parent7cac4a2e2d8d7886df00e085c8299741d66cf1d0
creds-util: add an explicit 128bit ID for identifying "automatic" key determination

Previously, when encrypting creds you could pick which key to use for
this via a 128bit ID identifying the key type, and use an all zero ID
for rquesting automatic mode.

Let's change this to use an explicitly picked 128bit ID for automatic
mode, i.e. something other than all zeros. This is in preparation for
adding one further automatic mode with slightly different semantics.

no change in behaviour.

Note that the new 128bit id is never written to disk but only used
internally to indicate a specific case.
src/creds/creds.c
src/shared/creds-util.c
src/shared/creds-util.h