> diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index > 2c86487..0ec548a 100644 > --- a/PVE/API2/Qemu.pm > +++ b/PVE/API2/Qemu.pm > @@ -1381,18 +1381,8 @@ __PACKAGE__->register_method({ > $proxy = $host; > } > > - # read x509 subject > my $filename = "/etc/pve/local/pve-ssl.pem"; > - my $bio = Net::SSLeay::BIO_new_file($filename, 'r'); > - my $x509 = Net::SSLeay::PEM_read_bio_X509($bio); > - Net::SSLeay::BIO_free($bio); > - my $nameobj = Net::SSLeay::X509_get_subject_name($x509); > - my $subject = Net::SSLeay::X509_NAME_oneline($nameobj); > - Net::SSLeay::X509_free($x509); > - > - # remote-viewer wants comma as seperator (not '/') > - $subject =~ s!^/!!; > - $subject =~ s!/(\w+=)!,$1!g; > + my $subject = > PVE::QemuServer::read_x509_subject_spice($filename);
May I suggest to use a separate patch for that cleanup? _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel