cryptsetup: modify keyfile search logic to use read_file_full() too
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Nov 2020 17:15:42 +0000 (18:15 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 1 Dec 2020 13:27:01 +0000 (14:27 +0100)
commite060ed32e46bdd7583dcad87ff462ff4c006115f
tree190b50665ea68891591aeeda2bd4b66f5d6de324
parente2c2f868b28f1445e061bf7eb475b0c49efe3ac2
cryptsetup: modify keyfile search logic to use read_file_full() too

Let's move the 3rd way how cryptsetup acquires key files to
read_file_full() too.

Since load_key_file()'s raison d'etre now is just the search path logic,
let's rename the function to find_key_file().
src/cryptsetup/cryptsetup-keyfile.c
src/cryptsetup/cryptsetup-keyfile.h
src/cryptsetup/cryptsetup.c