]> git.sesse.net Git - bcachefs-tools-debian/commit
cmd_set_passphrase: revoke the invalidated key
authorColin Gillespie <colin@cgillespie.xyz>
Fri, 8 Sep 2023 07:27:51 +0000 (17:27 +1000)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 8 Sep 2023 08:05:36 +0000 (04:05 -0400)
commit8d5e53b88aaafe7c01fc369e52dbd1fc8955a77d
treec5eee2c2f3fe8d66adc484172d761b803689e3c1
parent28e6dea65319f425c922f59c8352c9a1969f92d4
cmd_set_passphrase: revoke the invalidated key

After setting a new passphrase, the previous key is left untouched. This
revokes the old key, preventing future actions from using it in error.

Signed-off-by: Colin Gillespie <colin@cgillespie.xyz>
cmd_key.c
libbcachefs/checksum.c
libbcachefs/checksum.h