X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FCertificate.pm;h=6fecc350cf71d7c412becfd27dd1434b0961e97a;hp=10e73014b5ecfd9d9352afd99c45dae1d8662d67;hb=c1b077456a525ab90afee9f3616700c07e7b487e;hpb=e8a515e655545d63bc730d92923b29ff70d15f9b diff --git a/src/PVE/Certificate.pm b/src/PVE/Certificate.pm index 10e7301..6fecc35 100644 --- a/src/PVE/Certificate.pm +++ b/src/PVE/Certificate.pm @@ -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;