nghttp2 / nghttp2-asio

MIT License
63 stars 24 forks source link

sslkeylog not generated #10

Open trawat24 opened 1 year ago

trawat24 commented 1 year ago

Hi,

I have started using this library for HTTP2 requests but I didn't find sslkeylog generated in a file (SSLKEYLOGFILE environment variable) after requests/response. Following is the piece of code : session sess(io_service, tls, host, port); sess.on_connect([=,&sess,&ResponseBody](tcp::resolver::iterator endpoint_it) { boost::system::error_code ec; auto req = sess.submit(ec, requestType, req_page,req_body,h);

req->on_response([=,&sess,&ResponseBody](const response &res) { std::cerr << "HTTP/2 response code! "<<res.status_code()<< std::endl; res.on_data([&sess,&ResponseBody](const uint8_t *data, std::size_t len) { if (len >0){ std::ostringstream convert; for (int i=0;i<len;i++){ convert << data[i]; } ResponseBody = convert.str(); } }); }); Is this support (sslkeylog) available in this library? If yes, then please provide the details to use it If no, then when we can expect the same ?