mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
Remove volume key internals from internal API.
This commit is contained in:
committed by
Milan Broz
parent
1bec71dbe1
commit
036ed52999
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user