1 Index: new/ui/spice-core.c
2 ===================================================================
3 --- new.orig/ui/spice-core.c 2014-11-20 07:26:43.000000000 +0100
4 +++ new/ui/spice-core.c 2014-11-20 07:33:22.000000000 +0100
8 x509_dir = qemu_opt_get(opts, "x509-dir");
13 str = qemu_opt_get(opts, "x509-key-file");
15 x509_key_file = g_strdup(str);
17 + } else if (x509_dir) {
18 x509_key_file = g_strdup_printf("%s/%s", x509_dir,
19 X509_SERVER_KEY_FILE);
21 + x509_key_file = g_strdup("/etc/pve/local/pve-ssl.key");
24 str = qemu_opt_get(opts, "x509-cert-file");
26 x509_cert_file = g_strdup(str);
28 + } else if (x509_dir) {
29 x509_cert_file = g_strdup_printf("%s/%s", x509_dir,
30 X509_SERVER_CERT_FILE);
32 + x509_cert_file = g_strdup("/etc/pve/local/pve-ssl.pem");
35 str = qemu_opt_get(opts, "x509-cacert-file");
37 x509_cacert_file = g_strdup(str);
39 + } else if (x509_dir) {
40 x509_cacert_file = g_strdup_printf("%s/%s", x509_dir,
43 + x509_cacert_file = g_strdup("/etc/pve/pve-root-ca.pem");
46 x509_key_password = qemu_opt_get(opts, "x509-key-password");