e060ed32e4
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().
13 lines
311 B
C
13 lines
311 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
#include <inttypes.h>
|
|
#include <sys/types.h>
|
|
|
|
int find_key_file(
|
|
const char *key_file,
|
|
char **search_path,
|
|
const char *bindname,
|
|
void **ret_key,
|
|
size_t *ret_key_size);
|