Lennart Poettering
f240cbb645
homed: move code to list and resolve "auto" pkcs#11 URL into common code
...
That way we can reuse it from systemd-cryptenroll.
2020-12-17 19:58:39 +01:00
Lennart Poettering
d041e4fc4a
homed: split out code that determines suitable LUKS passphrase size from RSA key
...
We can use this in cryptenroll later on, hence let's make this generic.
2020-12-17 19:58:26 +01:00
Lennart Poettering
2289a78473
homed: move pkcs11 LUKS glue into shared code
...
That way we can lter reuse it from cryptsetup/cryptenroll too.
2020-12-17 19:58:14 +01:00
Lennart Poettering
f2d5df8a30
homed: move helper calls for RSA encryption to shared code
2020-12-17 19:57:57 +01:00
Yu Watanabe
db9ecf0501
license: LGPL-2.1+ -> LGPL-2.1-or-later
2020-11-09 13:23:58 +09:00
Frantisek Sumsal
d7a0f1f4f9
tree-wide: assorted coccinelle fixes
2020-10-09 15:02:23 +02:00
Lennart Poettering
3f440b13b7
Merge pull request #16981 from keszybz/use-crypt_ra
...
Use crypt_ra to allocate scratch area for password hashing
2020-09-18 19:46:08 +02:00
Zbigniew Jędrzejewski-Szmek
0e98d17e77
Add a helper function that does make_salt+crypt_r
...
No functional change.
2020-09-15 09:30:56 +02:00
Frantisek Sumsal
890ea05ac2
home: return SYNTHETIC_ERRNO() when appropriate
2020-09-14 16:16:59 +02:00
Zbigniew Jędrzejewski-Szmek
7cbb7d62c6
homectl: fix warning about unused function
...
../src/home/homectl-pkcs11.c:19:13: warning: ‘pkcs11_callback_data_release’ defined but not used [-Wunused-function]
19 | static void pkcs11_callback_data_release(struct pkcs11_callback_data *data) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-07-21 17:42:16 +02:00
Lennart Poettering
0eb3be4644
homectl: add --pkcs11-uri=auto and --pkcs-11-uri=list support
...
We have the same for FIDO2 devices, for listing suitable devices, or
picking the right one automatically, let's add that for PKCS11 too.
2020-07-01 11:20:26 +02:00
Lennart Poettering
93295a2501
homectl: split out pkcs#11 related code bits into own .c/.h file
...
There's some highly specific PKCS#11 code in homectl.c. Let's split that
out, since it is easily isolatable, to make homectl.c a bit more
readable.
No funcional changes, just some moving around and renaming two functions
to make them more suitably named when exported.
2020-07-01 11:20:25 +02:00