Allow a missing sig algs extension if resuming
authorMatt Caswell <matt@openssl.org>
Tue, 16 May 2017 11:04:00 +0000 (12:04 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 17 May 2017 14:33:42 +0000 (15:33 +0100)
commit108d45df737f5b0a4842de02c3f8ff1b9b07306f
tree8657fd03bc0c300639c12681d70c53702368c614
parent355a0d10a9a736202d3dbc41ce2218acb46a30ca
Allow a missing sig algs extension if resuming

The current TLSv1.3 spec says:

'If a server is authenticating via a certificate and the client has not
sent a "signature_algorithms" extension, then the server MUST abort the
handshake with a "missing_extension" alert (see Section 8.2).'

If we are resuming then we are not "authenticating via a certificate" but
we were still aborting with the missing_extension alert if sig algs was
missing.

This commit ensures that we only send the alert if we are not resuming.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3478)
ssl/statem/extensions.c