mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 17:22:24 +00:00
cert: avoid module-wide variable used only once
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6baa9131aa
commit
1a758ec1dd
@ -91,8 +91,6 @@ PVE::JSONSchema::register_standard_option('pve-certificate-info', {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
# see RFC 7468
|
|
||||||
my $b64_char_re = qr![0-9A-Za-z\+/]!;
|
|
||||||
my $header_re = sub {
|
my $header_re = sub {
|
||||||
my ($label) = @_;
|
my ($label) = @_;
|
||||||
return qr!-----BEGIN\ $label-----(?:\s|\n)*!;
|
return qr!-----BEGIN\ $label-----(?:\s|\n)*!;
|
||||||
@ -104,6 +102,7 @@ my $footer_re = sub {
|
|||||||
my $pem_re = sub {
|
my $pem_re = sub {
|
||||||
my ($label) = @_;
|
my ($label) = @_;
|
||||||
|
|
||||||
|
my $b64_char_re = qr![0-9A-Za-z\+/]!; # see RFC 7468
|
||||||
my $header = $header_re->($label);
|
my $header = $header_re->($label);
|
||||||
my $footer = $footer_re->($label);
|
my $footer = $footer_re->($label);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user