D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
OpenSSL
/
SSL
/
SSLContext
/
Filename :
renegotiation_cb-i.ri
back
Copy
U:RDoc::Attr[iI"renegotiation_cb:ETI".OpenSSL::SSL::SSLContext#renegotiation_cb;TI"RW;T:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DA callback invoked whenever a new handshake is initiated on an ;TI"Kestablished connection. May be used to disable renegotiation entirely.;To:RDoc::Markup::BlankLine o; ; [ I"GThe callback is invoked with the active SSLSocket. The callback's ;TI"Jreturn value is ignored. A normal return indicates "approval" of the ;TI"Jrenegotiation and will continue the process. To forbid renegotiation ;TI"Gand to cancel the process, raise an exception within the callback.;T@S:RDoc::Markup::Heading: leveli: textI"!Disable client renegotiation;T@o; ; [I"DWhen running a server, it is often desirable to disable client ;TI"Lrenegotiation entirely. You may use a callback as follows to implement ;TI"this feature:;T@o:RDoc::Markup::Verbatim; [I",ctx.renegotiation_cb = lambda do |ssl| ;TI"; raise RuntimeError, "Client renegotiation disabled" ;TI"end;T:@format0: @fileI"ext/openssl/ossl_ssl.c;T:0@omit_headings_from_table_of_contents_below0F@#I"OpenSSL::SSL::SSLContext;TcRDoc::NormalClass0