1Munin::Common::TLS(3pm)User Contributed Perl DocumentatioMnunin::Common::TLS(3pm)
2
3
4

NAME

6       Munin::Node::TLS - Abstract base class implementing the STARTTLS
7       protocol
8

SYNOPSIS

10       Should not be called directly. See synopsis for
11       Munin::Common::TLSServer and Munin::Common::TLSClient.
12

METHODS

14       new
15            my $tls = Munin::Common::TLSFoo->new({ # Substitute Foo with Client or Server
16                # Mandatory attributes:
17                logger      => \&a_logger_func,
18                read_fd     => fileno($socket),
19                read_func   => \&a_socket_read_func,
20                write_fd    => fileno($socket),
21                write_func  => \&a_socket_read_func,
22
23                # Optional attributes                          DEFAULTS
24                DEBUG              => 0,                       # 0
25                tls_ca_cert        => "path/to/ca/cert.pem",   # ''
26                tls_cert           => "path/to/cert.pem",      # ''
27                tls_paranoia       => 1,                       # 0
28                tls_priv           => "path/to/priv_key.pem",  # ''
29                tls_vdepth         => 5,                       # 0
30                tls_verify         => 1,                       # 0
31            });
32
33           Constructor. Should not be called directly. This documents the
34           attributes that are in common for Munin::Common::TLSServer and
35           Munin::Common::TLSClient.
36
37       read
38            my $msg = $tls->read();
39
40           Encrypted read.
41
42       write
43            $tls->write($msg);
44
45           Encrypted write.
46
47       session_started
48            my $bool = $tls->session_started();
49
50           Returns true if the TLS object is ready to read/write encrypted
51           data.
52
53
54
55perl v5.38.0                      2023-11-06           Munin::Common::TLS(3pm)
Impressum