ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Handle.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Handle.pm (file contents):
Revision 1.84 by root, Thu Aug 21 19:13:05 2008 UTC vs.
Revision 1.85 by root, Thu Aug 21 19:53:19 2008 UTC

227This will not work for partial TLS data that could not yet been 227This will not work for partial TLS data that could not yet been
228encoded. This data will be lost. 228encoded. This data will be lost.
229 229
230=item tls => "accept" | "connect" | Net::SSLeay::SSL object 230=item tls => "accept" | "connect" | Net::SSLeay::SSL object
231 231
232When this parameter is given, it enables TLS (SSL) mode, that means it 232When this parameter is given, it enables TLS (SSL) mode, that means
233will start making tls handshake and will transparently encrypt/decrypt 233AnyEvent will start a TLS handshake and will transparently encrypt/decrypt
234data. 234data.
235 235
236TLS mode requires Net::SSLeay to be installed (it will be loaded 236TLS mode requires Net::SSLeay to be installed (it will be loaded
237automatically when you try to create a TLS handle). 237automatically when you try to create a TLS handle).
238 238
239For the TLS server side, use C<accept>, and for the TLS client side of a 239Unlike TCP, TLS has a server and client side: for the TLS server side, use
240connection, use C<connect> mode. 240C<accept>, and for the TLS client side of a connection, use C<connect>
241mode.
241 242
242You can also provide your own TLS connection object, but you have 243You can also provide your own TLS connection object, but you have
243to make sure that you call either C<Net::SSLeay::set_connect_state> 244to make sure that you call either C<Net::SSLeay::set_connect_state>
244or C<Net::SSLeay::set_accept_state> on it before you pass it to 245or C<Net::SSLeay::set_accept_state> on it before you pass it to
245AnyEvent::Handle. 246AnyEvent::Handle.
246 247
247See the C<starttls> method if you need to start TLS negotiation later. 248See the C<starttls> method for when need to start TLS negotiation later.
248 249
249=item tls_ctx => $ssl_ctx 250=item tls_ctx => $ssl_ctx
250 251
251Use the given Net::SSLeay::CTX object to create the new TLS connection 252Use the given Net::SSLeay::CTX object to create the new TLS connection
252(unless a connection object was specified directly). If this parameter is 253(unless a connection object was specified directly). If this parameter is

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines