mirror of https://github.com/ctz/rustls
Fix out-of-phase key update
We were returning keys from the previous phase rather than the current one.
This commit is contained in:
parent
b940acce5e
commit
cf457c4315
|
@ -288,7 +288,7 @@ fn next_1rtt_keys(this: &mut SessionCommon) -> PacketKeySet {
|
|||
|
||||
let next = next_1rtt_secrets(hkdf_alg, secrets);
|
||||
|
||||
let (local, remote) = secrets.local_remote(this.is_client);
|
||||
let (local, remote) = next.local_remote(this.is_client);
|
||||
let keys = PacketKeySet {
|
||||
local: PacketKey::new(this.get_suite_assert(), local),
|
||||
remote: PacketKey::new(this.get_suite_assert(), remote),
|
||||
|
|
Loading…
Reference in New Issue