D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
OpenSSL
/
SSL
/
SSLContext
/
Filename :
keylog_cb-i.ri
back
Copy
U:RDoc::Attr[iI"keylog_cb:ETI"'OpenSSL::SSL::SSLContext#keylog_cb;TI"RW;T:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"KA callback invoked when TLS key material is generated or received, in ;TI"Morder to allow applications to store this keying material for debugging ;TI"purposes.;To:RDoc::Markup::BlankLine o; ; [I"KThe callback is invoked with an SSLSocket and a string containing the ;TI"Lkey material in the format used by NSS for its SSLKEYLOGFILE debugging ;TI"output.;T@o; ; [I"NIt is only compatible with OpenSSL >= 1.1.1. Even if LibreSSL implements ;TI"ESSL_CTX_set_keylog_callback() from v3.4.2, it does nothing (see ;TI"chttps://github.com/libressl-portable/openbsd/commit/648d39f0f035835d0653342d139883b9661e9cb6).;T@S:RDoc::Markup::Heading: leveli: textI"Example;T@o:RDoc::Markup::Verbatim; [ I"/context.keylog_cb = proc do |_sock, line| ;TI"0 File.open('ssl_keylog_file', "a") do |f| ;TI" f.write("#{line}\n") ;TI" end ;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