From 5f3fd32f8214c35abc3a002e8be68ca20e9893e1 Mon Sep 17 00:00:00 2001 From: thekuwayama Date: Tue, 14 May 2024 22:13:13 +0900 Subject: [PATCH] [cli] when echconfiglist is set, send EE with retry_configs --- t/cli.c | 1 + t/util.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/t/cli.c b/t/cli.c index c1e3fac4a..4a2cc49b0 100644 --- a/t/cli.c +++ b/t/cli.c @@ -649,6 +649,7 @@ int main(int argc, char **argv) } #endif setup_session_cache(&ctx); + ech_setup_retry_configs(&ctx); } else { /* client */ if (use_early_data) { diff --git a/t/util.h b/t/util.h index 0a299099d..702af2342 100644 --- a/t/util.h +++ b/t/util.h @@ -266,6 +266,11 @@ static struct { } retry; } ech; +static void ech_setup_retry_configs(ptls_context_t *ctx) { + ctx->ech.server.retry_configs.base = ech.config_list.base; + ctx->ech.server.retry_configs.len = ech.config_list.len; +} + static ptls_aead_context_t *ech_create_opener(ptls_ech_create_opener_t *self, ptls_hpke_kem_t **kem, ptls_hpke_cipher_suite_t **cipher, ptls_t *tls, uint8_t config_id, ptls_hpke_cipher_suite_id_t cipher_id, ptls_iovec_t enc, ptls_iovec_t info_prefix)