This PR adds SSL/TLS encryption in tcpclient. A client program dotls has been included which reads stdin, writes to fd 7 and reads fd 6 and writes to stdout
This PR also adds client mode operation when prog is omitted. In this case tcpclient passes data from fd 0 (stdin) to the network and data from the network to fd 1 (stdout). This makes it work like telnet(1), ssh(1) and other programs
This PR adds SSL/TLS encryption in tcpclient. A client program dotls has been included which reads stdin, writes to fd 7 and reads fd 6 and writes to stdout
This PR also adds client mode operation when prog is omitted. In this case tcpclient passes data from fd 0 (stdin) to the network and data from the network to fd 1 (stdout). This makes it work like telnet(1), ssh(1) and other programs
Examples
Connect to port 25
Connect to port SMTPS port on 465 using IPv6
Provide oppurtunistic TLS for notqmail/netqmail/qmail qmail-smtpd
Run tcpclient in client mode and issue STARTTLS command. This is similar to openssl s_client -starttls -crlf
Files modified tcpclient.c tcpserver.c tcpclient.9 tcpserver.9 Makefile .gitignore TARGETS
Files added tls.c tls.h dotls.c dotls.1