Skip to content

Commit

Permalink
Remove volume key internals from internal API.
Browse files Browse the repository at this point in the history
  • Loading branch information
oniko authored and mbroz committed Feb 16, 2025
1 parent 1bec71d commit 036ed52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
11 changes: 1 addition & 10 deletions lib/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 10 additions & 0 deletions lib/volumekey.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 036ed52

Please sign in to comment.