Remove volume key internals from internal API.

This commit is contained in:
Ondrej Kozina
2025-02-04 16:04:49 +01:00
committed by Milan Broz
parent 1bec71dbe1
commit 036ed52999
2 changed files with 11 additions and 10 deletions

View File

@@ -48,16 +48,7 @@
struct crypt_device;
struct luks2_reencrypt;
struct volume_key {
int id;
size_t keylength; /* length in bytes */
const char *key_description; /* keyring key name/description */
key_type_t keyring_key_type; /* kernel keyring key type */
bool uploaded; /* uploaded to keyring, can drop it */
struct volume_key *next;
char *key;
};
struct volume_key;
typedef enum {
KEY_QUALITY_KEY = 0,

View File

@@ -13,6 +13,16 @@
#include "internal.h"
struct volume_key {
int id;
size_t keylength; /* length in bytes */
const char *key_description; /* keyring key name/description */
key_type_t keyring_key_type; /* kernel keyring key type */
bool uploaded; /* uploaded to keyring, can drop it */
struct volume_key *next;
char *key;
};
struct volume_key *crypt_alloc_volume_key(size_t keylength, const char *key)
{
struct volume_key *vk;