Fix KeyUpdate bug

This commit is contained in:
Zhi Guan
2026-05-27 16:26:00 +08:00
parent 83b95e8d7b
commit dbc529f547
4 changed files with 45 additions and 6 deletions

View File

@@ -408,7 +408,11 @@ bad:
// KeyUpdate
if (key_update_seq_num > 0) {
if (tls_ctx_set_key_update_seq_num_limit(&ctx, key_update_seq_num) != 1) {
if (tls13_ctx_enable_key_update(&ctx, 1) != 1) {
error_print();
goto end;
}
if (tls13_ctx_set_key_update_seq_num_limit(&ctx, key_update_seq_num) != 1) {
error_print();
goto end;
}