U:RDoc::Attr[iI"npn_select_cb:ETI"+OpenSSL::SSL::SSLContext#npn_select_cb;TI"RW;T: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [ I"KA callback invoked on the client side when the client needs to select ;TI"Ma protocol from the list sent by the server. Supported in OpenSSL 1.0.1 ;TI"Jand higher. The client MUST select a protocol of those advertised by ;TI"Ithe server. If none is acceptable, raising an error in the callback ;TI"Lwill cause the handshake to fail. Not setting this callback explicitly ;TI"Jmeans not supporting the NPN extension on the client - any protocols ;TI".advertised by the server will be ignored.;To:RDoc::Markup::BlankLineS:RDoc::Markup::Heading: leveli: textI" Example;T@o:RDoc::Markup::Verbatim; [ I"/ctx.npn_select_cb = lambda do |protocols| ;TI". # inspect the protocols and select one ;TI" protocols.first ;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