Skip to content

Commit

Permalink
fixup! Use proper secrets for handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
tmshort committed Aug 30, 2019
1 parent b03fee6 commit 363cf3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ssl/tls13_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,10 +739,12 @@ int tls13_change_cipher_state(SSL *s, int which)
}
} else if (label == client_application_traffic)
memcpy(s->client_app_traffic_secret, secret, hashlen);
#ifndef OPENSSL_NO_QUIC
else if (label == client_handshake_traffic)
memcpy(s->client_hand_traffic_secret, secret, hashlen);
else if (label == server_handshake_traffic)
memcpy(s->server_hand_traffic_secret, secret, hashlen);
#endif

if (!ssl_log_secret(s, log_label, secret, hashlen)) {
/* SSLfatal() already called */
Expand Down

0 comments on commit 363cf3d

Please sign in to comment.