I am writing a SIP protocol client that will connect to a SIP proxy server. Depending on the user preference, i want to be able to connect to the server in a secure(TLS) as well as non-secure(TCP/UDP) way.
Does the Net::SSLeay interface provide support for non-http applicatons also?
Does the Net::SSLeay interface provide support for non-http applicatons also?
According to the docs it does:
socket (S, &AF_INET, &SOCK_STREAM, 0) or die "socket: $!";
bind (S, $our_serv_params) or die "bind: $!";
listen (S, 5) or die "listen: $!";
$ctx = Net::SSLeay::CTX_new () or die_now("CTX_new
+($ctx): $!");
Net::SSLeay::CTX_set_options($ctx, &Net::SSLeay::OP_ALL)
and die_if_ssl_error("ssl ctx set options");