diff options
author | Daiki Ueno <dueno@redhat.com> | 2017-11-29 11:18:40 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-19 15:29:36 +0100 |
commit | 507fa1d35b3c6713745d9cd2e079eb2d8931466c (patch) | |
tree | 98c7cd3c38802340d7f671953773ab9219c9ffaa /lib/handshake-tls13.c | |
parent | f0a3c596ff55e0bbd0888bdf0e3dfb809a44b133 (diff) | |
download | gnutls-507fa1d35b3c6713745d9cd2e079eb2d8931466c.tar.gz |
keylogfile: write TLS 1.3 secrets
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'lib/handshake-tls13.c')
-rw-r--r-- | lib/handshake-tls13.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/handshake-tls13.c b/lib/handshake-tls13.c index 02889dc90d..9a36bacc40 100644 --- a/lib/handshake-tls13.c +++ b/lib/handshake-tls13.c @@ -162,6 +162,10 @@ static int generate_ap_traffic_keys(gnutls_session_t session) if (ret < 0) return gnutls_assert_val(ret); + _gnutls_nss_keylog_write(session, "EXPORTER_SECRET", + session->key.ap_expkey, + session->security_parameters.prf->output_size); + _gnutls_epoch_bump(session); ret = _gnutls_epoch_dup(session); if (ret < 0) |