]> granicus.if.org Git - curl/commit
openssl: Integrate Peter Wu's SSLKEYLOGFILE implementation
authorJay Satiro <raysatiro@yahoo.com>
Tue, 5 Sep 2017 19:27:22 +0000 (15:27 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 6 Sep 2017 03:56:54 +0000 (23:56 -0400)
commit6cdba64e13f9599db49e507418ab5571a2f42d4f
treec5c54d977a6118de2e33a75fdf0ff9e0ffe47b7f
parentee5725fb5ec9c196505174b4386221b4db9c637d
openssl: Integrate Peter Wu's SSLKEYLOGFILE implementation

This is an adaptation of 2 of Peter Wu's SSLKEYLOGFILE implementations.

The first one, written for old OpenSSL versions:
https://git.lekensteyn.nl/peter/wireshark-notes/tree/src/sslkeylog.c

The second one, written for BoringSSL and new OpenSSL versions:
https://github.com/curl/curl/pull/1346

Note the first one is GPL licensed but the author gave permission to
waive that license for libcurl.

As of right now this feature is disabled by default, and does not have
a configure option to enable it. To enable this feature define
ENABLE_SSLKEYLOGFILE when building libcurl and set environment
variable SSLKEYLOGFILE to a pathname that will receive the keys.

And in Wireshark change your preferences to point to that key file:
Edit > Preferences > Protocols > SSL > Master-Secret

Co-authored-by: Peter Wu
Ref: https://github.com/curl/curl/pull/1030
Ref: https://github.com/curl/curl/pull/1346

Closes https://github.com/curl/curl/pull/1866
lib/curl_setup.h
lib/vtls/openssl.c