aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2022-12-01 04:22:11 -0500
committerDaniel P. Berrangé <berrange@redhat.com>2023-02-15 11:14:58 -0500
commit36debafddd788066be10b33c5f11b984a08e5c85 (patch)
tree4f7743d7c48062459b95ee4ff8115daba97c365b /ui
parent610783cb6e47ccf0c3cde94dcb03dff2ae22107c (diff)
downloadqemu-36debafddd788066be10b33c5f11b984a08e5c85.zip
qemu-36debafddd788066be10b33c5f11b984a08e5c85.tar.gz
qemu-36debafddd788066be10b33c5f11b984a08e5c85.tar.bz2
ui: remove deprecated 'password' option for SPICE
This has been replaced by the 'password-secret' option, which references a 'secret' object instance. Reviewed-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/spice-core.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/ui/spice-core.c b/ui/spice-core.c
index 72f8f16..76f7c2b 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -413,9 +413,6 @@ static QemuOptsList qemu_spice_opts = {
.type = QEMU_OPT_BOOL,
#endif
},{
- .name = "password",
- .type = QEMU_OPT_STRING,
- },{
.name = "password-secret",
.type = QEMU_OPT_STRING,
},{
@@ -666,20 +663,8 @@ static void qemu_spice_init(void)
}
passwordSecret = qemu_opt_get(opts, "password-secret");
if (passwordSecret) {
- if (qemu_opt_get(opts, "password")) {
- error_report("'password' option is mutually exclusive with "
- "'password-secret'");
- exit(1);
- }
password = qcrypto_secret_lookup_as_utf8(passwordSecret,
&error_fatal);
- } else {
- str = qemu_opt_get(opts, "password");
- if (str) {
- warn_report("'password' option is deprecated and insecure, "
- "use 'password-secret' instead");
- password = g_strdup(str);
- }
}
if (tls_port) {