Ondrej Kozina
5ef1878b34
Do not use fake-token-path in ssh and systemd plugin tests.
2023-11-17 10:42:23 +01:00
wangzhiqiang
1f805cb35a
Update file cryptsetup-ssh.c
2023-02-10 16:48:19 +00:00
wangzhiqiang
ec0efe7068
fix potential null pointer dereference.
...
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com >
2023-02-10 19:49:48 +08:00
Milan Broz
72f799b393
Update Copyright year.
2023-02-09 17:11:18 +01:00
Milan Broz
97a22c27dd
Make crypt_load quiet if metadata is not detected.
...
Ths will allow automatic scan of known formats.
Errors are printed only if something is wrong with already detected metadata.
This change means that it is responsibility of the caller to print an error
message if needed.
Also fix some places without a message.
Fixes : #642
2022-05-26 10:17:32 +02:00
Milan Broz
ab975bc1c4
Update copyright year.
...
And unify format in several places.
2022-01-29 10:43:02 +01:00
Yuri Chornoivan
b00946d449
Fix minor typo: assing -> assign
2021-07-30 16:19:36 +00:00
Vojtech Trefny
7c76d17a9c
ssh token: Make strings in the plugin translatable
2021-07-25 18:08:22 +02:00
Vojtech Trefny
3589f9578a
ssh token: Fix -Wmissing-prototypes warnings
2021-06-29 15:11:46 +02:00
Vojtech Trefny
3dc7dff2b2
ssh token: Fix return code when adding multiple tokens
...
token_add returns ID of the added token so we can't use it as a
return code for the binary.
2021-06-29 15:11:46 +02:00
Vojtech Trefny
35793c24f0
ssh token: Allow specifying key slot when adding the token
2021-06-29 15:11:46 +02:00
Vojtech Trefny
6545523df3
ssh token: Add the token to the first keyslot with matching passphrase
...
Currently the "add" action adds the token to all keyslots, this
changes the behaviour to make sure the token is added to the first
keyslot that can be unlocked using the provided passphrase.
2021-06-29 15:11:46 +02:00
Vojtech Trefny
3e52aa820c
ssh token: Move SSH code to a separate utils file
2021-06-29 15:11:43 +02:00
Milan Broz
8f752a2bd7
Fix a Coverity warning.
2021-06-17 13:02:42 +02:00
Vojtech Trefny
52cc01c977
cryptsetup-ssh: Add debug and verbose options
2021-06-16 12:30:53 +02:00
Vojtech Trefny
b8d2218720
cryptsetup-ssh: Better argument parsing and help for the options
2021-06-16 12:30:49 +02:00
Milan Broz
bb6d522198
Mark ssh token as experimental.
2021-02-03 15:17:07 +01:00
Milan Broz
89b3105493
Add example SSH token handler.
...
Provides example of loadable token handler for activation
json validation and metadata dump.
For creating new ssh example token use special cryptsetup-ssh
binary.
2021-02-03 11:43:04 +00:00