mirror of
https://git.proxmox.com/git/pve-common
synced 2025-04-28 18:53:18 +00:00
cert: drop single-use warn helper
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
e8a515e655
commit
c1b077456a
@ -184,12 +184,6 @@ my sub ssl_die {
|
||||
Net::SSLeay::die_now("$msg\n");
|
||||
};
|
||||
|
||||
my $ssl_warn = sub {
|
||||
my ($msg) = @_;
|
||||
Net::SSLeay::print_errs();
|
||||
warn $msg if $msg;
|
||||
};
|
||||
|
||||
my $read_certificate = sub {
|
||||
my ($cert_path) = @_;
|
||||
|
||||
@ -377,7 +371,7 @@ sub generate_csr {
|
||||
|
||||
my $cleanup = sub {
|
||||
my ($warn, $die_msg) = @_;
|
||||
$ssl_warn->() if $warn;
|
||||
Net::SSLeay::print_errs() if $warn;
|
||||
|
||||
Net::SSLeay::X509_REQ_free($req) if $req;
|
||||
Net::SSLeay::EVP_PKEY_free($pk) if $pk;
|
||||
|
Loading…
Reference in New Issue
Block a user