[pve-devel] [PATCH] spice migration
Alexandre DERUMIER
aderumier at odiso.com
Tue Jul 23 11:11:04 CEST 2013
>>May I suggest to use a separate patch for that cleanup?
Ok, no problem, I'll split the big patch into smaller patches, should be more readable in git history.
----- Mail original -----
De: "Dietmar Maurer" <dietmar at proxmox.com>
À: "Alexandre Derumier" <aderumier at odiso.com>, pve-devel at pve.proxmox.com
Envoyé: Mardi 23 Juillet 2013 10:58:39
Objet: RE: [pve-devel] [PATCH] spice migration
> 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?
More information about the pve-devel
mailing list