|
NAMENet::SSLGlue::Socket - socket which can be either SSL or plain IP (IPv4/IPv6)SYNOPSISuse Net::SSLGlue::Socket; # SSL right from start my $ssl = Net::SSLGlue::Socket->new( PeerHost => ..., # IPv4|IPv6 address PeerPort => ..., SSL => 1, SSL_ca_path => ... ); # SSL through upgrade of plain connection my $plain = Net::SSLGlue::Socket->new(...); $plain->start_SSL( SSL_ca_path => ... ); ... $plain->stop_SSL DESCRIPTIONFirst, it is recommended to use IO::Socket::SSL directly instead of this module, since this kind of functionality is available in IO::Socket::SSL since version 1.994.Net::SSLGlue::Socket implements a socket which can be either plain or SSL. If IO::Socket::IP or IO::Socket::INET6 are installed it will also transparently handle IPv6 connections. A socket can be either start directly with SSL or it can be start plain and later be upgraded to SSL (because of a STARTTLS commando or similar) and also downgraded again. It is possible but not recommended to use the socket in non-blocking mode, because in this case special care must be taken with SSL (see documentation of IO::Socket::SSL). Additionally to the usual socket methods the following methods are defined or extended: METHODS
SEE ALSOIO::Socket::SSLCOPYRIGHTThis module is copyright (c) 2013..2015, Steffen Ullrich. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |