[PATCH 3 of 3] Tests: adapted session reuse tests to work with TLSv1.3

Maxim Dounin mdounin at mdounin.ru
Mon Mar 20 23:59:29 UTC 2023


Hello!

On Mon, Mar 20, 2023 at 07:48:13PM +0400, Sergey Kandaurov wrote:

> > On 10 Mar 2023, at 09:00, Maxim Dounin <mdounin at mdounin.ru> wrote:
> > 
> > # HG changeset patch
> > # User Maxim Dounin <mdounin at mdounin.ru>
> > # Date 1678424073 -10800
> > #      Fri Mar 10 07:54:33 2023 +0300
> > # Node ID 946c3b39d1f9adf3f96f1c04963539ecd1c63a8f
> > # Parent  49d12f8c4cf69e1cbe7feccae3b0ea1ac2ca8c2f
> > Tests: adapted session reuse tests to work with TLSv1.3.
> > 
> > In TLSv1.3, session tickets are sent after the handshake, and saving session
> > right after the handshake is not going to work.  To properly test session
> > resumption, sessions are now saved after some data exchange.
> > 
> > diff --git a/mail_ssl.t b/mail_ssl.t
> > --- a/mail_ssl.t
> > +++ b/mail_ssl.t
> > @@ -182,24 +182,28 @@ my $s = Test::Nginx::IMAP->new();
> > my ($ssl, $ses);
> > 
> > ($s, $ssl) = get_ssl_socket(8145);
> > +Net::SSLeay::read($ssl);
> > $ses = Net::SSLeay::get_session($ssl);
> > 
> > [..]
> 
> Good for me.

Thanks, pushed to http://mdounin.ru/hg/nginx-tests.

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx-devel mailing list