Skip to content

Commit ccd37b9

Browse files
committed
non-regression: switch to ctx2 when ECH not tried
1 parent 74f953a commit ccd37b9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/s_server.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,10 @@ static int ssl_ech_servername_cb(SSL *s, int *ad, void *arg)
641641
"- no ECH SUCCESS\n");
642642
if (servername != NULL && OPENSSL_strcasecmp(servername, p->servername))
643643
return p->extension_error;
644+
if (ctx2 != NULL) {
645+
BIO_puts(p->biodebug, "Switching server context.\n");
646+
SSL_set_SSL_CTX(s, ctx2);
647+
}
644648
}
645649
return SSL_TLSEXT_ERR_OK;
646650
}

0 commit comments

Comments
 (0)