From 5f8fa2c151b8f0e568dc4015b7d307250b354a04 Mon Sep 17 00:00:00 2001 From: Samuel Mendoza-Jonas Date: Fri, 15 Feb 2019 10:39:30 +1100 Subject: lib: Add AUTH_MSG_DECRYPT Extend the auth_message struct to support the AUTH_MSG_DECRYPT operation, allowing the existing authentications methods to be used for passing a disk password from the UI to pb-discover. In addition add DEVICE_TYPE_LUKS to identify encrypted disk devices. Signed-off-by: Samuel Mendoza-Jonas --- lib/pb-protocol/pb-protocol.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/pb-protocol/pb-protocol.h') diff --git a/lib/pb-protocol/pb-protocol.h b/lib/pb-protocol/pb-protocol.h index 1d6c048..f4975bc 100644 --- a/lib/pb-protocol/pb-protocol.h +++ b/lib/pb-protocol/pb-protocol.h @@ -40,6 +40,7 @@ enum auth_msg_type { AUTH_MSG_REQUEST, AUTH_MSG_RESPONSE, AUTH_MSG_SET, + AUTH_MSG_DECRYPT, }; struct auth_message { @@ -51,6 +52,10 @@ struct auth_message { char *password; char *new_password; } set_password; + struct { + char *password; + char *device_id; + } decrypt_dev; }; }; -- cgit v1.2.1