summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2019-02-15 10:39:30 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2019-03-06 09:54:10 +1300
commit5f8fa2c151b8f0e568dc4015b7d307250b354a04 (patch)
tree70f626a58f3f83c53dfb0194bbcf77584dbdf00a /ui
parentba8144f917f5603e507e9c72aed4ae3257c6b0ce (diff)
downloadtalos-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 'ui')
-rw-r--r--ui/test/discover-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/test/discover-test.c b/ui/test/discover-test.c
index f3e7dd8..6fb14de 100644
--- a/ui/test/discover-test.c
+++ b/ui/test/discover-test.c
@@ -16,6 +16,8 @@ static const char *device_type_string(enum device_type type)
return "optical";
case DEVICE_TYPE_ANY:
return "any";
+ case DEVICE_TYPE_LUKS:
+ return "encrypted";
case DEVICE_TYPE_UNKNOWN:
return "unknown";
}
OpenPOWER on IntegriCloud