]> git.proxmox.com Git - pve-http-server.git/commitdiff
tls: log failure to apply TLS 1.3 ciphers
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 18 Jan 2022 11:35:49 +0000 (12:35 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 18 Jan 2022 11:35:49 +0000 (12:35 +0100)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/APIServer/AnyEvent.pm

index 9a40f31ee5855caf42d0e46e72418bdb58c0ce1b..7dd7d2d062f03f2a012efbd2a4c8944e108108a4 100644 (file)
@@ -1916,7 +1916,10 @@ sub new {
 
        $self->{tls_ctx} = AnyEvent::TLS->new(%{$self->{ssl}});
        Net::SSLeay::CTX_set_options($self->{tls_ctx}->{ctx}, $tls_ctx_flags);
-       Net::SSLeay::CTX_set_ciphersuites($self->{tls_ctx}->{ctx}, $ciphersuites) if defined($ciphersuites);
+       if (defined($ciphersuites)) {
+           warn "Failed to set TLS 1.3 ciphersuites '$ciphersuites'\n"
+               if !Net::SSLeay::CTX_set_ciphersuites($self->{tls_ctx}->{ctx}, $ciphersuites);
+       }
     }
 
     if ($self->{spiceproxy}) {