summaryrefslogtreecommitdiffstats
path: root/src/cryptenroll/cryptenroll-wipe.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cryptenroll: show better log message if slot to wipe does not existAntonio Alvarez Feijoo13 days1-1/+4
| | | | | | | | | | ``` $ systemd-cryptenroll /dev/vda3 SLOT TYPE 0 password $ systemd-cryptenroll --wipe-slot 1 /dev/vda3 Failed to wipe slot 1, continuing: No such file or directory ```
* libsystemd: turn json.[ch] into a public APILennart Poettering2024-06-121-18/+20
| | | | | | | | | | | | | | | This is preparation for making our Varlink API a public API. Since our Varlink API is built on top of our JSON API we need to make that public first (it's a nice API, but JSON APIs there are already enough, this is purely about the Varlink angle). I made most of the json.h APIs public, and just placed them in sd-json.h. Sometimes I wasn't so sure however, since the underlying data structures would have to be made public too. If in doubt I didn#t risk it, and moved the relevant API to src/libsystemd/sd-json/json-util.h instead (without any sd_* symbol prefixes). This is mostly a giant search/replace patch.
* tree-wide: use _cleanup_set_free_ and friendsYu Watanabe2023-05-311-2/+2
| | | | Instead of _cleanup_(set_freep) or so.
* Drop the text argument from assert_not_reached()Zbigniew Jędrzejewski-Szmek2021-08-031-1/+1
| | | | | | | | | | | | | | | | | In general we almost never hit those asserts in production code, so users see them very rarely, if ever. But either way, we just need something that users can pass to the developers. We have quite a few of those asserts, and some have fairly nice messages, but many are like "WTF?" or "???" or "unexpected something". The error that is printed includes the file location, and function name. In almost all functions there's at most one assert, so the function name alone is enough to identify the failure for a developer. So we don't get much extra from the message, and we might just as well drop them. Dropping them makes our code a tiny bit smaller, and most importantly, improves development experience by making it easy to insert such an assert in the code without thinking how to phrase the argument.
* cryptsetup: use crypt_token_max if availableLuca Boccassi2021-01-051-2/+2
| | | | | | New API added upstream: https://gitlab.com/cryptsetup/cryptsetup/-/commit/8a12f6dc2c75f8fd0c4969fbdc421895eb418072
* tree-wide: fix typoYu Watanabe2020-12-181-1/+1
|
* cryptenroll: support listing and wiping tokensLennart Poettering2020-12-171-0/+445