In older perl the following two where the same:
"$foo::$bar" == "${foo}::${bar}"
But in perl 5, version 28 it's not anymore,
"$foo::$bar" would be equivalent to "${foo::}${bar}", the double
colons are now not used as variable name boundary, so mark that
explicitly in the affected case and surrounding ones preventively
This fixes authentication with spice* related stuff again.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
# Note: data needs to be lower case only, because virt-viewer needs that
# Note: RSA signature are too long (>=256 charaters) and make problems with remote-viewer
- my $plain = "pvespiceproxy:$timestamp:$vmid:" . lc($node);
+ my $plain = "pvespiceproxy:${timestamp}:${vmid}:" . lc($node);
# produces 40 characters
my $sig = unpack("H*", Digest::SHA::sha1($plain, $secret));
#my $sig = unpack("H*", $rsa_priv->sign($plain)); # this produce too long strings (512)
- my $proxyticket = "$plain::$sig";
+ my $proxyticket = "${plain}::${sig}";
return ($ticket, $proxyticket);
}