mime: expose a mime type for encrypted credentials
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Jan 2024 12:44:39 +0000 (13:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Jan 2024 21:51:44 +0000 (22:51 +0100)
commit2dda9c779e7b18acdd274b1133a0f115e73c7c7d
tree41897edf94f1b34751c1a28bf578ac0bb7d7d4ba
parentb9e2d83b75d078143c7ccac3b3070f420b342315
mime: expose a mime type for encrypted credentials

Let's make things nice for desktops, and provide a mime type for
credential files.

This uses the 128bit header identifier that our credential files start
with. However, the files are always base64 encoded, hence we have to
match the base64 string, hence add a small test case that generates them
properly for us, and truncates them at the right place (since 128 is not
evently divisable by 6).
mime/io.systemd.xml
src/test/test-creds.c