diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2019-02-15 10:39:30 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2019-03-06 09:54:10 +1300 |
commit | 5f8fa2c151b8f0e568dc4015b7d307250b354a04 (patch) | |
tree | 70f626a58f3f83c53dfb0194bbcf77584dbdf00a /lib/pb-protocol/pb-protocol.h | |
parent | ba8144f917f5603e507e9c72aed4ae3257c6b0ce (diff) | |
download | talos-petitboot-5f8fa2c151b8f0e568dc4015b7d307250b354a04.tar.gz talos-petitboot-5f8fa2c151b8f0e568dc4015b7d307250b354a04.zip |
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 <sam@mendozajonas.com>
Diffstat (limited to 'lib/pb-protocol/pb-protocol.h')
-rw-r--r-- | lib/pb-protocol/pb-protocol.h | 5 |
1 files changed, 5 insertions, 0 deletions
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; }; }; |